.history-view { display: grid; gap: 16px; }
.history-view .panel { min-width: 0; }
.history-view a { color: #31543e; text-underline-offset: .18em; }
.history-filter .section-head a,.history-count { font-size: .84rem; }
.history-controls { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.history-controls label { display:flex; flex-direction:column; gap:5px; min-width:0; font-size:.78rem; font-weight:600; color:#516052; }
.history-controls input,.history-controls select { box-sizing:border-box; width:100%; min-width:0; min-height:38px; padding:7px 9px; border:1px solid #cbd4c9; border-radius:7px; background:#fff; color:#2e4333; font:450 .87rem system-ui,sans-serif; }
.history-totals { display:flex; flex-wrap:wrap; gap:16px 32px; }
.history-totals strong,.history-totals span { display:block; }
.history-totals strong { font-size:1.55rem; line-height:1.2; color:#294d38; }
.history-totals span,.history-count { color:#536653; }
.history-totals span,.history-summary p { font-size:.84rem; }
.history-summary p { margin: 14px 0 0; color:#4e6051; }
.history-month { margin:25px 0 0; }
.history-month h3 { padding:7px 12px; background:#f0f3ed; color:#35533c; border-radius:5px; font-size:.88rem; font-weight:650; }
.history-month h3::first-letter { text-transform: uppercase; }
.history-month ol { list-style:none; margin:0; padding:0; }
.history-entry { display:grid; grid-template-columns:80px minmax(0,1fr); gap:15px; padding:15px 6px; border-bottom:1px solid #e4e9e1; }
.history-entry:last-child { border-bottom:0; }
.history-when { display:flex; flex-direction:column; gap:3px; color:#48604c; font-size:.83rem; font-weight:600; }
.history-when span,.history-meta { color:#617164; font-size:.79rem; font-weight:400; }
.history-title,.history-meta { display:flex; align-items:baseline; flex-wrap:wrap; gap:5px 9px; }
.history-title > a { font-weight:660; }
.history-detail p { margin:5px 0; font-size:.87rem; line-height:1.45; color:#465649; }
.history-meta a { color:inherit; }
.history-group { margin-top:6px; color:#3e6047; font-size:.79rem; }
.history-group summary { cursor:pointer; }
.history-group > div { line-height:1.65; padding:4px 0; }
.history-pages { display:flex; justify-content:space-between; align-items:center; border-top:1px solid #dfe7dd; margin-top:10px; padding-top:14px; font-size:.86rem; }
@media(max-width:850px){.history-controls{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.history-entry{grid-template-columns:51px minmax(0,1fr);gap:8px;padding:13px 0}.history-search{grid-column:1/-1}.history-month{margin-top:16px}.history-controls{gap:9px}.history-filter .section-head{flex-wrap:wrap}.history-totals{gap:12px 18px}.history-title .badge{font-size:.68rem}}
