body[data-page="history"] .history-condition-group { display: none; gap: 7px; }
body[data-page="history"] [data-history-trend="sx"] [data-history-condition-group="sx"],
body[data-page="history"] [data-history-trend="wx"] [data-history-condition-group="wx"],
body[data-page="history"] [data-history-trend="tail"] [data-history-condition-group="tail"] { display: contents; }
body[data-page="history"] .year-filter a { display: inline-flex; align-items: center; flex: 0 0 auto; min-height: 34px; padding: 0 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-size: 13px; font-weight: 800; }
body[data-page="history"] .year-filter a.active { border-color: var(--brand); background: var(--brand); color: #fff; }
body[data-page="history"] .log-body { position: relative; }
body[data-page="history"] .log-trend-canvas { position: absolute; inset: 0 auto auto 0; z-index: 3; pointer-events: none; }
body[data-page="history"] .history-load-more { display: none; }
body[data-page="history"] [data-history-page].is-enhanced .history-load-more { display: block; }
body[data-page="history"] .history-load-status { min-height: 1em; margin: 8px; text-align: center; color: var(--brand); font-size: 12px; }
body[data-page="history"] .history-pagination { display: flex; justify-content: center; gap: 12px; padding: 8px 8px 16px; font-size: 13px; }
body[data-page="history"] .history-pagination a { color: var(--brand); font-weight: 800; }
body[data-page="history"] [data-history-page].is-enhanced .history-pagination { display: none; }
body[data-page="history"] .back-top[hidden] { display: none; }
body[data-page="history"] .chip-row button.is-active { border-color: var(--brand); background: var(--brand); color: #fff; }
body[data-page="history"] [data-history-page].is-trend-active .log-ball-cell span:not(.is-trend-match) { opacity: .28; }
body[data-page="history"] .log-ball-cell span.is-trend-match { outline: 3px solid #ff6a1a; outline-offset: 2px; }
body[data-page="history"] .log-trend-canvas[hidden] { display: none; }
