.detail-history [data-history-root]{min-width:0;padding-top:7px}
.history-tools{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:5px;margin-bottom:5px}
.history-modes{display:inline-flex;gap:2px;padding:2px;border:1px solid var(--line);border-radius:6px;background:#f4f8f5}
.history-modes button{min-height:27px;padding:3px 7px;border:0;border-radius:4px;background:transparent;font:inherit;font-size:11px;color:var(--muted);cursor:pointer;white-space:nowrap}
.history-modes button[aria-pressed=true]{background:#fff;color:#205c43;box-shadow:0 1px 3px #173c2412;font-weight:650}
.history-modes button>span{font-size:10px;font-variant-numeric:tabular-nums;color:var(--muted);margin-left:2px}
.history-tools select{min-width:0;max-width:100%;min-height:29px;padding:4px 21px 4px 6px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--ink);font:inherit;font-size:11px;flex:1 1 110px}
.history-count{font-size:10px;line-height:1.4;color:var(--muted);margin:4px 0}
.history-pane{margin:0;min-width:0;scrollbar-width:thin;overflow-wrap:anywhere}
.detail-history .history-event{display:grid;grid-template-columns:20px minmax(0,1fr);gap:6px;padding:7px 0;border-bottom:1px solid #edf1ee;margin:0}
.history-event .event-icon{width:20px;height:20px;padding:4px}
.history-event strong,.history-change>header>strong{font-size:12px;line-height:1.4}
.history-event time,.history-change time{font-size:10px;line-height:1.4;color:var(--muted)}
.history-meta{font-size:10px;line-height:1.4;color:var(--muted);margin:2px 0}
.history-event .detail-note{font-size:11px;line-height:1.45;margin-top:4px;white-space:pre-line}
.history-change{padding:8px 0;border-bottom:1px solid #e4ece6;min-width:0}
.history-change>header{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:2px 7px}
.history-diff{display:grid;grid-template-columns:minmax(0,1fr) 14px minmax(0,1fr);gap:3px 5px;margin-top:7px;min-width:0}
.history-diff>strong{grid-column:1/-1;font-size:11px;font-weight:550;line-height:1.4}
.history-before,.history-after{display:grid;align-content:start;gap:3px;min-width:0;padding:5px 7px;border:1px solid #e3e8e4;border-radius:5px;background:#f7f9f7;font-size:11px;line-height:1.4;white-space:pre-line;overflow-wrap:anywhere}
.history-after{background:#edf7f0;border-color:#d1e4d6;color:#28583c}
.history-diff small{font-size:9px;color:var(--muted)}
.history-arrow{align-self:center;text-align:center;color:#7c9586;font-size:13px}
.history-empty,.history-hint{font-size:11px;line-height:1.45;color:var(--muted);margin:8px 0}
.history-more{width:100%;min-height:30px;padding:5px 8px;border:1px solid var(--line);border-radius:6px;background:#f5f9f6;color:var(--green);font:inherit;font-size:11px;margin-top:7px;cursor:pointer}
.history-more:disabled{opacity:.6;cursor:wait}
.history-error{padding:6px 8px;border:1px solid #eed5cf;border-radius:6px;background:#fff7f4;color:#9a4433;font-size:11px;line-height:1.4;margin:5px 0}
.history-error button{font:inherit;border:0;color:inherit;background:transparent;text-decoration:underline;cursor:pointer;padding:3px}
.history-tools :is(button,select):focus-visible,.history-more:focus-visible{outline:2px solid #348566;outline-offset:1px}
@media(max-width:760px){
 .history-modes button,.history-tools select,.history-more{min-height:44px;font-size:12px}
 .history-tools{gap:5px}
 .history-tools select{font-size:16px;flex-basis:120px}
 .history-diff>strong,.history-before,.history-after,.history-event .detail-note{font-size:12px}
 .history-change>header>strong,.history-event strong{font-size:13px}
 .history-meta,.history-event time,.history-change time{font-size:11px}
}
