.history-page{display:grid;gap:18px;min-width:0;color:#1e293b}
.history-page .page-title h1{font-size:26px;letter-spacing:-.04em}
.history-page .page-title>div>p:last-child{font-size:13px;color:#64748b;line-height:1.5}
.history-view-tabs{display:flex;gap:4px;width:max-content;border:1px solid #e2e8f0;border-radius:10px;padding:4px;background:#edf1f6}
.history-view-tabs button{min-height:36px;border:0;border-radius:7px;background:transparent;padding:8px 16px;color:#64748b;font-size:13px;font-weight:600;cursor:pointer}
.history-view-tabs button.active{background:#fff;color:#245ad1;box-shadow:0 1px 3px #17203314}
.history-controls{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}
.history-search{display:flex;flex:1;min-width:240px;height:42px;align-items:center;gap:9px;border:1px solid #dce3ed;border-radius:9px;background:#fff;padding:0 12px}
.history-search svg{width:17px;height:17px;flex:none;fill:none;stroke:#718096;stroke-width:1.8}
.history-search input{min-width:0;width:100%;height:100%;border:0;outline:0;background:transparent;color:#1e293b;font-size:13px;padding:0}
.history-search input::placeholder{color:#8491a5}
.history-filter-disclosure{display:contents}
.history-filter-disclosure>summary{display:none}
.history-filter-disclosure .history-filter-fields{display:flex;gap:10px}
.history-filter-fields label{display:grid;gap:5px;color:#64748b;font-size:11px;font-weight:600;min-width:0}
.history-filter-fields :is(input,select){width:auto;max-width:180px;min-width:0;height:42px;border:1px solid #dce3ed;border-radius:9px;background:#fff;padding:0 10px;color:#334155;font-family:inherit;font-size:12px;font-weight:400}
#history-reset{height:42px;border:0;background:transparent;padding:0 10px;color:#3563c4;font-size:12px;cursor:pointer}
.history-activity-card,.history-closed-card{min-width:0;border:1px solid #e2e8f0;border-radius:12px;background:#fff;overflow:hidden}
.history-closed-card{padding:20px}.history-closed-card h2{margin:0 0 18px;font-size:17px}.history-closed-card .table-wrap{overflow-x:auto}.history-closed-card .table{min-width:950px}.history-closed-card .table th{font-size:12px}.history-closed-card .table td{height:60px;font-size:13px}.history-closed-card .table small{font-size:11px}
.history-column-head,.history-event{display:grid;grid-template-columns:minmax(155px,1fr) minmax(190px,2fr) minmax(130px,1fr) 85px 52px;align-items:center;gap:16px;padding:16px 20px}
.history-column-head{background:#fff;color:#7b8799;font-size:10px;font-weight:650;text-transform:uppercase;letter-spacing:.06em}
.history-rows{list-style:none;margin:0;padding:0}
.history-day{display:flex;align-items:center;gap:10px;padding:10px 20px;background:#f7f9fc;border-block:1px solid #edf0f5;color:#475569;font-size:12px;font-weight:600}
.history-day small{color:#8491a5;font-size:11px;font-weight:400}
.history-event{min-height:78px;border-bottom:1px solid #f0f3f7;font-size:12px;line-height:1.5}
.history-event:last-child{border-bottom:0}.history-event:hover{background:#fafcff}
.history-event-kind{display:flex;align-items:center;gap:9px;min-width:0}
.history-event-symbol{display:grid;place-items:center;flex:none;width:28px;height:28px;border-radius:8px;background:#f1f5f9;color:#64748b;font-size:16px}
.history-badge{min-width:0;color:#526177;font-size:11px;font-weight:600;overflow-wrap:anywhere}
.history-event-description{display:grid;gap:3px;min-width:0}.history-event-description strong{color:#263449;font-size:12px;font-weight:500;overflow-wrap:anywhere}.history-event-description small{color:#8a96a7;font-size:11px}
.history-actor{color:#526177;overflow-wrap:anywhere}.history-event time{color:#64748b;font-size:11px;white-space:nowrap;font-variant-numeric:tabular-nums}
.history-view-detail{min-height:36px;border:0;background:transparent;padding:5px 0;color:#4167aa;font-size:12px;cursor:pointer}.history-view-detail span{padding-left:3px}
.history-event.blue .history-event-symbol{background:#eef4ff;color:#3f73d5}.history-event.blue .history-badge{color:#3769c2}
.history-event.green .history-event-symbol{background:#eaf8f1;color:#21855c}.history-event.green .history-badge{color:#21855c}
.history-event.red .history-event-symbol{background:#fff0f1;color:#c44857}.history-event.red .history-badge{color:#be4150}
.history-event.purple .history-event-symbol,.history-event.amber .history-event-symbol{background:#fff6e8;color:#b77b20}.history-event.purple .history-badge,.history-event.amber .history-badge{color:#9f6c20}
.history-empty{margin:0;padding:64px 24px;color:#64748b;font-size:13px;text-align:center}
.history-page :is(button,input,select,summary):focus-visible,.history-detail-dialog button:focus-visible{outline:2px solid #4274df;outline-offset:3px}
.history-detail-dialog{box-sizing:border-box;position:fixed;inset:0 0 0 auto;margin:0;width:min(480px,100vw);height:100dvh;max-height:100dvh;max-width:100vw;border:0;border-left:1px solid #e2e8f0;background:#fff;padding:28px;color:#1e293b;overflow:auto;box-shadow:-10px 0 50px #14233b1a}
.history-detail-dialog::backdrop{background:#17203355}
.history-detail-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.history-detail-heading p{color:#8491a5;font-size:10px;font-weight:650;letter-spacing:.1em;margin:0 0 8px}.history-detail-heading h2{font-size:23px;margin:0;line-height:1.3}
.history-detail-close{display:grid;place-items:center;width:36px;height:36px;flex:none;border:1px solid #e2e8f0;border-radius:9px;background:#fff;color:#64748b;font-size:24px;cursor:pointer}
.history-detail-description{font-size:13px;line-height:1.6;color:#64748b;margin:20px 0 28px}
.history-detail-meta{display:grid;gap:20px;margin:0;padding:24px 0;border-block:1px solid #edf0f5}.history-detail-meta div{display:grid;grid-template-columns:110px minmax(0,1fr);gap:12px}.history-detail-meta dt{font-size:12px;color:#8491a5}.history-detail-meta dd{margin:0;font-size:13px;overflow-wrap:anywhere}.history-detail-meta small{display:block;color:#8491a5;font-size:11px;margin-top:4px}
.history-changes{margin-top:28px}.history-changes h3{font-size:14px;margin:0 0 12px}.history-changes>p,.history-detail-note{color:#64748b;font-size:12px;line-height:1.6}.history-changes pre{font:12px/1.6 ui-monospace,monospace;white-space:pre-wrap;overflow-wrap:anywhere;background:#f7f9fc;border:1px solid #e9eef5;border-radius:10px;padding:16px}.history-change{padding:16px 0;border-bottom:1px solid #edf0f5;font-size:12px}.history-change>strong{display:block;margin-bottom:10px}.history-change>div{display:grid;grid-template-columns:55px minmax(0,1fr);gap:10px;margin-top:6px;overflow-wrap:anywhere}.history-change span{color:#8491a5}.history-change s{color:#97616a;text-decoration:none}.history-change b{color:#27825e;font-weight:500}
@media(min-width:761px){.history-filter-disclosure:not([open])>.history-filter-fields{display:flex}}
@media(max-width:1100px){.history-search{flex-basis:100%}.history-filter-fields{flex:1}.history-column-head,.history-event{grid-template-columns:minmax(135px,1fr) minmax(140px,1.6fr) minmax(100px,1fr) 75px 40px;gap:12px;padding-inline:16px}}
@media(max-width:760px){.history-page{gap:18px}.history-page .page-title h1{font-size:24px}.history-search{min-width:0;flex-basis:100%}.history-controls{gap:8px}.history-filter-disclosure{display:block;flex:1}.history-filter-disclosure>summary{display:block;width:max-content;list-style:none;border:1px solid #dce3ed;border-radius:9px;background:#fff;padding:11px 16px;font-size:12px;color:#475569;cursor:pointer}.history-filter-disclosure>summary::-webkit-details-marker{display:none}.history-filter-disclosure[open] .history-filter-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin-top:12px;gap:12px}.history-filter-disclosure:not([open]) .history-filter-fields{display:none}.history-filter-fields :is(input,select){width:100%;max-width:none;min-width:0}.history-controls:has(details[open]) #history-reset{align-self:flex-start}.history-column-head{display:none}.history-event{grid-template-columns:1fr auto;gap:8px 12px;padding:16px;min-height:0}.history-event-kind{grid-column:1;gap:8px}.history-event-symbol{width:26px;height:26px}.history-event-description{grid-column:1/-1;grid-row:2}.history-event-description strong{font-size:13px}.history-event time{grid-column:2;grid-row:1}.history-actor{grid-column:1;grid-row:3;font-size:11px}.history-view-detail{grid-column:2;grid-row:3;min-height:32px}.history-day{padding:10px 16px}.history-detail-dialog{padding:22px}.history-detail-meta div{grid-template-columns:95px minmax(0,1fr)}}
