.history-main{width:min(1280px,calc(100% - 32px));margin:0 auto;padding:48px 0 72px;color:var(--text,#172033)}
.history-hero{display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:40px;align-items:end;padding:32px 0;border-bottom:1px solid var(--border,#e5e7eb)}
.history-hero h1{max-width:850px;margin:8px 0 12px;font-size:clamp(2rem,4vw,3.4rem);line-height:1.05;letter-spacing:-.04em}.history-hero p{max-width:760px;margin:0;color:var(--muted,#667085);font-size:1.05rem;line-height:1.7}.history-eyebrow{font-size:.78rem;font-weight:700;text-transform:uppercase;letter-spacing:.12em;color:#3157d5}.history-hero aside{border-left:3px solid #3157d5;padding:4px 0 4px 18px}.history-hero aside strong{display:block;font-size:2rem}.history-hero aside span{color:var(--muted,#667085);font-size:.9rem}
.history-toolbar{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:24px 0}.history-toolbar>div:first-child{display:grid;gap:4px}.history-toolbar span{color:var(--muted,#667085);font-size:.9rem}.history-actions{display:flex;gap:8px}.history-actions button,.compare-panel button,.history-empty a{border:0;border-radius:7px;background:#3157d5;color:#fff;padding:10px 14px;font-weight:700;cursor:pointer;text-decoration:none}.history-actions .secondary{background:transparent;color:inherit;border:1px solid var(--border,#dfe3ea)}
.history-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.history-card{border:1px solid var(--border,#e4e7ec);border-radius:9px;padding:18px;background:var(--card,#fff)}.history-card header{display:flex;justify-content:space-between;gap:18px}.history-card h3{margin:3px 0 0;font-size:1.05rem}.history-card small,.history-card p{color:var(--muted,#667085)}.history-card .audit-date{font-size:.82rem}.history-card-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:16px;padding-top:14px;border-top:1px solid var(--border,#edf0f4)}.history-metric span{display:block;font-size:.75rem;color:var(--muted,#667085)}.history-metric strong{display:block;margin-top:3px;font-size:1rem}.history-select{display:flex;align-items:center;gap:8px;font-size:.85rem}.history-select input{accent-color:#3157d5}.integrity-ok{color:#067647;font-size:.8rem;font-weight:700}
.compare-panel{margin-top:30px;border-top:1px solid var(--border,#e5e7eb);padding-top:28px}.compare-panel header{display:flex;justify-content:space-between;gap:24px;align-items:end}.compare-panel h2{margin:4px 0 6px}.compare-panel p{margin:0;color:var(--muted,#667085)}.compare-panel button:disabled{opacity:.45;cursor:not-allowed}.comparison-result{margin-top:18px}.compare-table{width:100%;border-collapse:collapse}.compare-table th,.compare-table td{text-align:left;padding:12px 10px;border-bottom:1px solid var(--border,#e5e7eb)}.compare-table th{font-size:.78rem;text-transform:uppercase;letter-spacing:.06em;color:var(--muted,#667085)}.delta-good{color:#067647}.delta-bad{color:#b42318}.delta-neutral{color:var(--muted,#667085)}
.history-empty,.history-error{padding:28px;border:1px solid var(--border,#e5e7eb);border-radius:9px}.history-empty{text-align:center}.history-empty p{color:var(--muted,#667085)}.history-error{color:#b42318;background:rgba(180,35,24,.05)}
body.dark-mode .history-main{--text:var(--brand-50);--muted:#9ca8bf;--border:#2b3448;--card:#12192a}
@media(max-width:800px){.history-hero{grid-template-columns:1fr}.history-grid{grid-template-columns:1fr}.history-toolbar,.compare-panel header{align-items:stretch;flex-direction:column}.history-card-grid{grid-template-columns:repeat(2,1fr)}}
.integrity-ok{display:flex;align-items:center;gap:7px}.integrity-ok .ms-icon{width:15px;height:15px;flex:none}
