:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#18293c;background:#f3f6fa;font-size:16px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}header{height:76px;background:#122236;color:#fff;display:flex;align-items:center;padding:0 3%;gap:34px;border-bottom:3px solid #59d4bb}.brand{color:white;text-decoration:none;font-size:23px;font-weight:700;letter-spacing:-.7px;display:flex;align-items:center;gap:10px}.mark{color:#68dfc7;border:1px solid #446777;border-radius:5px;width:30px;text-align:center;font-size:27px;line-height:30px}.header-label{font-size:12px;letter-spacing:1.8px;color:#adbacc}header .quiet{margin-left:auto;color:#dce6f0}main{max-width:1800px;margin:auto;padding:34px 3% 22px}.intro{display:flex;justify-content:space-between;gap:25px;align-items:center;margin-bottom:28px}.eyebrow,.source-label{font-size:12px;letter-spacing:1.6px;font-weight:700;color:#467268}h1{font-size:32px;letter-spacing:-1px;margin:10px 0}p{line-height:1.6}.intro p{margin:0;color:#5b6b7e}.snapshot{text-align:right;display:grid;gap:8px;flex-shrink:0}.snapshot span,.context span{font-size:11px;letter-spacing:1.2px;font-weight:650;color:#68798b}.snapshot strong{font-size:16px}.snapshot small{color:#68798b;font-size:12px}.context{background:#fff;border:1px solid #dce3eb;display:flex;padding:19px 22px;gap:32px;border-radius:8px}.context div{display:grid;gap:7px}.context strong{font-size:14px}.context .progress{margin-left:auto;padding-left:24px;border-left:1px solid #dce3eb}.workspace-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:26px 0 14px}h2{font-size:18px;letter-spacing:-.3px;margin:0}.step{font-size:12px;background:#e3eaf2;color:#526880;display:inline-grid;place-items:center;width:26px;height:26px;border-radius:5px;margin-right:9px}.workspace-heading p,#saveStatus{font-size:13px;color:#637489;margin:0}.grids{display:grid;grid-template-columns:1fr 1fr;gap:18px;min-width:0}.panel{background:#fff;border:1px solid #dce3eb;border-radius:9px;min-width:0;overflow:hidden}.panel-title{padding:20px 20px 16px;display:flex;align-items:center;justify-content:space-between}h3{margin:6px 0 0;font-size:19px;letter-spacing:-.3px}.count{font-size:12px;color:#5e7084;background:#f1f4f8;padding:6px 9px;border-radius:5px}.tools{display:flex;gap:10px;padding:0 18px 16px}.search{display:flex;align-items:center;gap:8px;border:1px solid #d5dde7;border-radius:5px;padding-left:10px;flex:1;min-width:0;color:#6b7c8e}.search input{border:0;background:transparent;width:100%;padding:10px 7px;font-size:14px;min-width:0}.tools select{max-width:120px}select{border:1px solid #d5dde7;border-radius:5px;background:#fff;padding:9px;font-size:14px;color:#25394e}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:14px;font-variant-numeric:tabular-nums;white-space:nowrap}th{background:#edf2f7;font-weight:600;text-align:left;color:#5d6e82;font-size:12px;letter-spacing:.2px;padding:12px 9px}th button{border:0;background:none;color:inherit;font:inherit;padding:0;display:flex;gap:5px;align-items:center}td{padding:14px 9px;border-bottom:1px solid #edf1f5;height:52px}.num{text-align:right;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:13px}.idcell strong{display:block;font-size:13px;font-weight:500}.idcell small{font-size:11px;color:#6a7c90}.check{padding-left:16px;width:38px}.check input{width:16px;height:16px;accent-color:#137e72}.side{font-size:11px;font-weight:700;letter-spacing:.4px;color:#405a73;background:#edf2f6;padding:4px 6px;border-radius:3px}tr.selected{background:#e9f8f4}tr.grouped{background:#f7f9fc}.reviewed-tag{display:block;font-size:10px;color:#567269;margin-top:3px}tbody tr:hover{background:#f0f6fa}.source-foot{padding:12px 16px;display:flex;justify-content:space-between;gap:10px;font-family:ui-monospace,monospace;font-size:10px;color:#6c7c90}.selection-bar{display:flex;align-items:center;justify-content:space-between;gap:20px;border:1px solid #cfdddF;background:#eaf2f3;padding:15px 20px;margin-top:16px;border-radius:7px}.selection-bar>div:first-child{display:grid;gap:5px}.selection-bar strong{font-size:14px}.selection-bar span{font-size:13px;color:#607587}.selection-bar>div:last-child{display:flex;gap:12px}.primary{border:1px solid #146c63;background:#146c63;color:#fff;font-size:14px;font-weight:600;border-radius:5px;padding:11px 16px}.primary span{color:inherit}.primary:hover{background:#0c5b53}.quiet{border:0;background:transparent;color:#426077;font-size:14px;padding:10px;border-radius:5px}.quiet:hover{background:#dce7eb}.log-count{font-size:12px;color:#536a81;background:#e3eaf2;padding:3px 7px;border-radius:4px;margin-left:6px}.empty{border:1px dashed #c9d4e0;border-radius:8px;min-height:124px;display:grid;place-content:center;text-align:center;background:#f9fbfd}.empty strong{font-size:15px;font-weight:600}.empty p{font-size:14px;color:#6b7c90;margin:8px 0}.log-row{background:#fff;border:1px solid #dce3eb;border-radius:7px;padding:17px 20px;display:flex;gap:20px;align-items:flex-start;margin:9px 0}.log-row .content{flex:1;min-width:0}.log-row h3{font-size:14px;margin:0 0 8px}.log-row p{font-size:14px;margin:8px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}.log-row small{color:#6b7c90;font-size:12px}.status-pill{font-size:12px;padding:5px 8px;background:#edf2f7;color:#36536a;border-radius:4px;display:inline-block}.log-actions{display:flex}.group-number{font:13px ui-monospace,monospace;color:#698097;padding-top:3px}footer{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:28px;border-top:1px solid #dce3eb;padding-top:14px;color:#6b7c90;font-size:12px}.build-note{font-size:12px;color:#6b7c90;margin:9px 0 0;max-width:960px}dialog{border:1px solid #d5dfe8;border-radius:12px;padding:26px;width:min(850px,94vw);max-height:90vh;color:#18293c;box-shadow:0 24px 100px #11223840}dialog::backdrop{background:#0d1d32a3;backdrop-filter:blur(3px)}.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:15px}.dialog-heading h2{font-size:23px;margin-top:8px}.icon-btn{background:#eef2f6;border:0;border-radius:5px;padding:4px 12px;font-size:24px;color:#52677d}.muted{color:#617286;font-size:14px}.field{display:grid;gap:8px;font-size:14px;font-weight:600;margin-top:18px}.field select,.field textarea{width:100%;font-weight:400}.field textarea{resize:vertical;border:1px solid #d5dde7;border-radius:5px;padding:12px;line-height:1.5}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.error{font-size:14px;color:#a52b31}.practice{border-left:3px solid #218474;background:#edf7f4;padding:15px}.practice p{margin:6px 0 0}li{line-height:1.6;margin:12px 0}#confirmDialog{max-width:430px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.no-results{text-align:center;padding:30px;color:#6b7c90} @media(min-width:1550px){td{padding:16px 12px}.num{font-size:14px}}@media(max-width:1100px){.grids{grid-template-columns:1fr}.header-label{display:none}.context{gap:20px;flex-wrap:wrap}.context .progress{margin-left:0}.workspace-heading{align-items:flex-start}.intro{align-items:flex-start}}@media(max-width:600px){header{height:66px;padding:0 16px}main{padding:24px 16px}.intro{display:block}h1{font-size:28px}.snapshot{text-align:left;margin-top:20px}.context{padding:16px;gap:18px 24px}.context .progress{padding-left:0;border:0}.workspace-heading{display:block}.workspace-heading p{margin-top:9px}.selection-bar{display:block;padding:14px}.selection-bar>div:last-child{margin-top:12px;justify-content:space-between}.primary{padding:10px 12px}.source-foot{flex-wrap:wrap}.log-row{gap:9px;padding:14px}.log-actions{flex-direction:column}.tools{padding:0 12px 14px}.panel-title{padding:16px}.brand{font-size:21px}dialog{padding:20px}footer{align-items:flex-start}.header-label{display:none}#saveStatus{display:block;margin-top:10px}}
header #browseEvidence{margin-left:auto}header #rulesBtn{margin-left:0}.log-actions{align-items:flex-start;flex-wrap:wrap}.log-actions .primary{padding:9px 12px}.investigation-summary{font-size:12px!important;color:#687b8b!important}.investigation-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px;margin-top:20px}#investigationDialog{width:min(1260px,96vw);padding:26px;max-height:92vh}#investigationDialog .dialog-heading{align-items:flex-start}.evidence-pane{min-width:0}.evidence-picker{margin:0 0 16px}.evidence-document{border:1px solid #dce4e9;background:#f9fbfc;border-radius:7px;overflow:hidden}.document-heading{padding:20px;border-bottom:1px solid #e0e7ed;background:#edf3f6}.document-stamp{font-size:10px;letter-spacing:1.4px;color:#5c7385;font-weight:700}.document-heading h3{font-family:ui-monospace,monospace;font-size:17px;margin-top:10px}.document-meta{display:grid;gap:12px;padding:18px 20px;margin:0;border-bottom:1px solid #e1e8ee}.document-meta div{display:flex;justify-content:space-between;gap:12px}.document-meta dt{font-size:12px;color:#617789}.document-meta dd{margin:0;font-size:12px;text-align:right;color:#243d54}#evidenceText{padding:20px;margin:0;font-size:16px;line-height:1.85;white-space:pre-wrap}.cite-button{margin:0 20px 20px;border:1px solid #b9d8cf;color:#166e61;background:#edf8f4}.provenance{margin-top:16px;padding:15px;border:1px solid #dbe3ec;border-radius:6px;font-size:14px;color:#526b7e}.provenance summary{cursor:pointer;font-weight:600}.provenance p{line-height:1.7}.investigation-context{padding:16px 18px;background:#edf3f7;border-left:3px solid #6d8b9c;border-radius:3px}.investigation-context h3{font-size:13px;margin:0 0 8px}.investigation-context p{font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 6px}.investigation-context small{font-size:12px;color:#63798c}.field-label{font-weight:600;font-size:14px}.citation-chip{border:1px solid #bbd7d0;background:#eff8f5;color:#1c6a5d;font-size:12px;border-radius:4px;padding:7px 9px;margin:8px 6px 0 0}.citation-chip span{margin-left:6px}.field-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}.field-pair select{width:100%;min-width:0}.investigation-end{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:22px;padding-top:16px;border-top:1px solid #dde5eb}.investigation-end span{font-size:12px;color:#607788}.library-only .investigation-layout{grid-template-columns:1fr}.library-only{max-width:850px} [hidden]{display:none!important}@media(max-width:850px){.investigation-layout{grid-template-columns:1fr}.field-pair{grid-template-columns:1fr}#investigationDialog{padding:18px}.log-actions{flex-direction:column}.log-row .content{min-width:0}.investigation-end{flex-wrap:wrap}}@media(max-width:600px){header{gap:4px;flex-wrap:wrap;height:auto;min-height:72px;padding:10px 12px}.brand{margin-right:auto}header #browseEvidence{margin-left:0}header .quiet{padding:8px 6px;font-size:12px}.document-meta div{display:block}.document-meta dd{text-align:left;margin-top:4px}}
.challenge-bar{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 20px;background:#152c41;color:#fff;border-radius:8px;margin-bottom:30px}.challenge-bar>div:first-child{display:grid;gap:6px}.challenge-bar .eyebrow{color:#84c9ba;font-size:10px}.challenge-bar strong{font-size:14px}.challenge-actions{display:flex;align-items:center;gap:14px}.challenge-actions .quiet{color:#d4e2ed}.challenge-actions .quiet:hover{background:#294157}.clock{font-family:ui-monospace,monospace;font-size:23px;min-width:80px;text-align:center;font-variant-numeric:tabular-nums}.challenge-actions .primary{background:#69ddbf;border-color:#69ddbf;color:#132e32}#startDialog{max-width:650px;padding:32px}#startTitle{font-size:31px;margin:12px 0}.start-facts{display:flex;gap:22px;background:#edf4f6;padding:17px;margin:22px 0;border-radius:6px}.start-facts span{display:grid;gap:6px;font-size:12px;color:#5d7387}.start-facts strong{font-size:14px;color:#1d384d}#startDialog details{font-size:14px;line-height:1.6;margin:16px 0}summary{cursor:pointer}#resultsDialog{max-width:930px}.result-hero{margin-top:25px;padding:25px;display:flex;justify-content:space-between;gap:24px;background:#152c41;color:#fff;border-radius:8px}.result-hero span{font-size:11px;letter-spacing:1.5px;color:#a9ccce}.result-hero strong{font-size:58px;display:block;letter-spacing:-2px;margin:8px 0;color:#79e1c7}.result-hero small{font-size:28px;letter-spacing:0}.result-hero p{font-size:13px;color:#c4d7e2;margin:0}.result-time{align-self:center;text-align:right}.result-time strong{font:32px ui-monospace,monospace;color:#fff;margin:16px 0}.result-stats{display:flex;gap:30px;padding:22px 5px;border-bottom:1px solid #dce4ec}.result-stats div{display:grid;gap:7px}.result-stats strong{font-size:23px}.result-stats span{font-size:12px;color:#60798b}.review-title{margin:24px 0 14px}.result-item{border:1px solid #dce5ec;border-radius:6px;margin:10px 0}.result-item>summary{display:flex;justify-content:space-between;align-items:center;padding:16px;font-size:14px;font-weight:600}.result-item>summary:before{content:'+';margin-right:12px;color:#718b9d}.result-item[open]>summary:before{content:'−'}.result-item>summary>span:first-of-type{margin-right:auto}.result-badge{font-size:12px;border-radius:4px;padding:5px 8px}.result-badge.correct{color:#186454;background:#e0f4ed}.result-badge.incorrect{color:#855118;background:#fcf0dd}.result-detail{padding:0 18px 18px;font-size:14px;line-height:1.7;overflow-wrap:anywhere}.result-detail p{white-space:pre-wrap}.result-detail details{padding:12px;background:#f1f5f8;border-radius:5px}.result-detail details summary{font-weight:600}@media(max-width:650px){.challenge-bar{align-items:flex-start;flex-direction:column}.challenge-actions{flex-wrap:wrap;gap:8px}.start-facts{flex-wrap:wrap;gap:16px}#startDialog{padding:24px}.result-hero{padding:18px}.result-hero strong{font-size:44px}.result-time strong{font-size:24px}.result-stats{gap:18px}.result-stats span{font-size:11px}}
/* The comparison remains visible while evidence and choices scroll independently. */
#investigationDialog:not(.library-only){width:min(1440px,98vw);height:94vh;max-height:94vh;overflow:hidden}
#investigationDialog[open]:not(.library-only){display:flex;flex-direction:column}
.investigation-trades{flex-shrink:0;border:1px solid #d9e3ea;border-radius:7px;margin-top:16px;overflow:hidden;max-height:30vh;overflow-y:auto}
.trade-strip-title{display:flex;justify-content:space-between;gap:12px;background:#eaf1f5;padding:10px 14px;font-size:14px}.trade-strip-title span{font-size:12px;color:#52677d}.investigation-trades td{padding:9px 12px;height:auto}.field-difference{background:#fff0cf;color:#684813}
#investigationDialog:not(.library-only) .investigation-layout{min-height:0;flex:1;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:22px}
#investigationDialog:not(.library-only) .evidence-pane,#investigationForm{overflow-y:auto;min-height:0;padding-right:8px;padding-bottom:16px}
.decision-choices{border:0;margin:24px 0 0;padding:0;min-width:0}.decision-choices legend{font-size:16px;font-weight:700;margin-bottom:12px}.decision-option{display:flex;gap:12px;align-items:flex-start;padding:12px;border:1px solid #d6e1e8;border-radius:6px;margin:8px 0;font-size:14px;line-height:1.5;cursor:pointer;background:white}.decision-option input{margin:4px 0 0;accent-color:#146c63;flex-shrink:0}.decision-option:has(input:checked){border-color:#168373;background:#eaf8f3;box-shadow:inset 3px 0 #168373}.decision-option:focus-within{outline:2px solid #168373;outline-offset:2px}.answer-review{background:#f0f5f8;padding:12px;border-radius:6px;margin:12px 0}.answer-review p{margin:8px 0}
@media(max-width:850px){#investigationDialog:not(.library-only) .investigation-layout{display:block;overflow-y:auto}#investigationDialog:not(.library-only) .evidence-pane,#investigationForm{overflow:visible}.trade-strip-title{display:block}.trade-strip-title span{display:block;margin-top:5px}.investigation-trades{max-height:28vh}.investigation-trades table{font-size:12px}.investigation-trades td{padding:7px}.investigation-trades th{padding:8px}.investigation-layout{margin-top:12px}}

.investigation-progress{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:14px}.investigation-badge{display:inline-flex;align-items:center;gap:7px;border-radius:5px;padding:8px 11px;font-size:14px;font-weight:650}.investigation-badge.complete{background:#daf1e9;color:#145b4b}.investigation-badge.in-progress{background:#fff0d5;color:#785018}.investigation-badge.not-started{background:#edf2f7;color:#4b6076}.investigation-progress-detail{font-size:13px;color:#607489}.investigation-complete-row{border-left:4px solid #268473}.review-answers{border:1px solid #b6d7cd;color:#185e50;background:#f2faf7}

.evidence-summary{padding:8px 20px 16px}.evidence-fact{padding:12px 0;border-bottom:1px solid #e0e7ed}.evidence-fact:last-child{border:0}.evidence-fact h4{font-size:14px;color:#4a6576;margin:0 0 5px}.evidence-fact p{font-size:16px;line-height:1.55;margin:0}.full-evidence{padding:14px 20px;border-top:1px solid #dce4e9;font-size:14px}.full-evidence summary{font-weight:600;color:#28695e}#evidenceText{padding:12px 0;font-size:14px;line-height:1.65}.procedure-note{font-size:13px;line-height:1.5;color:#657b8c;margin:18px 0 0}#previousAnswers:empty{display:none}#investigationForm .decision-choices:first-of-type{margin-top:0}.document-heading{padding:14px 20px}.decision-option{font-size:16px;padding:13px}.investigation-end{margin-top:14px}.provenance{margin-top:12px}.investigation-progress-detail{line-height:1.4}
#historyDialog{width:min(1020px,96vw)}.history-table td{font-size:14px}.history-table small{display:block;color:#61778a;font-size:12px;margin-top:5px}.personal-best{margin-top:20px;background:#152c41;color:#fff;padding:24px;border-radius:8px}.personal-best>span{font-size:12px;letter-spacing:1.2px;color:#afcfd0}.personal-best>strong{display:block;font-size:40px;color:#79e1c7;margin-top:12px}.personal-best small{font-size:21px;color:#fff}.personal-best p{margin-bottom:0;color:#c7dce5;font-size:14px}

.comparison-decision{flex-shrink:0;display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:11px 14px;margin-top:12px;border:1px solid #cbdde8;border-left:4px solid #54758e;border-radius:5px;background:#edf4f8}.comparison-decision>span{font-size:14px;color:#536b7f}.comparison-decision>strong{font-size:15px;color:#203e57}.investigation-source .source-name{display:block;font-size:14px;font-weight:650;line-height:1.35}.internal-source{color:#285b7e}.broker-source{color:#6d4d85}.source-record-id{display:block;font-family:ui-monospace,monospace;font-size:12px;color:#5b7184;margin-top:4px}.comparison-decision+.investigation-trades{margin-top:10px}
