/* Current CRM only: restores the pre-reset editorial palette without its domain. */
.crm-body { background: #f1eee7; font-size: 14px; }
.crm-main { max-width: 1440px; }
.crm-main h1 { font-size: clamp(1.65rem, 3vw, 2.6rem); line-height: 1.15; letter-spacing: -.035em; margin: .2rem 0 .6rem; }
.crm-main h2 { font-size: 1.15rem; margin: .25rem 0 .75rem; }
.crm-main h3 { font-size: .96rem; margin: .8rem 0 .4rem; }
.crm-main p { margin: .45rem 0 .85rem; }
.crm-main a { color: #244851; text-underline-offset: 3px; }
.crm-main .crm-button-primary { color: white; }
.crm-main input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=hidden]),
.crm-main select, .crm-main textarea { max-width: 100%; border: 1px solid #c9c4b8; border-radius: 2px; padding: .5rem .6rem; background: #fffefa; color: #18282c; font: inherit; }
.crm-main textarea { width: 100%; }
.crm-main input[type=submit], .crm-main button { cursor: pointer; border: 1px solid #c9c4b8; border-radius: 3px; padding: .5rem .85rem; background: #fbfaf6; color: #173038; font: inherit; font-weight: 650; }
.crm-main input.crm-button-primary { background: #d85b2a; color: white; border-color: #d85b2a; }
.crm-main :focus-visible { outline: 2px solid #d85b2a; outline-offset: 3px; }
.crm-main fieldset { min-width: 0; border: 1px solid #d8d4ca; padding: .75rem; margin: .5rem 0; }
.crm-main legend { font-weight: 650; padding: 0 .25rem; }
.crm-main details { min-width: 0; }
.crm-main summary { cursor: pointer; padding: .5rem 0; font-weight: 600; }
.crm-main pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; line-height: 1.6; padding: .75rem; border: 1px solid #e0ddd4; background: #f3f1ea; max-height: 32rem; overflow: auto; }
.crm-main code, .review-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.crm-main .crm-panel { padding: 1rem 1.15rem; margin-bottom: 1rem; }
.crm-main .crm-form { gap: .75rem; }
.crm-main .crm-field { gap: .3rem; }
.crm-main .crm-field label, .review-field-label { font-size: .8rem; font-weight: 650; }
.crm-main .crm-field input, .crm-main .crm-field select, .crm-main .crm-field textarea { padding: .5rem .6rem; }
.review-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 1rem; }
.review-workspace > div { min-width: 0; }
.review-header h1 { font-size: clamp(1.5rem, 2.7vw, 2.3rem); }
.review-safety, .review-boundary { padding: .65rem .85rem; border-left: 3px solid #687570; background: #e9ece5; margin: .6rem 0 1rem; }
.review-boundary { background: #eeede7; border-left-color: #8a8172; font-size: .85rem; }
.review-state { display: inline-block; font: 600 11px ui-monospace, SFMono-Regular, Menlo, monospace; border: 1px solid #d1d1c6; padding: .2rem .4rem; background: #efeee8; border-radius: 2px; vertical-align: middle; }
.review-filters { display: flex; gap: .35rem; flex-wrap: wrap; margin: .75rem 0; }
.review-filter { padding: .4rem .6rem; border: 1px solid #d8d4ca; border-radius: 2px; text-decoration: none; font-size: .82rem; }
.review-filter.is-active { background: #173038; color: #fffdf7; border-color: #173038; }
.review-table-wrap { overflow-x: auto; }
.review-company-link { font-weight: 650; }
.review-definition { display: grid; grid-template-columns: minmax(5rem, 1fr) minmax(0, 3fr); gap: .45rem 1rem; margin: .7rem 0; }
.review-definition dt { color: #687570; font-size: .82rem; }
.review-definition dd { margin: 0; overflow-wrap: anywhere; }
.review-detail { border-top: 1px solid #dfdbd2; margin-top: .7rem; }
.review-source, .review-journey { padding: .6rem 0; border-bottom: 1px solid #dfdbd2; overflow-wrap: anywhere; }
.review-route { padding: .5rem .6rem; background: #f3f1ea; margin: .4rem 0; }
.review-route small { display: block; }
.review-claim { padding: .4rem .6rem; margin: .35rem 0; border: 1px solid #dfdbd2; background: #fffefa; overflow-wrap: anywhere; }
.review-claim summary { font-size: .84rem; }
.review-value { display: block; color: #596865; font-weight: 400; margin-top: .35rem; }
.review-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.review-field-grid > fieldset, .review-field-grid > .review-array { grid-column: 1 / -1; }
.review-argument .review-field:has(select[multiple]), .review-argument .review-field:has(textarea) { grid-column: 1 / -1; }
.review-field small { color: #687570; font-size: .75rem; }
.review-check { display: flex; align-items: start; gap: .5rem; margin: .65rem 0; font-size: .84rem; }
.review-check input { margin-top: .25rem; flex: 0 0 auto; }
.review-unknowns { border-left: 3px solid #8a8172; }
.review-preview { padding: .8rem; background: #e9ece5; border: 1px solid #cad3cb; margin: 1rem 0; }
.review-draft-note { color: #687570; font-size: .8rem; }
.review-search { display: flex; gap: .5rem; margin: .75rem 0 1rem; }
.review-source-text { max-height: none !important; }
.crm-main [id] { scroll-margin-top: 6rem; }
.review-page-grid { display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(16rem, 1fr); gap: 1.25rem; align-items: start; }
.review-page-grid > * { min-width: 0; }
.review-page-content > .crm-panel { margin-bottom: 1.25rem; }
.review-empty { padding: 1.4rem; background: #f5f3ed; border: 1px dashed #c9c4b8; margin: .85rem 0; }
.review-empty h3 { margin-top: 0; }
.review-card-heading { display: flex; justify-content: space-between; align-items: baseline; gap: .7rem; }
.review-card-heading h3 { margin-top: .35rem; }
.review-url { overflow-wrap: anywhere; font-size: .86rem; color: #596865; }
.review-fact-card { padding: 1rem 0; border-top: 1px solid #dfdbd2; }
.review-fact-value { font-size: .98rem; overflow-wrap: anywhere; }
.review-source-quote { margin: .7rem 0; padding: .5rem .85rem; border-left: 2px solid #c9c4b8; color: #596865; background: #f5f3ed; overflow-wrap: anywhere; }
.review-steps { list-style: none; padding: 0; counter-reset: review-step; }
.review-steps li { counter-increment: review-step; position: relative; padding: .45rem 0 .8rem 2rem; }
.review-steps li::before { content: counter(review-step); position: absolute; left: 0; top: .45rem; border: 1px solid #c9c4b8; width: 1.3rem; height: 1.3rem; text-align: center; font-size: .8rem; }
.review-steps span { display: block; font-size: .86rem; color: #596865; margin-top: .3rem; }
.review-result-glossary dt { font-weight: 650; margin-top: .8rem; }
.review-result-glossary dd { margin: .25rem 0 .75rem; color: #596865; font-size: .86rem; }
.review-decision-summary { border-top: 3px solid #244851; }
.review-assessment-answer { padding: .65rem 0; border-top: 1px solid #dfdbd2; }
.review-answer-item { padding: .3rem .75rem; margin: .6rem 0; border-left: 2px solid #dfdbd2; }
.review-technical { margin-top: 2rem; border-top: 3px solid #8a8172; }
.review-technical h1 { font-size: 1.3rem; }
@media (max-width: 950px) { .review-page-grid { grid-template-columns: 1fr; } }
@media (max-width: 1050px) { .review-workspace { grid-template-columns: 1fr; } }
@media (max-width: 650px) { .review-field-grid { grid-template-columns: 1fr; } .crm-page-header { align-items: start; } .crm-actions { flex-wrap: wrap; } .review-definition { grid-template-columns: 1fr; gap: .1rem; } .review-definition dd { margin-bottom: .6rem; } }

/* Guided review: one decision step at a time, with raw provenance behind disclosure. */
.review-sticky-header { position: sticky; z-index: 20; top: 0; margin: -1.5rem -2rem 0; padding: .75rem 2rem; display: grid; grid-template-columns: minmax(14rem, 1fr) auto minmax(8rem, 1fr); align-items: center; gap: 1.25rem; color: #f8f3e9; background: #17353b; border-bottom: 3px solid #d85b2a; box-shadow: 0 5px 18px rgb(20 42 47 / 12%); }
.review-sticky-header a:not(.crm-button) { color: #d9e5e2; }
.review-sticky-company { display: grid; gap: .1rem; }
.review-sticky-company strong { font-size: 1rem; }
.review-sticky-company span { color: #b9c9c5; font-size: .78rem; }
.review-sticky-header > :last-child { justify-self: end; }
.review-progress { list-style: none; display: flex; align-items: start; gap: .35rem; margin: 0; padding: 0; }
.review-progress li { display: grid; grid-template-columns: 1.35rem minmax(4rem, 7rem); gap: .35rem; align-items: center; color: #9eb0ac; font-size: .72rem; line-height: 1.15; }
.review-progress li span { display: grid; place-items: center; width: 1.35rem; height: 1.35rem; border: 1px solid #718783; border-radius: 50%; font-size: .7rem; }
.review-progress li.is-current { color: white; font-weight: 700; }
.review-progress li.is-current span { background: #d85b2a; border-color: #d85b2a; }
.review-progress li.is-done span { background: #d9e5e2; border-color: #d9e5e2; color: #17353b; }
.review-hold { white-space: nowrap; }
.review-sticky-header .review-hold { color: #fff7ec; border-color: #657c78; background: transparent; }
.review-step-intro { max-width: 54rem; padding: 2.25rem 0 1.1rem; }
.review-step-intro h1 { margin-bottom: .35rem; }
.review-step-intro > p:last-child { color: #596865; font-size: 1rem; }
.review-step-panel { max-width: 1180px; margin: 0 auto 1.5rem; }
.review-section-heading { display: flex; align-items: start; justify-content: space-between; gap: 2rem; padding-bottom: 1rem; border-bottom: 1px solid #d8d4ca; }
.review-section-heading > div { max-width: 52rem; }
.review-section-heading h2 { font-size: 1.35rem; margin-bottom: .35rem; }
.review-conflict-alert { display: grid; grid-template-columns: auto 1fr auto; gap: .8rem; align-items: center; margin: 0 0 1rem; padding: .75rem 1rem; background: #fff3df; border: 1px solid #dfbd82; }
.review-conflict-alert span { color: #66563d; }
.review-identity-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1rem 0; }
.review-identity-card { padding: 1rem; background: #f7f4ed; border: 1px solid #d8d4ca; }
.review-identity-card h3 { margin-top: 0; }
.review-identity-row { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: .75rem; align-items: start; padding: .55rem 0; border-top: 1px solid #ded9ce; }
.review-identity-row p { margin: .15rem 0; overflow-wrap: anywhere; }
.review-match { display: inline-block; width: max-content; max-width: 100%; padding: .18rem .35rem; border-radius: 2px; font-size: .7rem; font-weight: 700; background: #e8e5dc; }
.review-match-same { color: #235b46; background: #e1eee7; }
.review-match-different { color: #7a431f; background: #fae8d5; }
.review-identity-decision { display: grid; grid-template-columns: minmax(13rem, .7fr) minmax(20rem, 1.3fr); gap: 1.5rem; padding: 1.2rem 0; border-top: 1px solid #d8d4ca; }
.review-identity-decision .review-forensics { grid-column: 1 / -1; }
.review-decision-form textarea { min-height: 4.5rem; }
.review-next-action { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem; margin-top: 1rem; background: #e7eee9; border: 1px solid #c5d2c8; }
.review-next-action fieldset { flex: 1; margin: 0; border: 0; padding: 0; }
.review-journey-card { margin: 1rem 0; padding: 1.2rem; background: #fffefa; border: 1px solid #d5d1c7; box-shadow: 0 5px 18px rgb(24 40 44 / 5%); }
.review-journey-heading { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.review-journey-heading h3 { margin-top: 0; font-size: 1.2rem; }
.review-flow { display: flex; align-items: stretch; gap: .45rem; margin: 1rem 0; overflow-x: auto; padding-bottom: .35rem; }
.review-flow-node { display: grid; align-content: center; min-width: 9rem; max-width: 17rem; padding: .65rem .75rem; background: #f3f1ea; border: 1px solid #d9d5cc; overflow-wrap: anywhere; }
.review-flow-node small { color: #687570; }
.review-flow-arrow { display: grid; place-items: center; min-width: 3.6rem; color: #687570; }
.review-flow-arrow span { font-size: 1.4rem; }
.review-flow-arrow small { font-size: .65rem; text-transform: uppercase; letter-spacing: .04em; }
.review-evidence-boundary { display: flex; gap: 1rem; align-items: center; padding: .75rem 1rem; color: #fffdf7; background: #596865; }
.review-evidence-boundary strong { flex: 0 0 auto; text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; }
.review-journey-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin-top: 1rem; }
.review-journey-columns > section { padding: .75rem; border: 1px solid #dfdbd2; background: #faf8f3; }
.review-journey-columns h4 { margin: 0 0 .65rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: #596865; }
.review-fact-summary { padding: .5rem 0; border-top: 1px solid #e2ded5; }
.review-fact-summary:first-of-type { border-top: 0; }
.review-fact-summary > strong, .review-fact-summary > span, .review-fact-summary > small { display: block; }
.review-fact-summary > span { margin: .15rem 0; }
.review-fact-summary > small { color: #687570; }
.review-fact-summary summary { padding: .25rem 0; color: #244851; font-size: .74rem; }
.review-maintenance, .review-forensics { margin-top: 1rem; border-top: 1px solid #d8d4ca; color: #596865; }
.review-maintenance > summary, .review-forensics > summary { font-size: .78rem; }
.review-question-group { margin: 1rem 0 1.4rem; padding: 1rem; background: #f7f4ed; border: 1px solid #d8d4ca; }
.review-question { margin: .55rem 0; background: #fffefa; border: 1px solid #d8d4ca; }
.review-question > summary { display: grid; grid-template-columns: minmax(12rem, .35fr) 1fr; gap: 1rem; padding: .75rem; }
.review-question > summary span { color: #173038; font-size: .95rem; }
.review-question > summary small { color: #687570; font-weight: 400; }
.review-question > fieldset, .review-question > .review-array, .review-question > .review-field { margin: 0; padding: 1rem; border: 0; border-top: 1px solid #e1ddd4; }
.review-argument { background: #fbfaf6; }
.review-argument .review-argument { border-left: 2px solid #d8d4ca; }
.review-evidence-picker { width: 100%; padding: .5rem .7rem; background: #f3f1ea; border: 1px solid #d8d4ca; }
.review-evidence-choice { padding: .55rem 0; border-top: 1px solid #d8d4ca; }
.review-evidence-choice > strong, .review-evidence-choice > span, .review-evidence-choice > small { display: block; }
.review-evidence-choice > span { margin: .15rem 0; }
.review-evidence-choice > div { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: .35rem; }
.review-evidence-choice label { font-size: .75rem; }
.review-validation { padding: .8rem 1rem; color: #6f321b; background: #fae8de; border-left: 3px solid #d85b2a; }
.review-decision-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1rem 0; }
.review-decision-summary > section { padding: 1rem; background: #f7f4ed; border: 1px solid #d8d4ca; }
.review-decision-summary h3 { margin-top: 0; }
.review-diagnosis-summary { grid-column: 1 / -1; }
.review-final-check { padding: 1rem; background: #fff3df; border: 1px solid #dfbd82; font-size: .92rem; }
.review-investigate-candidate { margin: 1rem 0; padding: 1rem; background: #e9ece5; border-left: 3px solid #687570; }
.review-audit-footer { display: flex; justify-content: space-between; gap: 1rem; max-width: 1180px; margin: 2rem auto 0; padding: 1rem 0; border-top: 1px solid #c9c4b8; color: #596865; }
.review-queue-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.review-queue-row { display: grid; grid-template-columns: minmax(13rem, 1.1fr) minmax(16rem, 1.5fr) 6rem auto; gap: 1rem; align-items: center; padding: 1rem .2rem; border-top: 1px solid #d8d4ca; }
.review-queue-row h3 { margin: 0; font-size: 1rem; }
.review-queue-row p { margin: .2rem 0; }
.review-queue-date { display: grid; gap: .1rem; }
.review-queue-action { text-align: right; }

@media (max-width: 1050px) {
  .review-sticky-header { grid-template-columns: 1fr auto; }
  .review-progress { grid-column: 1 / -1; grid-row: 2; justify-content: center; }
  .review-journey-columns { grid-template-columns: 1fr; }
  .review-queue-row { grid-template-columns: 1fr 1.2fr auto; }
  .review-queue-date { display: none; }
}
@media (max-width: 700px) {
  .review-sticky-header { position: relative; margin: -1rem -1rem 0; padding: .75rem 1rem; }
  .review-progress { justify-content: start; overflow-x: auto; }
  .review-progress li { grid-template-columns: 1.35rem; }
  .review-progress li { font-size: 0; }
  .review-identity-grid, .review-identity-decision, .review-decision-summary { grid-template-columns: 1fr; }
  .review-diagnosis-summary { grid-column: auto; }
  .review-section-heading, .review-next-action, .review-audit-footer { align-items: stretch; flex-direction: column; }
  .review-queue-row { grid-template-columns: 1fr; }
  .review-queue-action { text-align: left; }
  .review-question > summary { grid-template-columns: 1fr; }
}
