.rev-heading,.rev-actions,.rev-links{display:flex;align-items:center;gap:.65rem;flex-wrap:wrap}
.rev-heading{justify-content:space-between;margin-bottom:.5rem}.rev-heading h2{margin-bottom:0}
.rev-actions{margin-top:1.3rem}.rev-history{margin-top:1.4rem;padding-top:1rem;border-top:1px solid var(--line)}
.rev-history summary{cursor:pointer;color:var(--deep);font-weight:650;padding:.55rem 0}
.rev-record{padding:1rem 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.rev-record:last-child{border-bottom:0;padding-bottom:0}.rev-record h4,.rev-diff h4{margin:0 0 .4rem;color:var(--deep)}
.rev-links a{display:inline-flex;align-items:center;min-height:44px;color:var(--green);font-weight:600;font-size:.88rem}
.rev-reason{font-size:.87rem;white-space:pre-wrap;overflow-wrap:anywhere;margin:.55rem 0}
.rev-success:not(:empty),.rev-info:not(:empty){background:#e8f3ec;color:#22583a;padding:.7rem;border-radius:6px;margin:.7rem 0}
.rev-error:not(:empty){background:#fff1e0;color:#762c13;padding:.7rem;border-radius:5px;margin:.7rem 0}
dialog.rev-editor{max-width:min(42rem,calc(100vw - 1.5rem));max-height:88vh;overflow:auto;overscroll-behavior:contain}
.rev-editor .lead{margin:.5rem 0 1rem}.rev-editor textarea{min-height:60px}.rev-editor h2{margin-top:0}
.rev-diff{padding:.75rem 1rem;border-left:3px solid var(--line-dark);background:var(--paper);margin-bottom:.8rem}
.rev-diff-label{font-size:.78rem;color:var(--muted);font-weight:650;display:block;margin:.55rem 0 .15rem}
@media(max-width:500px){dialog.rev-editor{max-height:90dvh;padding:1rem}.rev-editor .btn-row{gap:.4rem}}
