.history-page .nav-item{text-decoration:none}.history-topbar{justify-content:space-between}.history-topbar .btn{margin-left:auto;text-decoration:none}.history-notice{background:#edf3fa;color:#48617e;border-color:#dde6f2}.history-notice .local-save{color:#5d7290}.history-status:empty{display:none}.history-status{padding:12px 15px;border:1px solid #dce5f2;background:#edf3fb;border-radius:7px;color:#355479;line-height:1.6;margin-bottom:17px}.history-status.error{background:#fff2ee;border-color:#edd2c7;color:#9a462c}.history-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:16px}.history-metric{padding:19px 20px;background:white;border:1px solid var(--border);border-radius:9px}.history-metric p{font-size:11px;color:var(--muted);margin-bottom:9px}.history-metric strong{font-size:26px;font-weight:650;letter-spacing:-.7px;color:var(--navy)}.history-metric small{display:block;margin-top:7px;color:#7b8798;line-height:1.5}.history-coverage{display:flex;align-items:center;flex-wrap:wrap;gap:9px;font-size:11px;color:#6c7a90;margin:0 0 23px}.history-coverage:empty{display:none}.history-coverage .source-badge{margin-right:2px}.history-coverage .coverage-detail{margin-left:auto;font-size:10px;color:#8791a1}.source-badge,.history-badge{display:inline-flex;align-items:center;gap:5px;border-radius:5px;padding:4px 7px;font-size:10px;line-height:1.3;white-space:nowrap;background:#eef2f7;color:#576b86;border:1px solid #e1e6ee}.source-badge{background:#eaf3ef;border-color:#d8e8df;color:#367050}.history-badge.archived{background:#f0eef8;border-color:#e1dced;color:#745d98}.history-badge.won{background:#eaf5ee;border-color:#d5e9dd;color:#2c7951}.history-badge.lost{background:#fcf0ed;border-color:#efddd6;color:#a2694f}.history-badge.open{background:#edf4fd;border-color:#d7e4f7;color:#4273ad}.history-badge.review{background:#fff6e6;border-color:#efdfbd;color:#8e6a27}.history-browser{border:1px solid var(--border);background:white;border-radius:10px;overflow:hidden}.history-toolbar{display:flex;align-items:center;gap:16px;padding:17px 18px;border-bottom:1px solid var(--border);flex-wrap:wrap}.history-search{margin-left:auto;display:flex;align-items:center;gap:9px;min-width:245px;max-width:420px;flex:1;border:1px solid #dce3ec;background:#f8f9fc;border-radius:6px;padding:9px 12px}.history-search input{border:0;background:none;outline:none;min-width:0;flex:1;font-size:12px}.history-search:focus-within{outline:2px solid #5c8de2;outline-offset:2px}.history-search span{color:#7e90a8;font-size:20px;line-height:1}.history-filter{display:flex;gap:7px;align-items:center;font-size:11px;color:#65748b}.history-filter select{border:1px solid #dce3ec;border-radius:5px;background:white;padding:8px;max-width:180px;font-size:11px;color:#445873}.history-table-wrap{overflow-x:auto}.history-table{width:100%;border-collapse:collapse;min-width:620px}.history-table th{text-align:left;padding:12px 18px;background:#fafbfe;color:#8591a2;font-size:10px;font-weight:550;border-bottom:1px solid var(--border)}.history-table td{padding:13px 18px;border-bottom:1px solid #edf0f5;font-size:12px;vertical-align:middle}.history-table tbody tr:last-child td{border-bottom:0}.history-table tbody tr:hover{background:#fafcff}.history-table small{display:block;margin-top:4px;color:#7c899e;font-size:10px;overflow-wrap:anywhere}.history-table td:nth-child(2){max-width:270px;overflow-wrap:anywhere}.history-person{padding:0;text-align:left;display:flex;gap:10px;align-items:center;max-width:320px;color:var(--navy);font-weight:600}.history-person:hover .history-person-name{text-decoration:underline}.history-person-name{overflow-wrap:anywhere}.history-person .avatar{background:#edf1f8;color:#4f6a95;width:34px;height:34px}.history-table tr.selected{background:#edf4ff}.history-record-open{padding:0;text-align:left;color:var(--blue);line-height:1.55;overflow-wrap:anywhere;max-width:600px}.history-record-open:hover{text-decoration:underline}.history-count{font-variant-numeric:tabular-nums;color:#617089}.history-inline-badges{display:flex;align-items:center;flex-wrap:wrap;gap:5px}.history-pager{padding:13px 18px;display:flex;align-items:center;gap:10px;border-top:1px solid var(--border);font-size:11px;color:#75839b;min-height:58px}.history-pager:empty{display:none}.history-pager .page-range{margin-right:auto}.history-empty{padding:40px 24px;text-align:center;color:#71829b;line-height:1.7}.history-empty h2{font-size:16px;color:#445b7b;margin-bottom:8px}.customer-panel{margin-top:24px;border:1px solid #dce4ef;border-radius:10px;background:white;scroll-margin-top:20px}.customer-panel-header{padding:22px 23px;border-bottom:1px solid var(--border);display:flex;align-items:flex-start;gap:15px;justify-content:space-between}.customer-panel-header h2{font-size:21px;letter-spacing:-.4px;color:var(--navy);line-height:1.5;overflow-wrap:anywhere}.customer-panel-header .subtitle{margin-top:3px}.customer-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;padding:20px 23px}.customer-facts dt{font-size:10px;color:#8390a4;margin-bottom:6px}.customer-facts dd{margin:0;font-size:12px;color:#405571;overflow-wrap:anywhere}.customer-panel-note{font-size:11px;line-height:1.7;color:#7c704f;background:#fffaf0;margin:0 23px 20px;padding:11px 13px;border-radius:6px;border:1px solid #eee5cf}.customer-record-toolbar{padding:14px 23px;border-top:1px solid var(--border);border-bottom:1px solid var(--border);display:flex;align-items:center;flex-wrap:wrap;gap:14px;background:#fafbfe}.customer-record-toolbar h3{font-size:12px;font-weight:600}.customer-record-toolbar .history-filter{margin-left:auto}.customer-record-counts{display:flex;gap:8px;flex-wrap:wrap;padding:0 23px 19px}.customer-record-counts span{font-size:10px;padding:5px 8px;border:1px solid #e7ebf2;border-radius:5px;color:#72829b;background:#fafbfc}.customer-record-counts b{color:#3c5579;margin-right:4px;font-weight:650}.history-record-dialog{width:min(920px,calc(100% - 40px));max-height:calc(100vh - 48px);padding:0;border:1px solid #dce3ed;border-radius:12px;box-shadow:0 18px 70px #102e562b;color:#30435e;background:white}.history-record-dialog::backdrop{background:#10233d73}.history-record-bar{position:sticky;top:0;background:white;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:17px 24px;border-bottom:1px solid var(--border)}.history-record-bar .eyebrow{margin:0}.history-record-dialog #history-record-content{padding:23px 24px 27px}.history-record-dialog h2{font-size:21px;line-height:1.5;letter-spacing:-.3px;overflow-wrap:anywhere;margin-bottom:8px}.history-record-meta{font-size:11px;color:#7b89a0;line-height:1.7;margin:8px 0 20px}.history-record-body{border:1px solid #e2e7f0;background:#fafbfe;border-radius:7px;padding:17px;margin:16px 0;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;font:13px/1.8 Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#40526c;max-width:100%}.history-original-fields{margin-top:21px;border-top:1px solid var(--border);padding-top:17px}.history-original-fields>summary{cursor:pointer;font-size:12px;font-weight:600;color:#425b80;padding:5px 0}.history-fields{display:grid;grid-template-columns:minmax(140px,1fr) minmax(0,3fr);margin:14px 0 0;border:1px solid var(--border);border-radius:7px;overflow:hidden}.history-fields dt{font-size:11px;font-weight:500;color:#7c8aa0;padding:11px 13px;background:#f8faff;border-bottom:1px solid #e7ebf2;overflow-wrap:anywhere}.history-fields dd{font-size:12px;color:#40536d;padding:11px 13px;margin:0;border-bottom:1px solid #e7ebf2;white-space:pre-wrap;overflow-wrap:anywhere;min-width:0}.history-fields dt:last-of-type,.history-fields dd:last-of-type{border-bottom:0}.history-fields .blank{font-style:italic;color:#9aa5b6;font-size:11px}.history-record-footnote{font-size:11px;color:#8390a4;line-height:1.7;margin-top:13px}.history-relationships{margin-top:22px}.history-relationships h3{font-size:12px;margin-bottom:9px}.history-relationships ul{padding-left:19px;list-style:disc}.history-relationships li{font-size:11px;color:#7b89a0;padding:4px 0;overflow-wrap:anywhere}.history-relationships button{font-size:11px;color:var(--blue);padding:0;text-decoration:underline}.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}
@media(min-width:1500px){.history-page main{max-width:1500px;width:100%;margin:0 auto}}@media(max-width:1000px){.history-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.history-coverage .coverage-detail{width:100%;margin-left:0}.history-toolbar{gap:11px}.history-search{min-width:210px}.history-page .topbar{gap:15px}}@media(max-width:700px){.history-page .sidebar{display:none}.history-page .shell{margin-left:0}.history-page main{padding:22px 15px}.history-page .topbar{padding:0 15px;height:63px}.history-page .breadcrumb{font-size:10px}.history-page .breadcrumb span{padding:0 5px}.history-page .topbar .btn{font-size:9px;padding:7px;min-height:32px}.history-notice{padding:10px 15px;flex-wrap:wrap;gap:5px;font-size:10px}.history-notice .local-save{margin-left:0;width:100%;font-size:9px}.history-page .page-heading{align-items:flex-start;gap:9px}.history-page .page-heading h1{font-size:23px}.history-page .page-heading .subtitle{font-size:11px}.history-page .page-heading>.btn{font-size:10px;white-space:nowrap;padding:7px 9px}.history-metrics{gap:9px}.history-metric{padding:15px}.history-metric strong{font-size:23px}.history-metric small{font-size:10px}.history-toolbar{padding:13px}.history-toolbar .view-switch{width:100%}.history-toolbar .view-switch button{flex:1;justify-content:center;padding:8px}.history-search{margin-left:0;width:100%;max-width:none;min-width:0}.history-toolbar>.history-filter{width:100%;justify-content:space-between}.history-toolbar>.history-filter select{max-width:none;flex:1}.history-table th,.history-table td{padding:12px 13px}.history-table{min-width:590px}.history-pager{padding:12px 13px;gap:7px;font-size:10px}.history-pager .btn{font-size:9px;min-height:30px}.customer-panel-header{padding:17px}.customer-facts{padding:17px;gap:17px}.customer-panel-note{margin:0 17px 17px}.customer-record-counts{padding:0 17px 16px}.customer-record-toolbar{padding:13px 17px}.customer-record-toolbar h3{width:100%}.customer-record-toolbar .history-filter{margin-left:0;flex:1;justify-content:space-between}.history-record-dialog{width:calc(100% - 20px);max-height:calc(100vh - 20px);border-radius:9px}.history-record-bar{padding:13px 16px}.history-record-dialog #history-record-content{padding:18px 16px}.history-record-dialog h2{font-size:18px}.history-fields{grid-template-columns:minmax(105px,1fr) minmax(0,2fr)}.history-fields dt,.history-fields dd{padding:9px;font-size:10px}.history-record-body{padding:13px;font-size:12px}.history-page .page-footer{padding:20px 15px;gap:10px;flex-wrap:wrap}}
.history-review-notice{padding:14px 16px;margin:17px 0;background:#fff8e9;border:1px solid #ecdcb8;border-radius:7px;color:#85652f}.history-review-notice h3{font-size:12px;margin:0 0 8px;color:#795821}.history-review-notice p{font-size:12px;line-height:1.7;margin:7px 0 0}.history-file-download{padding:16px 0;margin:13px 0}.history-file-download a{text-decoration:none}.history-file-download p{font-size:11px;color:#73839a;line-height:1.7;margin-top:9px}
.history-source-coverage{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr));width:100%;gap:12px}.history-source-card{padding:16px 18px;background:#fff;border:1px solid var(--border);border-radius:8px;line-height:1.7;min-width:0;overflow-wrap:anywhere}.history-source-card h2{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:14px;color:var(--navy);margin-bottom:9px}.history-source-card p{margin:6px 0}.history-source-card ul,.history-manual-capture>ul,.history-source-assignment ul{padding-left:20px;list-style:disc}.history-source-card .history-source-stamp{color:#8290a3;font-size:10px;margin-top:10px}.history-manual-capture{border-top:1px solid var(--border);padding-top:18px;margin-top:18px;line-height:1.7;font-size:12px;color:#556983}.history-manual-capture>h3{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:15px;color:var(--navy);margin-bottom:10px}.history-manual-capture>p{margin:9px 0}.history-source-assignments{padding:15px 17px;background:#f4f8fd;border:1px solid #dce6f4;border-radius:7px;margin:18px 0;font-size:12px;line-height:1.7;color:#556983}.history-source-assignments h3{font-size:13px;color:#3f597d;margin-bottom:6px}.history-source-assignments>p{font-size:11px;color:#76869e}.history-source-assignment{margin-top:12px;overflow-wrap:anywhere}.history-source-assignment small{display:block;font-size:10px;color:#7b8aa0}.history-source-assignment li{margin-top:4px}#customer-panel>.history-source-assignments{margin:0 23px 20px}.history-captured-section{margin:22px 0}.history-captured-section>h3{font-size:13px;color:#3f597d;margin:0 0 10px}.history-captured-section>p{font-size:11px;color:#7a899e}.history-captured-entry{padding:14px 0;border-top:1px solid var(--border)}.history-captured-entry h4{font-size:12px;overflow-wrap:anywhere;color:#526b8c}.history-captured-entry .history-fields{margin-top:10px}.history-captured-entry .history-record-body{margin-bottom:0}
.history-source-observations{margin:24px 0;padding:18px;border:1px solid #dce6f4;border-radius:8px;background:#fcfdff}.history-source-observations>h3{font-size:15px;color:var(--navy);margin-bottom:8px}.history-source-observations>p{font-size:12px;line-height:1.7;color:#71829b}
