.history-actions{display:flex;align-items:center;gap:10px;padding:12px 0 0;border-top:0;flex-wrap:wrap}.history-actions button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:36px;padding:0 13px;border:1px solid var(--border-soft,#eceef1);border-radius:999px;background:var(--fill,#f5f6f8);color:var(--text-3,#777);font:400 12px/1 -apple-system,BlinkMacSystemFont,'PingFang SC',sans-serif;cursor:pointer;transition:background .16s,color .16s,transform .16s}.history-actions button:hover{background:var(--accent-soft,#edf2fc);color:var(--accent)}.history-actions button:active{transform:scale(.96)}.history-actions button[aria-pressed=true]{color:var(--accent);background:var(--accent-soft,#edf2fc);border-color:transparent}.history-actions svg{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.history-actions button[aria-pressed=true] svg{fill:currentColor}.history-action-count{font-size:11px;font-variant-numeric:tabular-nums;padding-left:6px;border-left:1px solid currentColor;opacity:.7}.history-actions [hidden]{display:none!important}.history-actions button:disabled{opacity:.55;cursor:wait}.history-actions .history-feedback{flex-basis:100%}@media(pointer:coarse){.history-actions button{min-height:44px}}@media(prefers-reduced-motion:reduce){.history-actions button{transition:none}}
.history-feedback{font-size:12px;color:#888}.history-feedback:empty{display:none}
.history-dialog{--comment-bg:#fff;--comment-ink:#191919;--comment-muted:#999;--comment-fill:#f7f7f7;box-sizing:border-box;width:min(480px,calc(100% - 32px));height:min(620px,85dvh);max-height:85dvh;margin:auto;padding:0;overflow:hidden;border:0;border-radius:12px;background:var(--comment-bg);color:var(--comment-ink);box-shadow:0 20px 80px #0003;font:14px -apple-system,BlinkMacSystemFont,'PingFang SC',sans-serif}.history-dialog[open]{display:flex;flex-direction:column}.history-dialog::backdrop{background:#0006;backdrop-filter:none}.history-dialog-header{position:relative;flex:none;padding:20px 24px 16px;border-bottom:1px solid #ededed}.history-dialog h2{font-size:17px;font-weight:600;margin:0 0 6px;line-height:1.5}.history-subject{margin:0;padding-right:36px;color:#888;font-size:13px;line-height:1.5}.history-close{position:absolute;right:16px;top:14px;width:44px;height:36px;padding:0;border:0;background:none;color:#777;font:13px inherit;cursor:pointer}.history-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:4px 24px 20px}.history-empty{text-align:center;color:#aaa;font-size:14px;margin:70px 0}.history-comment{display:flex;gap:12px;padding:20px 0 0}.history-avatar{flex:none;width:34px;height:34px;border-radius:5px;background:#dfe9e2;color:#627e6b;display:grid;place-items:center;font-size:15px;font-weight:500}.history-comment-content{flex:1;min-width:0;padding-bottom:18px;border-bottom:1px solid #f1f1f1}.history-comment-head strong{font-weight:500;font-size:14px;color:#576b95}.history-comment p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65;font-size:15px;margin:5px 0 8px}.history-comment time{font-size:11px;color:#aaa}.history-comment button{border:0;background:none;color:#576b95;font-size:11px;padding:6px 10px;cursor:pointer}.history-more{display:block;margin:14px auto 0;background:none;border:0;color:#576b95;font-size:13px;min-height:36px;cursor:pointer}.history-dialog form{flex:none;background:var(--comment-fill);border-top:1px solid #eaeaea;padding:12px 20px max(16px,env(safe-area-inset-bottom));margin:0}.history-composer-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}.history-composer-meta input{width:150px;min-width:0;background:none;border:0;outline-offset:2px;font:12px inherit;color:#777;padding:4px 0}.history-meter{font-size:11px;color:#aaa;font-variant-numeric:tabular-nums}.history-composer-row{display:flex;align-items:flex-end;gap:10px}.history-input{flex:1;min-width:0}.history-dialog textarea{display:block;box-sizing:border-box;width:100%;min-height:64px;max-height:120px;resize:none;padding:10px 12px;border:1px solid #e8e8e8;border-radius:6px;background:var(--comment-bg);color:var(--comment-ink);font:15px/1.5 -apple-system,BlinkMacSystemFont,'PingFang SC',sans-serif}.history-composer-row>button{flex:none;border:0;border-radius:5px;background:#07c160;color:white;font-size:14px;font-weight:500;padding:0 18px;height:36px;cursor:pointer}.history-dialog .history-feedback{margin:8px 0 0}.history-dialog button:disabled{opacity:.45;cursor:default}.history-dialog button:focus-visible,.history-actions button:focus-visible{outline:2px solid #07c160;outline-offset:3px}
@media(max-width:600px){.history-dialog{width:100%;max-width:100%;height:76dvh;max-height:90dvh;margin:auto 0 0;border-radius:16px 16px 0 0}.history-dialog-header{padding:18px 20px 14px}.history-scroll{padding-inline:20px}.history-dialog form{padding-inline:16px}}
body[data-theme=dark] .history-dialog{--comment-bg:#202020;--comment-ink:#ddd;--comment-fill:#292929}.history-dialog[hidden]{display:none}
.history-dialog [hidden]{display:none!important}
