/* Minute positions are event timestamps. Fixed-height cards are not durations. */
.history-planner {--planner-bg:#fbfcfa;--planner-surface:#f1f4f1;--planner-text:#29342f;--planner-muted:#58665e;--planner-line:#e6eae6;--planner-minor:#f0f3ef;--planner-selected:#f4f3fa;--planner-accent:#7862be;min-width:0;border:0;box-shadow:none;background:var(--planner-bg);color:var(--planner-text)}
html[data-theme="dark"] .history-planner {--planner-bg:#121715;--planner-surface:#1b2320;--planner-text:#eef3ee;--planner-muted:#b1bdb5;--planner-line:#26302b;--planner-minor:#1b231f;--planner-selected:#191e24;--planner-accent:#b7a0f0;box-shadow:none;background:var(--planner-bg);color:var(--planner-text)}
.history-planner .history-week-toolbar {gap:14px;flex-wrap:wrap;padding:18px 22px;background:var(--planner-bg);border:0}
.history-planner .history-week-toolbar>span {color:var(--planner-muted);font-size:12px}
.history-planner .history-calendar-navigation {gap:8px;flex:1}
.history-planner .history-calendar-navigation h2 {font-size:20px}
.history-planner .history-calendar-today,.history-planner .history-calendar-arrow {border:0;background:var(--planner-surface);color:var(--planner-text);min-height:44px}
.history-minute-scale {display:flex;align-items:center;gap:3px;padding:4px;border-radius:14px;background:var(--planner-surface)}
.history-minute-scale>span {padding:0 7px;color:var(--planner-muted);font-size:12px}
.history-minute-scale button {min-width:60px;min-height:38px;border:0;border-radius:10px;padding:7px 9px;background:transparent;color:var(--planner-muted);font:inherit;font-size:12px;font-weight:650;cursor:pointer}
.history-minute-scale button[aria-pressed="true"] {background:var(--planner-bg);color:var(--planner-text);box-shadow:0 2px 8px #0000000d}
.history-minute-scale button:focus-visible {outline:2px solid var(--focus);outline-offset:2px}
.history-planner .history-week-summary {grid-template-columns:minmax(220px,.85fr) minmax(360px,1.15fr);gap:20px;padding:20px 22px;background:var(--planner-bg);border:0}
.history-planner .history-week-summary-copy h2 {font-size:23px}
.history-planner .history-week-summary-copy p {max-width:490px;font-size:13px;line-height:1.55;color:var(--planner-muted)}
.history-planner .history-week-summary-copy .eyebrow {color:var(--planner-muted)}
.history-planner .history-week-totals>div,.history-planner .history-week-recipient {background:var(--planner-surface);box-shadow:none;color:var(--planner-text)}
.history-planner .history-week-finance {background:var(--planner-surface)!important}
.history-planner .history-week-totals span,.history-planner .history-week-totals small,.history-planner .history-week-recipient small,.history-planner .history-week-recipient span>span {color:var(--planner-muted);font-size:12px;line-height:1.5}
.history-planner .history-week-totals strong {font-size:25px}
.history-planner .history-week-recipients {display:flex;flex-wrap:wrap;gap:9px}
.history-planner .history-week-recipient {display:flex;align-items:center;gap:10px;flex:1 1 200px;padding:12px 14px;border:0;border-radius:16px}
.history-planner .history-week-recipient strong {font-size:14px}
.history-recipient-avatar,.history-person-avatar {display:inline-grid;place-items:center;flex:none;overflow:hidden;border-radius:50%;background:#d6e1d9;color:#30473c;font-size:12px;font-weight:750}
.history-recipient-avatar {width:42px;height:42px}
.history-person-avatar {width:22px;height:22px;font-size:12px}
.history-recipient-avatar img,.history-person-avatar img {width:100%;height:100%;object-fit:cover}
.history-week-materials {padding:0 22px 20px}
.history-materials-heading {display:flex;align-items:baseline;flex-wrap:wrap;gap:8px 16px;margin-bottom:12px}
.history-materials-heading strong {font-size:14px}
.history-materials-heading small {font-size:12px;color:var(--planner-muted)}
.history-material-summary-list {display:grid;grid-template-columns:repeat(auto-fit,minmax(205px,1fr));gap:10px 20px}
.history-material-summary {display:flex;align-items:center;gap:10px;min-width:0}
.history-material-summary>div {display:grid;gap:5px;min-width:0;flex:1}
.history-material-summary strong {overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:14px;font-weight:650}
.history-material-summary span {font-size:13px;line-height:1.4;color:var(--planner-muted)}
.history-material-summary i {height:4px;background:var(--planner-surface);border-radius:4px;overflow:hidden}
.history-material-summary i::after {display:block;content:"";width:var(--material-share);height:100%;border-radius:4px;background:var(--planner-accent);opacity:.7}
.history-material-thumb {display:inline-grid;place-items:center;flex:none;width:34px;height:34px;overflow:hidden;border-radius:9px;background:var(--planner-surface);color:var(--planner-muted)}
.history-material-thumb img {width:100%;height:100%;object-fit:cover}
.history-material-thumb svg {width:18px;height:18px}
.history-planner-legend {display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px;padding:14px 22px;border-top:1px solid var(--planner-minor);color:var(--planner-muted);font-size:12px}
.history-planner-legend>span {display:flex;align-items:center;gap:7px}
.history-planner-legend>span::before {content:none}
.history-planner-legend>small {margin-left:auto;font-size:13px}
.history-planner .history-week-scroll {max-height:760px;overflow:auto;overscroll-behavior:contain;border:0;border-radius:0;background:var(--planner-bg);scrollbar-width:thin;scrollbar-color:var(--planner-line) transparent}
.history-planner .history-minute-board {display:grid;grid-template-columns:var(--week-columns,64px repeat(7,minmax(206px,1fr)));grid-template-rows:64px var(--timeline-height);min-width:0;width:100%;gap:0;background:var(--planner-bg)}
.history-planner .history-week-corner,.history-planner .history-week-day-heading {position:sticky;top:0;z-index:4;min-height:64px;background:var(--planner-bg);border:0;border-bottom:1px solid var(--planner-line);color:var(--planner-text)}
.history-planner .history-week-corner {left:0;z-index:5;display:flex;flex-direction:column;justify-content:center;font-size:12px}
.history-planner .history-week-corner small {font-size:12px;color:var(--planner-muted);margin-top:4px}
.history-planner .history-week-day-heading {border-left:1px solid var(--planner-line)}
.history-planner .history-week-day-heading span,.history-planner .history-week-day-heading small {font-size:13px;color:var(--planner-muted)}
.history-planner .history-week-day-heading strong {font-size:19px}
.history-planner .history-week-day-heading.is-selected {background:var(--planner-selected);box-shadow:inset 0 -2px var(--planner-accent)}
.history-minute-axis {position:sticky;left:0;z-index:3;grid-column:1;grid-row:2;height:var(--timeline-height);background:var(--planner-bg)}
.history-minute-tick {position:absolute;right:10px;transform:translateY(3px);font-size:13px;line-height:1;color:var(--planner-muted);font-variant-numeric:tabular-nums}
.history-minute-tick.is-minor {font-size:12px}
.history-minute-day {position:relative;grid-row:2;min-width:0;height:var(--timeline-height);border-left:1px solid var(--planner-line);background:var(--planner-bg)}
.history-minute-day.is-selected {background:var(--planner-selected)}
.history-minute-line {position:absolute;left:0;right:0;height:1px;background:var(--planner-line);pointer-events:none}
.history-minute-line.is-minor {background:var(--planner-minor)}
.history-planner .history-week-event {position:absolute;top:var(--event-top);left:calc(100% * var(--event-lane) / var(--event-lanes) + 5px);width:calc(100% / var(--event-lanes) - 10px);height:var(--event-height);min-height:0;display:flex;flex-direction:column;gap:4px;padding:8px 9px;border:0;border-radius:11px;box-shadow:none;color:var(--planner-text);overflow:hidden}
.history-planner .history-week-event.is-reversed {box-shadow:none}
.history-planner .history-week-event:hover {transform:none;box-shadow:0 4px 12px #1018231a;filter:brightness(.97)}
.history-planner .history-week-event:focus-visible {outline:2px solid var(--planner-accent);outline-offset:0;z-index:2}
.history-planner .history-week-event-top {width:100%;flex:none}
.history-planner .history-week-event time {font-size:14px;line-height:18px}
.history-planner .history-week-event-kind {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--planner-muted);font-size:12px;line-height:18px;letter-spacing:0;text-transform:none;font-weight:500}
.history-planner .history-week-event-person {display:flex;width:100%;flex:none;gap:6px;font-size:13px;line-height:24px;color:var(--planner-muted)}
.history-planner .history-week-event-person>span:last-child {min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.history-planner .history-week-event-product {width:100%;flex:none;font-size:14px;line-height:19px}
.history-planner .history-week-event-bottom {width:100%;margin-top:auto;gap:4px;font-size:12px;line-height:17px;color:var(--planner-muted)}
.history-material-stack {display:flex;align-items:center;min-width:0;padding-left:3px}
.history-material-stack .history-material-thumb,.history-material-more {width:25px;height:25px;margin-left:-3px;border-radius:7px;border:1px solid var(--planner-bg);background:var(--planner-surface)}
.history-material-stack .history-material-thumb svg {width:14px;height:14px}
.history-material-more {display:grid;place-items:center;font-size:12px;font-weight:700;color:var(--planner-muted)}
.history-week-event-value {display:grid;gap:1px;text-align:right;white-space:nowrap;min-width:0}
.history-overview-avatar,.history-overview-people {display:none}
.history-planner[data-scale="60"] .history-overview-people {display:flex;align-items:center;flex:none;padding-left:4px}
.history-overview-people .history-person-avatar {margin-left:-4px;border:1px solid var(--planner-bg)}
.history-overview-people>small {font-size:12px;color:var(--planner-muted)}
.history-event-moments {font-size:12px;white-space:nowrap;margin-right:auto;color:var(--planner-muted)}
.history-planner[data-scale="60"] .history-week-event-person {display:flex}
.history-planner[data-scale="60"] .history-detail-avatar {display:none}
.history-planner[data-scale="60"] .history-overview-avatar {display:inline-grid}
.history-planner .history-week-event.is-colliding {padding:8px 9px;gap:4px}
.history-planner .history-week-event.is-colliding .history-week-event-kind {display:none}
.history-planner .history-week-event.is-colliding .history-week-event-value {font-size:12px}
.history-planner .history-week-event.is-colliding .history-week-event-cost {font-size:12px}
.history-planner .history-week-event.is-colliding .history-person-avatar {width:20px;height:20px}
.history-planner .history-week-event.is-colliding .history-material-stack {display:flex}
.history-planner .history-week-event.is-colliding .history-material-stack .history-material-thumb {width:20px;height:20px}
html[data-theme="dark"] .history-planner .history-week-event {color:var(--planner-text)}
.history-planner .history-week-event-cost {color:var(--planner-text);font-size:13px;font-weight:750}
.history-planner .history-week-event-cost.is-unpriced {color:var(--planner-muted);font-weight:500}
.history-planner .history-week-agenda {padding:24px 22px;background:var(--planner-bg);border:0}
.history-group-agenda {display:grid;gap:22px;list-style:none;margin:0;padding:0}
.history-agenda-group {min-width:0;scroll-margin-top:110px;padding:4px;border-radius:17px}
.history-agenda-group>header {display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;min-height:44px;padding:4px 10px 10px;color:var(--planner-muted);font-size:12px}
.history-agenda-group>header time {font-size:16px;font-weight:700;font-variant-numeric:tabular-nums;color:var(--planner-text)}
.history-agenda-group>header strong {font-size:13px;color:var(--planner-text)}
.history-agenda-group>header .history-week-event-cost {margin-left:auto}
.history-agenda-group.is-focused {box-shadow:inset 0 0 0 2px var(--planner-accent)}
.history-agenda-group>header:focus {outline:none}
.history-agenda-group .history-list {margin:0}
.history-planner .history-calendar-agenda .history-list .movement {background:var(--planner-surface)}

/* Recipient colors remain consistent between the month, timeline, and legend. */
:is(.history-calendar,.history-planner) {--history-card-bg:#e9edef;--history-card-gradient:linear-gradient(125deg,#eeebf3,#e3eef0);--history-card-text:#2d3143;--history-card-muted:#53596c;--history-person-swatch:#74838f}
:is(.history-calendar,.history-planner) [data-recipient-tone="0"] {--history-card-bg:#eeebf5;--history-card-gradient:linear-gradient(125deg,#eeebf5,#e3edf5);--history-person-swatch:#795abb}
:is(.history-calendar,.history-planner) [data-recipient-tone="1"] {--history-card-bg:#e5edf7;--history-card-gradient:linear-gradient(125deg,#e5edf7,#e1f0f3);--history-person-swatch:#447fb8}
:is(.history-calendar,.history-planner) [data-recipient-tone="2"] {--history-card-bg:#f6eaf0;--history-card-gradient:linear-gradient(125deg,#f6eaf0,#eee9f5);--history-person-swatch:#b45580}
:is(.history-calendar,.history-planner) [data-recipient-tone="3"] {--history-card-bg:#e4f0eb;--history-card-gradient:linear-gradient(125deg,#e4f0eb,#e4eff2);--history-person-swatch:#398e77}
:is(.history-calendar,.history-planner) [data-recipient-tone="4"] {--history-card-bg:#f4efe2;--history-card-gradient:linear-gradient(125deg,#f4efe2,#f3e8ef);--history-person-swatch:#9c7330}
:is(.history-calendar,.history-planner) [data-recipient-tone="5"] {--history-card-bg:#e8ecf7;--history-card-gradient:linear-gradient(125deg,#e8ecf7,#ece8f4);--history-person-swatch:#6374b7}
:is(.history-calendar,.history-planner) [data-recipient-tone="mixed"] {--history-card-bg:#e9edef;--history-card-gradient:linear-gradient(125deg,#eeebf3,#e3eef0);--history-person-swatch:#74838f}
html[data-theme="dark"] :is(.history-calendar,.history-planner) {--history-card-bg:#2b343c;--history-card-gradient:linear-gradient(125deg,#32303d,#26383e);--history-card-text:#f5f6ff;--history-card-muted:#d4d9e3;--history-person-swatch:#a3b1bf}
html[data-theme="dark"] :is(.history-calendar,.history-planner) [data-recipient-tone="0"] {--history-card-bg:#302d3f;--history-card-gradient:linear-gradient(125deg,#302d3f,#253440);--history-person-swatch:#b69ae8}
html[data-theme="dark"] :is(.history-calendar,.history-planner) [data-recipient-tone="1"] {--history-card-bg:#283746;--history-card-gradient:linear-gradient(125deg,#283746,#243e42);--history-person-swatch:#86b9e9}
html[data-theme="dark"] :is(.history-calendar,.history-planner) [data-recipient-tone="2"] {--history-card-bg:#3d2f3b;--history-card-gradient:linear-gradient(125deg,#3d2f3b,#332f43);--history-person-swatch:#e3a0be}
html[data-theme="dark"] :is(.history-calendar,.history-planner) [data-recipient-tone="3"] {--history-card-bg:#283c35;--history-card-gradient:linear-gradient(125deg,#283c35,#273a42);--history-person-swatch:#85c6b0}
html[data-theme="dark"] :is(.history-calendar,.history-planner) [data-recipient-tone="4"] {--history-card-bg:#3d362c;--history-card-gradient:linear-gradient(125deg,#3d362c,#3c303a);--history-person-swatch:#dabb83}
html[data-theme="dark"] :is(.history-calendar,.history-planner) [data-recipient-tone="5"] {--history-card-bg:#2d3446;--history-card-gradient:linear-gradient(125deg,#2d3446,#342f43);--history-person-swatch:#a3b1e6}
html[data-theme="dark"] :is(.history-calendar,.history-planner) [data-recipient-tone="mixed"] {--history-card-bg:#2b343c;--history-card-gradient:linear-gradient(125deg,#32303d,#26383e);--history-person-swatch:#a3b1bf}
html[data-theme] :is(.history-calendar,.history-planner) :is(.history-calendar-event,.history-week-event)[data-recipient-tone] {background:var(--history-card-bg);background-image:var(--history-card-gradient);color:var(--history-card-text);border:0;box-shadow:none}
html[data-theme] :is(.history-calendar,.history-planner) :is(.history-calendar-event,.history-week-event)[data-recipient-tone]:hover {filter:brightness(.97);box-shadow:0 4px 12px #1018231a}
html[data-theme="dark"] :is(.history-calendar,.history-planner) :is(.history-calendar-event,.history-week-event)[data-recipient-tone]:hover {filter:brightness(1.1);box-shadow:0 4px 14px #0002}
html[data-theme] .history-calendar .history-calendar-event>small,
html[data-theme] .history-planner .history-week-event :is(.history-week-event-kind,.history-week-event-person,.history-week-event-bottom,.history-event-moments,.history-overview-people>small,.history-material-more,.history-week-event-cost.is-unpriced) {color:var(--history-card-muted)}
html[data-theme] .history-calendar .history-calendar-event>small em,
html[data-theme] .history-planner .history-week-event .history-week-event-cost {color:var(--history-card-text)}
.history-planner .history-week-event-person>span:last-child {font-weight:550}
.history-planner .history-week-event-product {font-weight:650}
.history-planner .history-week-event .history-week-event-top time {font-weight:650;letter-spacing:.02em}
.history-planner .history-week-event .history-material-more {background:var(--history-card-bg)}
.history-calendar .history-calendar-event {border:0;border-radius:9px}
.history-calendar .history-calendar-event>span {font-size:14px;font-weight:600;line-height:20px}
.history-calendar .history-calendar-event time {font-size:13px;font-weight:650;line-height:20px}
.history-calendar .history-calendar-event>small {font-size:13px;line-height:20px}
.history-calendar .history-calendar-more {border:0;background:transparent;color:#61537f;font-size:13px;line-height:20px}
html[data-theme="dark"] .history-calendar .history-calendar-more {color:#c5b5e1}
.history-calendar {border:0;box-shadow:none}
.history-calendar .history-calendar-toolbar {border:0;background:#fbfcfa}
.history-calendar .history-calendar-sidebar {border-color:#e6eae6;background:#f1f3f5}
.history-calendar .history-calendar-weekdays {border-color:#e6eae6;color:#637169;font-size:12px;letter-spacing:.08em}
.history-calendar .history-calendar-day {border-color:#e6eae6;background:#fbfcfa}
.history-calendar .history-calendar-day.is-outside {background:#f5f7f4}
.history-calendar .history-calendar-day.is-selected {background:#f1eef8;box-shadow:none}
.history-calendar .history-calendar-day.is-today:not(.is-selected) {background:#edf4f7}
.history-calendar .history-calendar-day-select>span {font-size:13px;font-weight:600}
.history-calendar .history-calendar-day-select>small {font-size:12px;font-weight:600}
html[data-theme="dark"] .history-calendar {box-shadow:none}
html[data-theme="dark"] .history-calendar .history-calendar-toolbar {background:#121715}
html[data-theme="dark"] .history-calendar .history-calendar-sidebar {border-color:#26302b;background:#181e23}
html[data-theme="dark"] .history-calendar .history-calendar-weekdays {border-color:#26302b;color:#b1bdb5}
html[data-theme="dark"] .history-calendar .history-calendar-day {border-color:#26302b;background:#121715}
html[data-theme="dark"] .history-calendar .history-calendar-day.is-outside {background:#101411}
html[data-theme="dark"] .history-calendar .history-calendar-day.is-selected {background:#231f2d;box-shadow:none}
html[data-theme="dark"] .history-calendar .history-calendar-day.is-today:not(.is-selected) {background:#19262b}
.history-calendar .history-calendar-sidebar>dl>div::before {background:#94a39a}
html[data-theme="dark"] .history-calendar .history-calendar-sidebar>dl>div::before {background:#a3b1bf}
.history-person-legend {display:flex;align-items:center;flex-wrap:wrap;gap:10px 19px;padding:13px 22px;color:#58665e;font-size:12px;line-height:1.4}
.history-person-legend>:is(strong,small) {font-size:13px;font-weight:550}
.history-person-key {display:inline-flex;align-items:center;gap:7px;min-width:0}
.history-person-key>i {flex:none;width:9px;height:9px;border:0;border-radius:50%;background:var(--history-person-swatch)}
html[data-theme="dark"] .history-person-legend {color:#c2cbc5}

@media(max-width:1050px) {
  .history-planner .history-week-summary {grid-template-columns:minmax(0,1fr)}
  .history-planner .history-week-toolbar {padding:15px}
  .history-planner .history-calendar-navigation h2 {font-size:18px}
}
@media(max-width:900px) {
  .history-planner .history-minute-board {grid-template-columns:64px minmax(var(--selected-day-width),1fr)}
  .history-minute-day:not(.is-selected),.history-planner .history-week-day-heading:not(.is-selected) {display:none}
  .history-planner .history-week-day-tabs {display:grid;background:var(--planner-bg);border:0}
  .history-planner .history-week-day-tabs button span {font-size:12px}
  .history-planner .history-week-day-tabs button strong {font-size:13px}
  .history-planner .history-week-scroll {max-height:650px}
}
@media(max-width:640px) {
  .history-planner .history-week-toolbar {flex-direction:row;align-items:center;gap:10px}
  .history-planner .history-week-toolbar .history-calendar-navigation {flex:1 0 100%}
  .history-planner .history-week-toolbar>span {margin-left:auto;padding:0}
  .history-planner .history-week-toolbar .history-calendar-navigation h2 {font-size:16px}
  .history-planner .history-week-summary {padding:16px 13px;gap:14px}
  .history-planner .history-week-summary-copy h2 {font-size:21px}
  .history-planner .history-week-totals>div {padding:12px}
  .history-planner .history-week-totals strong {font-size:24px}
  .history-planner .history-week-recipient {flex-basis:100%}
  .history-week-materials {padding:0 13px 16px}
  .history-material-summary-list {display:flex;overflow-x:auto;gap:18px;padding-bottom:8px;scrollbar-width:thin}
  .history-material-summary {flex:0 0 235px}
  .history-planner-legend {padding:12px 13px;gap:10px 14px;font-size:13px}
  .history-planner-legend>small {margin-left:0;font-size:13px;line-height:1.5}
  .history-minute-scale button {min-height:44px;min-width:54px;padding:6px;font-size:13px}
  .history-minute-scale>span {padding:0 4px;font-size:13px}
  .history-planner .history-week-agenda {padding:20px 10px}
  .history-person-legend {gap:9px 14px;padding:12px 13px;font-size:13px}
  .history-calendar .history-calendar-day-select>span {font-size:13px}
  .history-calendar .history-calendar-day-select>small {font-size:12px}
}
@media(max-width:600px) {
  html[data-theme] .history-calendar:not([data-month-detail="true"]) .history-calendar-event[data-recipient-tone] {background:var(--history-person-swatch)}
}
@media(forced-colors:active) {
  html[data-theme] :is(.history-calendar,.history-planner) :is(.history-calendar-event,.history-week-event)[data-recipient-tone] {border:1px solid ButtonText;background:ButtonFace;color:ButtonText}
  .history-minute-line {background:CanvasText}
  .history-minute-scale button[aria-pressed="true"],.history-agenda-group.is-focused {outline:2px solid Highlight}
  .history-person-key>i {border:1px solid CanvasText;background:Canvas}
}

/* Inspect calendar records without moving the page or its timeline. */
html.history-details-open {overflow:hidden;scrollbar-gutter:stable}
.history-details-dialog {width:calc(100% - 32px);max-width:900px;max-height:calc(100dvh - 48px);padding:0;border:0;border-radius:28px;overflow:hidden;background:#fbfcfa;color:var(--ink);box-shadow:0 24px 90px #111a2438;backdrop-filter:none}
.history-details-dialog[open] {display:flex;flex-direction:column}
.history-details-dialog::backdrop {background:#10151480;backdrop-filter:blur(5px)}
.history-details-heading {display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex:none;padding:24px 26px 18px}
.history-details-heading>div {min-width:0}
.history-details-heading .eyebrow {font-size:12px}
.history-details-heading h2 {margin:6px 0;font-size:27px;line-height:1.2}
.history-details-heading p {font-size:14px;line-height:1.5;color:#606c65}
.history-details-heading .icon-button {flex:none;width:44px;height:44px;min-width:44px;border:0;background:#edf1ed;color:inherit}
.history-details-content {min-height:0;min-width:0;overflow:auto;overscroll-behavior:contain;padding:0 26px 8px;scrollbar-width:thin;scrollbar-color:#a5b0a8 transparent}
.history-details-groups,.history-details-group>.history-list {list-style:none;margin:0;padding:0}
.history-details-groups {display:grid;gap:20px}
.history-details-group {min-width:0}
.history-details-group>header {display:flex;align-items:baseline;flex-wrap:wrap;gap:8px 12px;padding:0 4px 10px;font-size:14px}
.history-details-group>header time {font-size:17px;font-weight:700;font-variant-numeric:tabular-nums}
.history-details-group>header strong {font-size:14px;font-weight:600}
.history-details-group>header .history-week-event-cost {margin-left:auto;color:#33584a;font-size:15px}
.history-details-group>header .history-week-event-cost.is-unpriced {color:var(--muted);font-size:13px}
.history-details-content .movement {border:0;background:#f0f3ef;box-shadow:none;padding:20px;border-radius:20px;gap:14px;margin-bottom:10px}
.history-details-content .movement h3 {font-size:19px;line-height:1.3;overflow-wrap:anywhere}
.history-details-content .movement small,.history-details-content .movement time,.history-details-content .movement-note {font-size:13px;line-height:1.5}
.history-details-content .movement-number {font-size:26px}
.history-details-content .movement .text-button {font-size:13px;min-height:36px}
.history-details-content .reversal-form {grid-column:1/-1}
.history-details-content .reversal-form small {display:block;margin-top:10px}
.history-details-footer {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;flex:none;padding:16px 26px 20px;background:inherit}
.history-details-footer .button {min-height:44px;font-size:14px}
.history-details-empty {display:grid;justify-items:center;gap:10px;padding:35px 12px 45px;text-align:center}
.history-details-empty>svg {width:36px;height:36px;color:var(--muted)}
.history-details-empty h3 {font-size:21px}
.history-details-empty p {font-size:14px;color:var(--muted)}
html[data-theme="dark"] .history-details-dialog {background:#151a17;color:#f0f3ee;box-shadow:0 24px 90px #0008}
html[data-theme="dark"] .history-details-heading p {color:#b6c0b9}
html[data-theme="dark"] .history-details-heading .icon-button {background:#242c27}
html[data-theme="dark"] .history-details-content .movement {background:#1f2722;border:0;box-shadow:none}
html[data-theme="dark"] .history-details-group>header .history-week-event-cost {color:#bfdbcb}
html[data-theme="dark"] .history-details-group>header .history-week-event-cost.is-unpriced {color:#b6c0b9}
@media(max-width:600px) {
  .history-details-dialog {width:calc(100% - 16px);max-height:calc(100dvh - 20px);border-radius:22px}
  .history-details-heading {padding:18px 16px 14px;gap:10px}
  .history-details-heading h2 {font-size:23px}
  .history-details-heading p {font-size:13px}
  .history-details-content {padding:0 12px 6px}
  .history-details-content .movement {grid-template-columns:minmax(0,1fr) auto;padding:16px 12px;gap:10px}
  .history-details-content .movement-icon {display:none}
  .history-details-content .movement h3 {font-size:17px}
  .history-details-content .movement-number {font-size:22px}
  .history-details-group>header {gap:6px 10px}
  .history-details-footer {padding:12px 14px 16px}
  .history-details-footer .button {flex:1 1 140px}
}
@media(forced-colors:active) {
  .history-details-dialog,.history-details-heading .icon-button {border:1px solid CanvasText}
}
