body[data-page="history"] { background: #f4f4f4; }
body[data-page="history"] .app-shell { width: min(100%, 720px); min-height: 100vh; margin: 0 auto; background: #fff; }
body[data-page="history"] .history-page { min-height: calc(100vh - 94px); margin: 0; padding: 0 0 72px; background: #fff; }
body[data-page="history"] .history-title { display: grid; place-items: center; height: 44px; margin: 0; border-bottom: 1px solid #ebebeb; color: #333; background: #fff; font-size: 17px; font-weight: 700; }
body[data-page="history"] .history-filters { padding: 7px 8px 4px; background: #fff8d7; }
body[data-page="history"] .history-filter-row { display: flex; align-items: flex-start; gap: 6px; min-height: 29px; }
body[data-page="history"] .history-filter-row > strong { flex: 0 0 26px; padding-top: 4px; color: #c10f0f; font-size: 12px; line-height: 20px; }
body[data-page="history"] .history-filter-options { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 5px; min-width: 0; }
body[data-page="history"] .history-filter-options button { min-width: 27px; min-height: 25px; padding: 2px 3px; border: 0; border-radius: 0; color: #b41a18; background: transparent; font-size: 12px; line-height: 20px; cursor: pointer; }
body[data-page="history"] .history-filter-options button:hover,
body[data-page="history"] .history-filter-options button.is-selected:not(.filter-reset) { color: #fff; background: #c51b19; }
body[data-page="history"] .history-filter-options .filter-reset { color: #16883c; }
body[data-page="history"] .history-filter-options .filter-reset.is-selected { font-weight: 700; }
body[data-page="history"] .history-filter-options button:focus-visible,
body[data-page="history"] .history-years a:focus-visible { outline: 2px solid #27824a; outline-offset: 1px; }
body[data-page="history"] .history-years { display: flex; gap: 18px; align-items: center; min-height: 35px; padding: 0 11px; border-bottom: 1px solid #e9e9e9; background: #fff; }
body[data-page="history"] .history-years a { color: #555; font-size: 13px; text-decoration: none; }
body[data-page="history"] .history-years a.is-current { padding: 4px 10px; color: #fff; background: #4caf50; font-weight: 700; }
body[data-page="history"] .history-row { padding: 7px 8px 10px; border-bottom: 1px solid #e8e8e8; }
body[data-page="history"] .history-issue { min-height: 18px; margin-bottom: 5px; color: #666; font-size: 12px; font-weight: 700; line-height: 18px; }
body[data-page="history"] .history-numbers { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)) 14px minmax(0, 1fr); align-items: start; column-gap: 5px; }
body[data-page="history"] .history-cell { min-width: 0; text-align: center; transition: opacity .15s ease; }
body[data-page="history"] .history-cell.is-filter-dimmed { opacity: .25; }
body[data-page="history"] .history-number { display: grid; place-items: center; width: 100%; height: 28px; border-radius: 0; color: #fff; background: #f00; font-size: 16px; font-weight: 700; line-height: 1; }
body[data-page="history"] .history-number-blue { background: #00f; }
body[data-page="history"] .history-number-green { background: #008000; }
body[data-page="history"] .history-cell small { display: block; height: 17px; color: #666; font-size: 11px; line-height: 17px; }
body[data-page="history"] .history-special-label { display: grid; place-items: center; height: 38px; color: #c51b19; font-size: 12px; font-weight: 700; }
body[data-page="history"] .history-empty { padding: 28px 10px; color: #777; text-align: center; font-size: 13px; }
body[data-page="history"] .history-load-more { display: none; margin: 14px auto; }
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 0; color: #777; text-align: center; font-size: 12px; }
body[data-page="history"] .history-pagination { display: flex; justify-content: center; gap: 14px; padding: 12px; font-size: 13px; }
body[data-page="history"] [data-history-page].is-enhanced .history-pagination { display: none; }
body[data-page="history"] .history-back-to-top { position: fixed; right: max(12px, env(safe-area-inset-right)); bottom: 64px; z-index: 6; }
body[data-page="history"] .history-back-to-top[hidden] { display: none; }
@media (max-width: 480px) {
  body[data-page="history"] .history-numbers { column-gap: 3px; }
  body[data-page="history"] .history-number { height: 34px; font-size: 15px; }
  body[data-page="history"] .history-special-label { height: 34px; }
}
