.lijun-v3 .lijun-draft-history-actions{display:flex;gap:7px;align-items:stretch;min-width:0}
.lijun-v3 .lijun-draft-history-actions>button{white-space:nowrap}
.lijun-history-dialog{box-sizing:border-box;width:min(1040px,calc(100% - 32px));max-width:none;max-height:calc(100dvh - 48px);margin:auto;padding:0;border:1px solid var(--lj-line);border-radius:16px;background:var(--lj-card);color:var(--lj-text);box-shadow:0 24px 80px #0005;overflow:hidden}
.lijun-history-dialog:not([open]){display:none}
.lijun-history-dialog[open]{display:flex;flex-direction:column}
.lijun-history-dialog::backdrop{background:rgb(2 6 23 / .58)}
body:has(.lijun-history-dialog[open]){overflow:hidden}
.lijun-history-dialog>header{display:flex;flex:0 0 auto;justify-content:space-between;align-items:center;gap:12px;padding:16px 18px;border-bottom:1px solid var(--lj-line);background:var(--lj-card)}
.lijun-history-dialog>header h2{min-width:0;margin:0;font-size:20px;line-height:1.4}
.lijun-history-dialog .lijun-history-close{display:grid;place-items:center;flex-shrink:0;width:40px;height:40px;padding:0;border:1px solid var(--lj-line);border-radius:10px;background:var(--lj-card-2);color:var(--lj-text);font-size:26px;line-height:1;cursor:pointer}
.lijun-v3 .lijun-history-dialog>.lijun-history{box-sizing:border-box;min-height:0;overflow:auto;overscroll-behavior:contain;padding:16px;border:0;border-radius:0;background:var(--lj-card);box-shadow:none}
.lijun-history-dialog>.lijun-history>h3{display:none}
.lijun-history-dialog .lijun-history-grid{grid-template-columns:repeat(2,minmax(0,1fr));margin:0;gap:10px}
.lijun-history-dialog .lijun-statement{min-width:0}
.lijun-history-dialog .lijun-history-close:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
@media(max-width:600px){
  .lijun-v3 .lijun-draft-history-actions{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
  .lijun-v3 .lijun-draft-history-actions>button{min-width:0;white-space:normal;min-height:44px;font-size:11px}
  .lijun-v3 .lijun-actions>[data-lijun-documents]{grid-column:1/-1}
  .lijun-history-dialog{width:calc(100% - 20px);max-height:calc(100dvh - max(20px,env(safe-area-inset-top)) - max(20px,env(safe-area-inset-bottom)));border-radius:14px}
  .lijun-history-dialog>header{padding:12px;gap:8px}
  .lijun-history-dialog>header h2{font-size:17px}
  .lijun-v3 .lijun-history-dialog>.lijun-history{padding:12px}
  .lijun-history-dialog .lijun-history-grid{grid-template-columns:minmax(0,1fr);gap:9px}
}
