.history-heading,.history-row-heading,.history-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.history-heading h2,.history-row h3{margin:0}.history-context{padding:14px 18px;background:var(--surface-soft,#f5f2eb);border-left:3px solid var(--gold,#cfa449);border-radius:0 8px 8px 0;line-height:1.6}.history-import,.history-empty{padding:24px;border:1px solid var(--line,#dce0e5);border-radius:12px;margin:20px 0;background:var(--surface,#fff)}.history-import{display:grid;gap:14px;max-width:850px}.history-import h3,.history-import h4,.history-import p{margin:0}.history-import label,.history-toolbar label{display:grid;gap:8px}.history-import .btn{justify-self:start}.history-toolbar{align-items:flex-end;margin:20px 0}.history-toolbar label{min-width:250px}.history-list{display:grid;gap:12px}.history-row{padding:18px 22px;border:1px solid var(--line,#dce0e5);border-radius:10px;background:var(--surface,#fff);min-width:0}.history-row p{margin:6px 0}.history-row summary,.history-provenance summary{cursor:pointer;font-weight:600;padding:8px 0}.history-fields{display:grid;grid-template-columns:minmax(120px,210px) minmax(0,1fr);gap:10px 18px;margin:12px 0;line-height:1.6}.history-fields dt{color:var(--muted,#67717f)}.history-fields dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.history-provenance{margin-top:24px;overflow-wrap:anywhere}.history-provenance p{font-size:13px}.history-row-heading>div{min-width:0}.history-row h3{overflow-wrap:anywhere;font-size:17px}.history-row .badge{flex-shrink:0}.history-import input[type=file]{max-width:100%}[data-theme=dark] .history-context{background:#252b32}[data-theme=dark] .history-row,[data-theme=dark] .history-import,[data-theme=dark] .history-empty{background:var(--surface,#20262e)}
@media(max-width:650px){.history-heading,.history-toolbar,.history-row-heading{flex-direction:column;gap:12px}.history-toolbar label{min-width:0;width:100%}.history-import,.history-empty,.history-row{padding:16px}.history-fields{grid-template-columns:1fr;gap:3px}.history-fields dd{margin-bottom:10px}.history-heading>.btn{width:100%}}
