h1.history-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 12px;
    height: auto;
    min-height: 35px;
    line-height: 35px;
}
h1.history-heading .history-years {
    display: flex;
    flex-wrap: wrap;
    gap: 0 10px;
    margin-left: auto;
    min-width: 0;
    float: none;
}
.history-years a { white-space: nowrap; }
.history-years a[aria-current="page"] {
    color: #fff;
    font-weight: bold;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.history-status { padding: 10px 3px; color: #666; font-size: 14px; }

.history-lotteries { display: flex; gap: 8px; margin: 12px 0; }
.history-lotteries a { flex: 1; padding: 10px 4px; border-radius: 4px; background: #eee; color: #333; text-align: center; font-size: 16px; text-decoration: none; }
.history-lotteries a[aria-current="page"] { background: #e71607; color: #fff; font-weight: bold; }
