.history-section{border-top:1px solid var(--line);margin-top:22px;padding-top:18px}
.history-section>p{font-size:.875rem;line-height:1.8;color:var(--muted)}
.history-row{padding:14px 0;border-top:1px solid var(--line);display:flex;gap:12px;justify-content:space-between;align-items:center}
.history-row p{font-size:.8rem;line-height:1.7;margin:5px 0;color:var(--muted)}
.history-row .backup-actions{flex-wrap:wrap;flex-shrink:0}
#history-dialog{width:min(940px,calc(100% - 32px));max-width:940px}
#history-dialog>p{font-size:.875rem;line-height:1.8;margin:12px 0}
.history-difference{border:1px solid var(--line);border-radius:10px;padding:14px;margin:14px 0}
.history-difference>label{display:flex;gap:10px;align-items:center;font-weight:600;overflow-wrap:anywhere}
.history-difference input{width:20px;height:20px;flex-shrink:0}
.history-compare{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}
.history-compare section{background:#f1f3e9;padding:12px;border-radius:8px;min-width:0}
.history-compare pre{font:inherit;font-size:.875rem;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;max-height:300px;overflow:auto;margin:8px 0}
.history-compare img{width:75px;height:75px;object-fit:cover;border-radius:6px;margin:4px;max-width:100%}
@media(max-width:600px){.history-row{align-items:flex-start;flex-direction:column}.history-compare{grid-template-columns:1fr}.history-difference{padding:11px}}
