.history-page { max-width: 1120px; }
.history-page h1 { font-size: 30px; line-height: 1.2; }
.history-page h2 { font-size: 21px; }
.history-links { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin: 28px 0; }
.history-links article { border-top: 1px solid var(--border); padding-top: 18px; min-width: 0; }
.history-links h2 { font-size: 20px; }
.history-form { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; padding: 22px 0; border-block: 1px solid var(--border); }
.history-form label { display: grid; gap: 7px; min-width: 0; flex: 1 1 170px; }
.history-form input, .history-form select { width: 100%; min-height: 44px; padding: 10px; border: 1px solid var(--border); border-radius: 4px; background: var(--panel); color: var(--text); font-size: 16px; }
.history-form fieldset { border: 0; padding: 0; display: flex; gap: 18px; flex: 1 1 100%; }
.history-form fieldset label { display: flex; align-items: center; flex: 0 1 auto; min-height: 44px; }
.history-form input[type=checkbox] { width: 20px; height: 20px; min-height: 20px; }
.history-page button { min-height: 44px; padding: 10px 18px; cursor: pointer; }
.history-page button:focus-visible, .history-page circle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.history-result { padding-top: 20px; }
.history-answer { font-size: 21px; line-height: 1.45; max-width: 900px; }
.history-table { overflow-x: auto; max-width: 100%; margin: 16px 0; }
.history-table table { width: 100%; border-collapse: collapse; }
.history-result > .history-table table { min-width: 640px; }
.history-table th, .history-table td { text-align: left; padding: 12px; border-bottom: 1px solid var(--border); font-size: 14px; }
.history-table caption { text-align: left; padding-bottom: 12px; color: var(--muted); }
.history-chart { margin: 24px 0; }
.history-chart svg { display: block; width: 100%; aspect-ratio: 710/245; height: auto; }
.history-chart circle { cursor: crosshair; }
.history-detail { min-height: 3em; font-size: 14px; color: var(--muted); }
.history-observations summary { cursor: pointer; min-height: 44px; padding: 12px 0; }
.history-share { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 18px 0 30px; }
.history-sources { border-top: 1px solid var(--border); padding-top: 24px; }
.history-sources li { margin: 12px 0; overflow-wrap: anywhere; }
.history-error { color: var(--text); font-weight: 600; }
@media(max-width:600px) {
  .history-links { grid-template-columns: 1fr; }
  .history-page h1 { font-size: 26px; }
  .history-answer { font-size: 18px; }
  .history-form label { flex-basis: calc(50% - 16px); }
  .history-form label:first-child { flex-basis: 100%; }
  .history-table th, .history-table td { padding: 9px 8px; font-size: 13px; }
}
