.note-history {max-width:1040px;margin:0 auto;min-width:0}
.note-history-heading {display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}
.note-history-heading h2 {margin:7px 0 0;font-size:1.7rem;letter-spacing:-.04em}
.note-history-filters {display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr);gap:12px;padding:18px;background:var(--surface,#15161d);border:1px solid var(--border,#2b2c37);border-radius:14px}
.note-history-filters label {display:grid;gap:7px;min-width:0;font-size:.76rem;color:var(--muted,#a2a3b0)}
.note-history-filters select {min-width:0;max-width:100%;width:100%;color:var(--text,#e9e8f0);background:#1d1e26;border:1px solid #343542;padding:10px 11px;border-radius:8px;font:inherit;font-size:.86rem;text-overflow:ellipsis}
.note-history-status,.note-history-caption,.note-history-empty {font-size:.8rem;line-height:1.65;color:var(--muted,#a2a3b0)}
.note-history-status {min-height:1.65em;margin:17px 0 5px}
.note-history-caption {margin:18px 0}
.note-history-list {list-style:none;padding:0;margin:0}
.note-history-list>li {display:grid;grid-template-columns:18px minmax(0,1fr);gap:13px;position:relative}
.note-history-list>li:not(:last-child)::before {content:"";position:absolute;left:4px;top:26px;bottom:-16px;width:1px;background:#30313e}
.note-history-marker {width:9px;height:9px;border-radius:50%;background:#b5a4ed;margin-top:24px;box-shadow:0 0 0 4px #b5a4ed12;z-index:1}
.note-history-event {padding:18px 0;border-bottom:1px solid #2b2c3555;min-width:0}
.note-history-event-top {display:flex;justify-content:space-between;flex-wrap:wrap;gap:6px 16px;margin-bottom:8px;font-size:.75rem;color:var(--muted,#a2a3b0)}
.note-history-event-top>span {color:#c2b4ee}
.note-history-title {font-size:.97rem;font-weight:550;overflow-wrap:anywhere}
.note-history-event p {font-size:.79rem;color:var(--muted,#a2a3b0);margin:7px 0}
.note-history-event small {font-size:.75rem;color:var(--muted,#a2a3b0)}
.note-history-links {display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.note-history-links .btn {font-size:.76rem;min-height:36px;padding:7px 10px}
.note-history-more {margin-top:20px}
.note-revision {border:1px solid #30313b;border-radius:12px;margin:14px 0;overflow:hidden}
.note-revision>summary {cursor:pointer;display:grid;gap:7px;padding:17px 19px;background:#ffffff03}
.note-revision>summary strong {font-size:.93rem}
.note-revision>summary span,.note-revision>summary small {font-size:.77rem;color:var(--muted,#a2a3b0);overflow-wrap:anywhere}
.note-revision[open]>summary {border-bottom:1px solid #30313b}
.note-revision-content {padding:0 19px 19px;min-width:0}
.note-history-diff-heading {font-size:.78rem;margin:16px 0 12px;color:var(--muted,#a2a3b0)}
.note-diff-added {color:#a6d8be}.note-diff-removed {color:#f1ada7}
.note-history-diff {padding:0!important;font:12px/1.65 ui-monospace,SFMono-Regular,Consolas,monospace;max-height:340px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;tab-size:2;border:1px solid #30313b;border-radius:7px}
.note-history-diff>span {display:block;padding:2px 10px}
.note-diff-add {background:#70c09312;color:#b3e0c4}.note-diff-remove {background:#d9858112;color:#efb3ad}.note-diff-same {color:var(--muted,#a2a3b0)}
.note-revision-source {margin:16px 0}
.note-revision-source>summary {cursor:pointer;font-size:.81rem;color:#bcb2d6}
.note-revision-source h4 {font-size:.92rem;overflow-wrap:anywhere}
.note-revision-source pre {font:12px/1.7 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere;max-height:380px;overflow:auto;padding:12px;background:#08090e55;border-radius:7px}
@media(max-width:640px){.note-history-filters{grid-template-columns:repeat(2,minmax(0,1fr));padding:14px}.note-history-filters>label:first-child{grid-column:1/-1}.note-history-heading h2{font-size:1.45rem}.note-history-event-top{display:grid}.note-revision-content{padding:0 13px 15px}.note-revision>summary{padding:15px 13px}}
