.history-page{max-width:1120px;padding-top:36px;padding-bottom:64px}.history-heading{max-width:760px;margin-bottom:30px}.history-heading h1{font-family:var(--font-display);color:var(--forest);margin:10px 0 16px;font-size:clamp(34px,5vw,52px);line-height:1.08}.history-heading>p:last-child{color:var(--muted);font-size:17px;line-height:1.6}.history-steps{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:0 0 28px;padding:0;list-style:none;display:grid}.history-steps li{border:1px solid var(--line);background:var(--surface);border-radius:16px;min-width:0;padding:22px}.history-step-icon,.history-entry-icon{width:46px;height:46px;color:var(--forest);background:#dce9c5;border-radius:12px;justify-content:center;align-items:center;display:flex}.history-steps h2{margin:16px 0 10px;font-size:18px}.history-steps p,.history-steps a{font-size:14px;line-height:1.6}.history-steps p{color:var(--muted);margin-bottom:12px}.history-workspace{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);align-items:start;gap:24px;display:grid}.history-upload-card,.history-privacy,.history-result,.history-log{border:1px solid var(--line);background:var(--surface);border-radius:16px;min-width:0;padding:26px}.history-upload-card h2,.history-privacy h2,.history-result h2,.history-log h2{font-family:var(--font-display);margin:0 0 14px;font-size:27px;line-height:1.2}.history-upload-card>p,.history-privacy p{color:var(--muted);font-size:14px;line-height:1.65}.history-privacy{background:#edf2e8}.history-privacy>svg{margin-bottom:14px}.history-dropzone{text-align:center;background:#f8faf4;border:1px dashed #9eb38b;border-radius:13px;margin:20px 0;padding:24px 18px}.history-dropzone>svg{color:var(--forest)}.history-dropzone p{margin:12px 0;font-size:14px;line-height:1.5}.history-selected,.history-log strong{overflow-wrap:anywhere}.history-muted{color:var(--muted);font-size:12px!important}.history-actions{flex-wrap:wrap;align-items:center;gap:12px;margin-top:18px;display:flex}.history-actions .button,.history-actions>button{min-height:44px}.history-page progress{width:100%;accent-color:var(--forest)}.history-error{background:#fff6f2;border-left:3px solid #9c5240;padding:12px;font-size:14px}.history-result{margin-top:28px}.history-result-heading{align-items:start;gap:12px;display:flex}.history-result-heading svg{color:var(--forest);flex-shrink:0}.history-metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:24px 0;display:grid}.history-metrics>div{background:#edf2e8;border-radius:10px;min-width:0;padding:14px}.history-metrics dt{color:var(--muted);font-size:12px}.history-metrics dd{font-family:var(--font-display);color:var(--forest);margin:8px 0 0;font-size:29px}.history-result details{margin-top:22px}.history-result summary{cursor:pointer;min-height:44px;padding-block:10px}.history-file-results{padding:0;list-style:none}.history-file-results li{border-bottom:1px solid var(--line);grid-template-columns:100px minmax(0,1fr);gap:14px;padding:12px 0;font-size:13px;display:grid}.history-log{margin-top:32px}.history-log>ul{margin:0;padding:0;list-style:none}.history-log li{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:18px;padding:16px 0;display:flex}.history-log li>div{gap:6px;min-width:0;display:grid}.history-log li span{color:var(--muted);font-size:12px}.history-entry{border:1px solid var(--line);background:#edf2e8;border-radius:16px;align-items:center;gap:24px;margin-block:26px;padding:24px 28px;display:flex}.history-entry.section-wrap{margin-top:0;margin-bottom:64px}.history-entry-icon{flex:0 0 68px;width:68px;height:68px}.history-entry h2{font-family:var(--font-display);margin:0 0 10px;font-size:29px;line-height:1.2}.history-entry p{color:var(--muted);margin:0;font-size:14px;line-height:1.6}.history-entry.is-compact{padding:18px 22px}.history-entry.is-compact h2{font-size:23px}.history-welcome{box-sizing:border-box;border:1px solid var(--line);background:var(--paper);width:min(540px,100vw - 32px);max-height:calc(100dvh - 32px);color:var(--forest);border-radius:18px;margin:auto;padding:30px;overflow-y:auto;box-shadow:0 20px 70px #123c3333}.history-welcome::backdrop{background:#102d2859}.history-welcome h2{font-family:var(--font-display);margin:18px 0;font-size:32px;line-height:1.2}.history-welcome p{line-height:1.6}.history-close{float:right;width:44px;height:44px;color:inherit;background:0 0;border:0;justify-content:center;align-items:center;display:flex}.history-welcome-steps{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:24px 0;padding:0;list-style:none;display:grid}.history-welcome-steps li{align-content:start;gap:9px;font-size:12px;display:grid}.history-page :focus-visible,.history-welcome :focus-visible,.history-entry :focus-visible{outline:3px solid var(--forest);outline-offset:3px}.history-page button:disabled{opacity:.55;cursor:default}.history-admin-filters,.history-admin-settings{flex-wrap:wrap;gap:14px;margin-block:20px;display:flex}.history-admin-filters label,.history-admin-settings label{gap:6px;font-size:13px;display:grid}.history-admin-settings input{max-width:180px}.history-admin-table-wrap{max-width:100%;overflow-x:auto}.history-admin-table{border-collapse:collapse;width:100%;font-size:13px}.history-admin-table th,.history-admin-table td{text-align:start;border-bottom:1px solid var(--line);vertical-align:top;padding:12px}.history-admin-table td{overflow-wrap:anywhere}.history-admin-table button{min-height:44px}@media (max-width:767px){.history-page{padding-top:24px}.history-steps{grid-template-columns:minmax(0,1fr);gap:12px}.history-steps li{padding:18px}.history-steps h2{margin-top:12px}.history-workspace{grid-template-columns:minmax(0,1fr);gap:18px}.history-upload-card,.history-privacy,.history-result,.history-log{padding:20px}.history-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.history-log li{flex-direction:column;align-items:start;gap:12px}.history-entry{align-items:start;gap:14px;padding:20px}.history-entry-icon{flex-basis:44px;height:44px}.history-entry-icon svg{width:26px}.history-entry h2{font-size:25px}.history-entry .history-actions{margin-left:-58px;padding-top:10px}.history-welcome{padding:22px}.history-welcome h2{font-size:28px}}.history-steps h2{font-family:var(--font-body);letter-spacing:0;font-weight:600}.history-upload-card h2,.history-privacy h2,.history-result h2,.history-log h2{letter-spacing:-.5px}.history-admin{min-width:0}.history-admin-filters label{flex:160px;min-width:0}.history-admin-filters :is(input,select){width:100%;min-width:0;max-width:100%;min-height:44px}.history-admin-table{min-width:900px}.history-admin-table td{max-width:240px}.history-admin-table td:last-child{min-width:130px}.history-admin-table button,.history-admin .history-actions>button{border:1px solid var(--line);background:var(--surface);color:var(--forest);border-radius:7px;margin:3px;padding:8px 12px}.history-admin button:disabled{opacity:.55;cursor:default}.history-admin>details{margin-top:24px}.history-admin>details>summary{border:1px solid var(--line);background:var(--surface);border-radius:8px;align-items:center;min-height:44px;padding:12px;font-weight:600;display:flex}.history-admin .history-result{overflow-wrap:anywhere}.history-phase-progress{gap:8px;width:100%;margin:12px 0;display:grid}.history-phase-progress p{margin:0}.history-phase-progress progress{width:100%;height:10px;accent-color:var(--forest,#234735)}.history-phase-progress.is-compact{margin:6px 0}.history-phase-progress.is-compact progress{max-width:420px;height:7px}.history-upload-paused{color:var(--muted);font-size:14px;line-height:1.6}
