.intel-page { padding-top: 32px; padding-bottom: 60px; }
.intel-page h1 { font-size: clamp(32px,5vw,46px); letter-spacing: -.04em; margin: 14px 0; }
.intel-back { display: inline-block; font-size: 13px; color: #0066cc; margin-bottom: 30px; }
.intel-page #intel-intake { margin-top: 32px; }
.intel-form { color: #1d1d1f; }
.intel-form-fields { border: 0; padding: 0; margin: 0; min-width: 0; }
.intel-step { margin: 0 0 22px; padding: 24px; border: 1px solid #e2e2e7; background: #fff; border-radius: 16px; }
.intel-step h3 { font-size: 16px; letter-spacing: -.02em; margin: 0 0 20px; }
.intel-form label, .intel-review-form label, .intel-picker label { display: flex; flex-direction: column; gap: 8px; font-size: 12px; font-weight: 550; margin-bottom: 16px; }
.intel-form label > span, .intel-review-form label > span { color: #6e6e73; font-weight: 400; }
.intel-form input:not([type=checkbox]), .intel-form select, .intel-form textarea, .intel-review-form input, .intel-review-form textarea, .intel-review-form select, .intel-picker input, .intel-picker select { box-sizing: border-box; width: 100%; min-width: 0; padding: 12px 13px; border: 1px solid #c8c8cd; border-radius: 10px; font-family: inherit; font-size: 16px; line-height: 1.45; background: #fff; color: #1d1d1f; }
.intel-form textarea, .intel-review-form textarea { resize: vertical; }
.intel-grid, .intel-search-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.intel-search-row { grid-template-columns: minmax(0,1fr) 120px; }
.intel-help, .intel-search-status { font-size: 12px; font-weight: 400; color: #6e6e73; line-height: 1.65; margin: 8px 0 16px; }
.intel-matches { list-style: none; padding: 0; margin: 0 0 16px; max-height: 300px; overflow-y: auto; }
.intel-match { width: 100%; border: 1px solid #dedee3; background: #f5f5f7; text-align: left; padding: 14px; border-radius: 10px; font-size: 13px; line-height: 1.6; color: #1d1d1f; margin: 0 0 7px; cursor: pointer; overflow-wrap: anywhere; }
.intel-match:hover { background: #eaeaec; }
.intel-selected { border: 1px solid #cddfd4; border-radius: 12px; background: #f4f9f6; padding: 14px 16px; margin-bottom: 14px; }
.intel-selected p { margin: 0 0 10px; font-size: 14px; font-weight: 550; line-height: 1.6; overflow-wrap: anywhere; }
.intel-manual { border: 0; border-top: 1px solid #e5e5e9; margin-top: 20px; padding: 16px 0 0; min-width: 0; }
.intel-manual legend { padding: 0 8px 0 0; font-size: 13px; font-weight: 600; }
.intel-manual > p { font-size: 12px; color: #6e6e73; margin-bottom: 18px; }
.intel-form .intel-consent, .intel-review-form .intel-consent { flex-direction: row; align-items: flex-start; font-weight: 400; line-height: 1.6; gap: 10px; }
.intel-consent input { flex-shrink: 0; width: 18px !important; height: 18px; margin-top: 2px; accent-color: #1d1d1f; }
.intel-consent span { color: #424245 !important; }
.intel-submit { border: 0; border-radius: 12px; background: #1d1d1f; color: #fff; padding: 15px 22px; font-family: inherit; font-size: 14px; font-weight: 550; cursor: pointer; min-height: 48px; }
.intel-submit:disabled { opacity: .6; cursor: default; }
.intel-result { color: #355e46; font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; margin: 15px 0; }
.pilot-page .intel-dialog { width: min(760px,calc(100% - 48px)); max-height: 88dvh; overflow-y: auto; padding: 30px; }
.intel-dialog .intel-step { padding: 20px 0; border: 0; border-top: 1px solid #e2e2e7; border-radius: 0; margin-bottom: 0; }
.intel-dialog > h2 { padding-right: 20px; }
.candidate__intel-action { display: inline-block; padding: 0; margin-top: 9px; border: 0; background: transparent; color: #0066cc; font-size: 11px; font-weight: 500; cursor: pointer; font-family: inherit; text-align: left; min-height: 24px; }
.intel-invitation { margin: 32px 0; border: 1px solid #e2e2e7; padding: 26px; border-radius: 18px; background: #fff; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.intel-invitation h2 { font-size: 22px; letter-spacing: -.03em; margin: 8px 0; }
.intel-invitation p { max-width: 500px; font-size: 13px; line-height: 1.6; color: #6e6e73; margin: 0; }
.intel-invitation .secondary-button { flex-shrink: 0; }
.intel-queue-item { padding: 24px; background: #fff; border: 1px solid #e2e2e7; border-radius: 16px; margin: 20px 0; }
.intel-queue-item h2 { font-size: 20px; margin: 10px 0; }
.intel-queue-item p, .intel-queue-item li { font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.intel-private { background: #f5f5f7; padding: 14px; border-radius: 10px; margin: 16px 0; }
.intel-queue-item pre { white-space: pre-wrap; overflow-wrap: anywhere; font-family: inherit; font-size: 13px; line-height: 1.7; }
.intel-review-form { margin-top: 24px; border-top: 1px solid #e2e2e7; padding-top: 20px; }
.intel-history { margin-top: 18px; }
.intel-history summary { font-size: 13px; cursor: pointer; }
.intel-packet { margin-top: 20px; background: #f5f5f7; padding: 15px; border-radius: 10px; }
.intel-preparation { margin: 20px 0; padding: 16px; background: #f4f7fc; border: 1px solid #d9e2f0; border-radius: 12px; }
.intel-preparation h3 { font-size: 16px; margin: 0 0 10px; }
.intel-preparation .secondary-button { min-height: 44px; }
@media (max-width: 600px) {
  .intel-step { padding: 20px 16px; }
  .intel-grid { grid-template-columns: 1fr; gap: 0; }
  .intel-search-row { grid-template-columns: minmax(0,1fr) 98px; gap: 10px; }
  .pilot-page .intel-dialog { width: calc(100% - 26px); padding: 25px 18px; max-height: 92dvh; }
  .intel-invitation { padding: 22px; flex-direction: column; align-items: flex-start; gap: 18px; }
  .intel-submit { width: 100%; }
}
@media print { .candidate__intel-action, .intel-invitation { display: none !important; } }

.intel-queue-navigation { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin: 20px 0; }

.intel-upload input[type=file] { font-size: 16px; padding: 12px; border: 1px solid #dadada; background: #fff; width: 100%; box-sizing: border-box; }
.intel-upload input::file-selector-button { border: 0; border-radius: 6px; padding: 8px 12px; margin-right: 12px; background: #0D1E40; color: #fff; font: inherit; cursor: pointer; }
.intel-attachment { padding: 16px; margin: 16px 0; background: #f7f7fc; border-left: 3px solid #0D1E40; }

/* Keep required input visible; disclose optional source metadata on demand. */
.intel-dialog .intel-step { padding: 14px 0; }
.intel-dialog .intel-step h3 { font-size: 14px; margin-bottom: 12px; }
.intel-dialog .intel-form label { gap: 5px; margin-bottom: 11px; }
.intel-dialog .intel-help, .intel-dialog .intel-search-status { line-height: 1.45; margin: 5px 0 10px; }
.intel-dialog .intel-search-status:empty, .intel-dialog .intel-matches:empty { display: none; }
.intel-dialog .intel-selected { background: var(--cool-white,#F7F7FC); border-color: #dedee3; padding: 10px 12px; }
.intel-dialog .intel-selected p { font-size: 13px; margin-bottom: 3px; }
.intel-optional { margin: 0 0 12px; }
.intel-optional summary { min-height: 44px; display: flex; align-items: center; gap: 5px; cursor: pointer; color: #0D1E40; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.intel-optional summary span { color: #6e6e73; }
.intel-dialog .text-button { min-height: 44px; }
.intel-dialog .intel-upload input { padding: 8px; }
.intel-dialog .intel-consent { font-size: 12px; }
.pilot-page .intel-dialog .pilot-dialog__close { width: 44px; height: 44px; top: 8px; right: 8px; }
@media(max-width:600px) {
  .pilot-page .intel-dialog { box-sizing: border-box; width: calc(100vw - 24px); max-width: none; max-height: calc(100dvh - 24px); padding: 20px 16px; border-radius: 18px; overscroll-behavior: contain; }
  .pilot-page .intel-dialog h2 { font-size: 23px; margin-bottom: 8px; }
  .pilot-page .intel-dialog .pilot-dialog__eyebrow { margin-bottom: 8px; }
  .pilot-page .intel-dialog > p { font-size: 12px; line-height: 1.45; }
  .intel-dialog .intel-contact-names { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; }
  .intel-dialog .intel-search-row { grid-template-columns: minmax(0,1fr) 90px; gap: 8px; }
}

.intel-review-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.intel-review-actions button { min-height: 44px; }
.intel-review-actions button:disabled { opacity: .5; cursor: default; }
.intel-queue-item .intel-history summary { min-height: 44px; display: flex; align-items: center; }
@media (max-width: 600px) {
  .intel-review-actions { display: grid; grid-template-columns: 1fr; }
  .intel-review-actions button { width: 100%; }
}

/* Private queue: one reading order from the submitted source to the decision. */
.intel-workflow { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); list-style: none; padding: 0; margin: 24px 0; border: 1px solid #dae2ed; border-radius: 12px; background: #f5f8fc; }
.intel-workflow li { margin: 0; border-right: 1px solid #dae2ed; }
.intel-workflow li:last-child { border-right: 0; }
.intel-workflow a { display: flex; align-items: center; min-height: 56px; padding: 10px 12px; color: #183451; font-weight: 600; font-size: 12px; text-decoration: none; }
.intel-workflow a:hover { background: #e9eff8; }
.intel-review-step { min-width: 0; margin: 0 0 20px; padding: 24px; border: 1px solid #dae2ed; border-radius: 14px; scroll-margin-top: 50px; }
.intel-step-number { color: #516781; font-size: 11px; font-weight: 700; letter-spacing: .08em; margin-bottom: 8px; }
.intel-review-step h3 { margin: 0 0 8px; font-size: 22px; letter-spacing: -.025em; }
.intel-review-step h4 { font-size: 14px; margin: 0 0 12px; }
.intel-review-step .intel-step-intro { font-size: 14px; color: #45566c; margin: 0 0 20px; line-height: 1.65; }
.intel-evidence-comparison { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: 16px; }
.intel-report, .intel-source-document { min-width: 0; padding: 18px; border-radius: 10px; background: #f5f7fa; border: 1px solid #e1e5ec; }
.intel-source-document { background: #fff; }
.intel-source-title { font-weight: 600; }
.intel-source-transcript { max-height: 320px; overflow-y: auto; margin: 16px 0; padding-right: 8px; }
.intel-source-links { list-style: none; padding: 0; margin: 12px 0 0; }
.intel-source-links a { display: inline-flex; min-height: 44px; align-items: center; font-weight: 600; }
.intel-source-url { display: block; color: #5b6572; font-size: 11px; overflow-wrap: anywhere; }
.intel-review-form { margin-top: 0; padding-top: 0; border-top: 0; }
.intel-identity-guidance { padding: 12px 14px; background: #f1f6fd; border-left: 3px solid #5278a5; color: #253e5b; border-radius: 5px; margin-bottom: 20px; }
.intel-draft-note { background: #f6f8fc; padding: 12px 14px; border-radius: 8px; }
.intel-review-questions { border-left: 3px solid #d7e1ee; padding-left: 16px; margin: 16px 0 24px; }
.intel-review-questions h4 { margin-bottom: 8px; }
.intel-review-questions ul { padding-left: 18px; margin: 0; }
.intel-review-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 20px 0 0; }
.intel-action { padding: 16px; border: 1px solid #e0e5ed; border-radius: 10px; background: #f8f9fc; min-width: 0; }
.intel-action-approve { grid-column: 1 / -1; background: #f1f6fd; border-color: #c9d7ea; }
.intel-action p { margin: 10px 0 0; color: #465369; }
.intel-action button { width: 100%; text-align: center; }
.intel-decision-step .intel-result:empty { display: none; }
.intel-decision-step .intel-result:not(:empty) { padding: 12px 14px; background: #f2f5fa; border: 1px solid #d6e0ee; border-radius: 8px; color: #253e5b; }
.intel-support-panel { border-top: 1px solid #e1e5ec; margin-top: 12px; padding: 0 4px 8px; }
.intel-support-panel > summary { min-height: 44px; padding: 12px 0; box-sizing: border-box; font-size: 13px; color: #43526b; cursor: pointer; font-weight: 550; }
.intel-support-panel > p { max-width: 680px; }
.intel-contact-panel[open] { padding: 0 16px 12px; background: #f5f7fa; border-radius: 10px; }
.intel-queue-item button:focus-visible, .intel-workflow a:focus-visible, .intel-queue-item summary:focus-visible { outline: 3px solid #5b83bb; outline-offset: 3px; }
@media (max-width: 600px) {
  .intel-workflow { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .intel-workflow li:nth-child(2) { border-right: 0; }
  .intel-workflow li:nth-child(-n+2) { border-bottom: 1px solid #dae2ed; }
  .intel-workflow a { min-height: 52px; }
  .intel-review-step { padding: 18px 14px; }
  .intel-review-step h3 { font-size: 20px; }
  .intel-evidence-comparison, .intel-review-actions { grid-template-columns: 1fr; }
  .intel-report, .intel-source-document { padding: 14px; }
  .intel-source-transcript { max-height: none; overflow: visible; }
  .intel-queue-item { padding: 18px 12px; }
}
.intel-report-text { max-height: 320px; overflow-y: auto; }
@media (max-width: 600px) { .intel-report-text { max-height: none; overflow: visible; } }
.intel-source-transcript:focus-visible { outline: 3px solid #5b83bb; outline-offset: 3px; }

/* Queue triage (issue #219): status filter with counts, order, and per-card facts. */
.intel-queue-controls { display: flex; flex-wrap: wrap; gap: 16px; margin: 10px 0 4px; }
.intel-queue-controls label { display: flex; flex-direction: column; gap: 6px; flex: 1 1 220px; min-width: 0; font-size: 12px; font-weight: 550; }
.intel-queue-controls select { box-sizing: border-box; width: 100%; min-width: 0; padding: 12px 13px; border: 1px solid #c8c8cd; border-radius: 10px; font-family: inherit; font-size: 16px; line-height: 1.45; background: #fff; color: #1d1d1f; }
.intel-triage-help { margin: 18px 0 6px; }
.intel-triage-help > p { font-size: 13px; line-height: 1.65; margin: 8px 0; max-width: 760px; }
#intel-triage-summary { margin: 12px 0 0; }
.intel-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 12px; }
.intel-badge { display: inline-flex; align-items: center; min-height: 28px; padding: 3px 11px; border-radius: 999px; border: 1px solid transparent; font-size: 12px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.intel-badge--age { background: #f0f1f5; color: #3a4252; border-color: #dcdfe6; }
.intel-badge--overdue, .intel-badge--expired { background: #fdecec; color: #8f1d1d; border-color: #f3b9b9; }
.intel-badge--ok { background: #e9f6ee; color: #1f5d3a; border-color: #bfe1cc; }
.intel-badge--identity { background: #fff4e0; color: #7a4b00; border-color: #f2d49a; }
.intel-badge--held { background: #efe7fb; color: #4b2a85; border-color: #d4c3ef; }
.intel-hold-reason { padding: 10px 14px; background: #f6f1fd; border-left: 3px solid #6b4bb0; border-radius: 5px; color: #3b2a60; }
@media (max-width: 600px) {
  .intel-queue-controls { gap: 10px; }
  .intel-badges { gap: 6px; }
  .intel-badge { font-size: 11px; min-height: 26px; padding: 2px 9px; }
}

.intel-processing-result { margin:24px 0; padding:20px; background:#F5F5FF; border:1px solid #D3DDF1; border-radius:12px; overflow-wrap:anywhere; }
.intel-processing-phase { font-weight:700; }
.intel-score-facts { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:10px 18px; }
.intel-score-facts dt { font-weight:700; }
.intel-score-facts dd { margin:0; }
.intel-evaluation { border-top:1px solid #D3DDF1; padding:16px 0; }
.intel-proposal { margin:20px 0; padding:20px; background:#FFFBEA; border:1px solid #F1D98A; border-radius:12px; overflow-wrap:anywhere; }
.intel-proposal h4 { margin:16px 0 4px; }
.intel-proposal-text { white-space:pre-wrap; }
.intel-proposal-actions { display:flex; flex-wrap:wrap; align-items:end; gap:12px 18px; margin-top:16px; }
.intel-proposal-actions label { display:grid; gap:4px; min-width:min(100%,220px); }
.intel-notice-copy { white-space:pre-wrap; font:inherit; overflow-wrap:anywhere; }
@media(max-width:520px) { .intel-score-facts { grid-template-columns:1fr; gap:4px; } .intel-score-facts dd { margin-bottom:12px; } }

.intel-mail-status { padding-left:20px; }
