.section-page{width:min(720px,calc(100% - 32px));margin:7vh auto;padding:clamp(22px,5vw,42px);border:1px solid #e2e8f0;border-radius:18px;background:white}.section-page h1{font-size:clamp(30px,5vw,42px)}.section-page>p:not(.eyebrow){color:#607086}.section-content{margin:22px 0;padding:17px;border-radius:12px;background:#f2f6fa;color:#334155}.section-actions{display:flex;flex-wrap:wrap;gap:10px}.section-actions .secondary-button{display:inline-flex;align-items:center;text-decoration:none}
.history-list{display:grid;gap:12px}.history-card{padding:16px;border:1px solid #e2e8f0;border-radius:12px;background:#fff}.history-card h2{margin:0 0 6px;font-size:18px}.history-card p{margin:7px 0;color:#52647a}.history-card button{margin-top:8px;padding:9px 13px;border:0;border-radius:8px;background:#17477b;color:#fff;font:inherit;cursor:pointer}.history-card button:disabled{opacity:.55;cursor:wait}
.purchase-form{display:grid;gap:12px;margin-top:20px;padding:18px;border:1px solid #dce5ee;border-radius:14px;background:#fff}.purchase-form h2{margin:0 0 8px;color:#17324d}.purchase-form label{display:grid;gap:7px;color:#40546c;font-weight:650}.purchase-form input{width:100%;min-height:42px;padding:10px 12px;border:1px solid #cbd5e1;border-radius:8px;font:inherit}.purchase-form button{min-height:42px;padding:9px 14px;border:0;border-radius:8px;background:#17477b;color:#fff;font:inherit;font-weight:650;cursor:pointer}.purchase-form [hidden]{display:none}
.classes-actions{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:22px}.classes-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:9px 14px;border-radius:9px;text-decoration:none;font-weight:700}.classes-actions .primary-button{background:#17477b;color:#fff}.classes-actions .secondary-button{border:1px solid #cad5e1;background:#fff;color:#17324d}.class-list-section{margin:18px 0;padding:18px;border:1px solid #dce5ee;border-radius:13px;background:#fff}.class-list-section h2{margin:0 0 12px;color:#17324d;font-size:19px}.class-empty{margin:0;color:#64748b}.class-table-scroll{overflow-x:auto} .class-list-section table{width:100%;border-collapse:collapse;text-align:left}.class-list-section th,.class-list-section td{padding:11px 10px;border-bottom:1px solid #e6ecf2;white-space:nowrap}.class-list-section th{color:#52647a;font-size:12px;text-transform:uppercase;letter-spacing:.04em}.class-row-action{display:inline-block;padding:7px 12px;border-radius:7px;background:#17477b;color:#fff;text-decoration:none;font-size:13px;font-weight:700}
.history-filter{display:flex;align-items:center;gap:10px;margin:0 0 14px;color:#334a63;font-size:13px;font-weight:750}.history-filter select{min-height:40px;padding:8px 12px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#17324d;font:inherit}.history-table-scroll{border:1px solid #dce5ee;border-radius:12px;background:#fff}.history-results-table{width:100%;border-collapse:collapse;text-align:left}.history-results-table th,.history-results-table td{padding:12px 11px;border-bottom:1px solid #e6ecf2;color:#334a63;font-size:13px}.history-results-table th{background:#f2f6fa;color:#52647a;font-size:11px;text-transform:uppercase;letter-spacing:.04em}.history-results-table tbody tr[role=button]{cursor:pointer}.history-results-table tbody tr[role=button]:hover,.history-results-table tbody tr[role=button]:focus{background:#f4f8fc;outline:2px solid #d2e0ef;outline-offset:-2px}.history-results-table .history-detail-row td{background:#fbfcfe;white-space:normal;line-height:1.6}.history-detail-row p{margin:4px 0 10px;font-weight:700;color:#17324d}.history-detail-row ul{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:7px;margin:0;padding:0;list-style:none}.history-detail-row li{padding:8px 10px;border:1px solid #e3e9f1;border-radius:8px;background:#fff;overflow-wrap:anywhere}@media(max-width:700px){.history-results-table th,.history-results-table td{padding:10px 8px;font-size:12px}.history-table-scroll{margin:0 -8px}}
.history-detail-reference{margin-top:14px;padding:14px;border:1px solid #dfe7ef;border-radius:10px;background:#fff}.history-detail-reference h3{margin:0 0 8px;color:#17324d;font-size:14px}.history-detail-reference>div{max-height:42vh;overflow:auto;padding:12px;border-radius:8px;background:#f8fafc;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8}.history-detail-reference mark{padding:2px 4px;border-radius:4px;color:#fff;font-weight:700}.history-detail-reference .history-wrong{background:#8f1d24}.history-detail-reference .history-missing{background:#9a6700}
.history-detail-page{display:grid;gap:16px;color:#17324d}
body.history-detail-open .section-page{width:min(1100px,calc(100% - 28px));margin:14px auto;padding:clamp(14px,3vw,26px)}
body.history-detail-open .section-page>.eyebrow,body.history-detail-open #section-title,body.history-detail-open #section-description,body.history-detail-open .section-actions{display:none!important}
body.history-detail-open .section-content{margin:0;padding:0;background:transparent}
.history-back-button{justify-self:start;min-height:40px;padding:8px 13px;border:1px solid #cbd8e5;border-radius:9px;background:#fff;color:#173d66;font:inherit;font-size:13px;font-weight:750;cursor:pointer}
.history-back-button:hover{background:#edf4fb}
.history-detail-heading{padding:16px;border:1px solid #dce5ef;border-radius:12px;background:linear-gradient(120deg,#edf4fb,#fff7ef)}
.history-detail-heading .eyebrow{margin:0 0 5px;color:#9a4b0c;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}
.history-detail-heading h2{margin:0;color:#102b50;font-size:clamp(20px,4vw,28px);overflow-wrap:anywhere}
.history-detail-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(115px,1fr));gap:9px}
.history-detail-metric{display:grid;gap:5px;padding:13px;border:1px solid #dce5ef;border-radius:10px;background:#fff}
.history-detail-metric span{color:#607086;font-size:12px}.history-detail-metric strong{color:#102b50;font-size:20px;overflow-wrap:anywhere}
.history-mistake-groups{display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:10px}
.history-mistake-groups>section{padding:12px;border:1px solid #dce5ef;border-radius:10px;background:#fff}
.history-mistake-groups h3{margin:0 0 8px;color:#17324d;font-size:14px}
.history-mistake-groups ul{display:grid;gap:6px;margin:0;padding:0;list-style:none}
.history-mistake-groups li{padding:7px 9px;border:1px solid #e3e9f1;border-radius:7px;background:#f8fafc;color:#334a63;font-size:13px;overflow-wrap:anywhere}
.history-detail-loading,.history-detail-error,.history-evaluation-pending{margin:0;padding:12px;border-radius:9px;background:#fff4e9;color:#8b4c15}
.history-submitted-matter>div{max-height:55vh;background:#fff;color:#111827;font-size:17px}
@media(max-width:560px){body.history-detail-open .section-page{width:calc(100% - 16px);margin:8px auto;padding:12px}.history-detail-page{gap:11px}.history-detail-heading{padding:13px}.history-detail-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.history-detail-metric{padding:10px}.history-detail-metric strong{font-size:18px}.history-mistake-groups{grid-template-columns:1fr}.history-detail-reference{padding:11px}.history-submitted-matter>div{max-height:50vh;font-size:15px}}
body.history-page .section-page{width:min(1180px,calc(100% - 32px));margin:24px auto;padding:clamp(20px,3vw,38px);box-shadow:0 16px 40px #17324d0b}
body.history-page #section-content{margin:20px 0 0;padding:clamp(14px,2.5vw,24px);border:1px solid #e2eaf2;background:linear-gradient(145deg,#f5f8fc,#f9fbfd)}
.history-list-view{display:grid;gap:14px}
.history-filter{margin:0;padding:0 0 12px;border-bottom:1px solid #e2e8f0;color:#43566d}
.history-filter select{min-width:150px;box-shadow:0 2px 6px #102b5008}
.history-table-scroll{overflow:auto;max-height:68vh;box-shadow:0 5px 18px #17324d0a}
.history-results-table{min-width:760px}
.history-results-table th{position:sticky;top:0;z-index:1;padding:12px 13px;background:#eaf1f8;color:#40566f}
.history-results-table td{padding:13px;border-bottom:1px solid #e8edf3;background:#fff}
.history-results-table tbody tr:nth-child(even) td{background:#f9fbfd}
.history-results-table tbody tr[role=button]:hover td,.history-results-table tbody tr[role=button]:focus td{background:#edf5fc}
.history-results-table tbody tr[role=button]:focus-visible{outline:3px solid #f07818;outline-offset:-3px}
@media(max-width:700px){body.history-page .section-page{width:calc(100% - 18px);margin:12px auto;padding:16px}.history-table-scroll{max-height:72vh}.history-results-table{min-width:710px}.history-results-table th,.history-results-table td{padding:12px 10px}.history-filter{align-items:flex-start;flex-direction:column;gap:7px}.history-filter select{width:100%}}
body.history-page .section-page{width:min(1180px,calc(100% - 20px));margin:12px auto;padding:clamp(14px,2vw,24px)}body.history-page .section-page>.eyebrow,body.history-page #section-description,body.history-page .section-actions{display:none!important}body.history-page .section-page h1{margin:0 0 12px;font-size:clamp(23px,3vw,32px)}body.history-page .section-content{margin:0;padding:0;background:transparent}body.history-page .history-list-view{display:grid;gap:12px}.history-filter{align-items:center;gap:12px;margin:0;padding:0;color:#334a63}.history-filter select{width:min(100%,360px)}.history-table-scroll{max-height:calc(100vh - 240px);overflow:auto}.history-results-table{min-width:720px}
@media(max-width:700px){body.history-page .section-page{width:calc(100% - 14px);margin:8px auto;padding:12px}.history-table-scroll{max-height:calc(100dvh - 210px)}.history-filter{flex-direction:row;align-items:center}.history-filter select{width:auto;flex:1}.history-results-table{min-width:700px}}
body.history-detail-open.history-page .section-page{width:min(1100px,calc(100% - 28px))}
