.rai-history{--rh-fg:var(--fg,var(--tp-text,#edf0f6));--rh-muted:var(--fg-2,var(--tp-muted,#aeb8c8));--rh-bg:var(--bg-1,var(--tp-surface,#151922));--rh-line:var(--line-strong,var(--tp-border,#44516a));color:var(--rh-fg);font:inherit;min-width:0;max-width:100%;line-height:1.5}
.rai-history-heading,.rai-history-detail>header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:22px}.rai-history h2{font:inherit;font-weight:700;font-size:26px;line-height:1.2;margin:0 0 8px}.rai-history h3{font-size:19px;margin:0}.rai-history h4{font-size:15px;margin:0 0 10px}.rai-history p{max-width:75ch;margin:6px 0 14px}.rai-history-heading p,.rai-history small,.rai-history-note{color:var(--rh-muted);font-size:13px}.rai-history button,.rai-history input,.rai-history select{font:inherit;font-size:14px;color:var(--rh-fg);background:var(--rh-bg);border:1px solid var(--rh-line);border-radius:7px;min-height:40px;padding:8px 11px;box-sizing:border-box;max-width:100%}.rai-history button{cursor:pointer;white-space:nowrap}.rai-history button:hover:not(:disabled){background:var(--bg-3,var(--tp-surface-3,#232b3b))}.rai-history button:disabled{opacity:.5;cursor:not-allowed}.rai-history :focus-visible{outline:2px solid var(--accent,var(--tp-accent,#9abef7));outline-offset:3px}.rai-history label{display:grid;gap:6px;font-size:13px;font-weight:600;min-width:0}.rai-history input::placeholder{color:var(--rh-muted)}.rai-history-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 0 12px}.rai-history-filter-actions{display:flex;align-items:end;gap:8px}.rai-history-filter-actions button:first-child{font-weight:700}.rai-history-table-wrap{position:relative;overflow:auto;border-block:1px solid var(--rh-line);margin-top:22px}.rai-history table{width:100%;border-collapse:collapse;text-align:left;font-size:14px}.rai-history caption{text-align:left;padding:12px 0;font-weight:600}.rai-history th{font-size:12px;color:var(--rh-muted);font-weight:600}.rai-history th,.rai-history td{padding:13px 12px;border-bottom:1px solid var(--rh-line);vertical-align:middle}.rai-history td small{display:block;margin-top:4px}.rai-history-selected{background:var(--bg-2,var(--tp-surface-2,#202639))}.rai-history-state{display:inline-block;white-space:nowrap;font-size:12px;border:1px solid var(--rh-line);border-radius:5px;padding:3px 7px}.rai-history-state.is-confirmed{font-weight:700;color:var(--rh-fg)}.rai-history-pagination{display:flex;justify-content:flex-end;align-items:center;gap:14px;margin-top:16px;font-size:13px}.rai-history-empty{padding:28px 0}.rai-history-error{border:1px solid var(--rh-line);padding:12px}.rai-history-detail{margin-top:32px;padding-top:24px;border-top:1px solid var(--rh-line)}.rai-history-compare{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:26px;margin:24px 0 30px}.rai-history-compare>section{min-width:0}.rai-history-compare select{max-width:320px}.rai-history-message{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65;padding:16px 0;max-width:72ch;min-height:60px}.rai-history mark{color:inherit;background:var(--accent-soft,var(--tp-surface-3,#384665));text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:3px}.rai-history-timeline{padding:0;list-style:none;display:grid;gap:12px}.rai-history-timeline li{display:flex;gap:16px;justify-content:space-between;border-bottom:1px solid var(--rh-line);padding-bottom:12px;font-size:13px}.rai-history-timeline span{color:var(--rh-muted)}.rai-history-sr{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.rai-history ::selection{color:var(--rh-fg);background:var(--accent-soft,#354766)}.rai-history input{caret-color:var(--rh-fg)}
@media(max-width:760px){.rai-history-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.rai-history-compare{grid-template-columns:1fr;gap:18px}.rai-history th,.rai-history td{padding:10px 8px}.rai-history-table-wrap table{min-width:650px}.rai-history-timeline li{flex-direction:column;gap:3px}.rai-history-heading{gap:10px}.rai-history h2{font-size:23px}}

.rai-history-filters input,.rai-history-filters select{min-width:0;width:100%}.rai-history input[type="date"]{color-scheme:dark}
