/* Full-screen daily AIR history; kept separate from per-region map history.       */
body.alert-history-timeline-open {
    overflow: hidden;
}

.header-link--button {
    padding: 0;
    border: 0;
    font: inherit;
    background: none;
    cursor: pointer;
}

.menu .links .header-link--button {
    text-align: left;
}

.alertHistoryTimeline {
    --history-bg: #171b21;
    --history-surface: #20252c;
    --history-surface-strong: #292f37;
    --history-line: #363d47;
    --history-grid: rgb(255 255 255 / 7%);
    --history-grid-strong: rgb(255 255 255 / 13%);
    --history-text: #f4f6f8;
    --history-muted: #aeb6c1;
    --history-red: #ed6256;
    --history-yellow: #f4be34;
    --history-focus: #78a2ed;
    --history-mobile-label-bg: rgb(32 37 44 / 92%);
    --history-label-width: 284px;
    --history-row-height: 32px;
    --history-state-row-height: 38px;
    --history-segment-inset: 7px;
    position: fixed;
    inset: 0;
    box-sizing: border-box;
    width: 100vw;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    color: var(--history-text);
    color-scheme: dark;
    background: var(--history-bg);
    border: 0;
    font-family: inherit;
}

.alertHistoryTimeline[open] {
    display: block;
}

.alertHistoryTimeline::backdrop {
    background: rgb(7 10 15 / 78%);
}

.alertHistoryTimeline__shell {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    width: 100%;
    height: 100%;
    min-height: 0;
}

.alertHistoryTimeline__territoryFilter[hidden],
.alertHistoryTimeline__territoryToggle[hidden],
.alertHistoryTimeline__territorySelections[hidden],
.alertHistoryTimeline__territoryResults[hidden],
.alertHistoryTimeline__territoryField button[hidden],
.alertHistoryTimeline__territoryScope button[hidden] {
    display: none !important;
}

.alertHistoryTimeline__territoryFilter {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 35;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    width: min(560px, calc(100vw - 36px));
    padding: 14px;
    background: var(--history-surface);
    border: 1px solid var(--history-line);
    border-radius: 10px;
    box-shadow: 0 18px 44px rgb(0 0 0 / 38%);
}

.alertHistoryTimeline__territoryFilterHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.alertHistoryTimeline__territoryFilterHeader > strong {
    font-size: 13px;
    font-weight: 600;
}

.alertHistoryTimeline__territoryFilterHeader > button {
    display: grid;
    flex: 0 0 32px;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    color: var(--history-muted);
    background: transparent;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
}

.alertHistoryTimeline__territoryFilterHeader > button:hover,
.alertHistoryTimeline__territoryFilterHeader > button:focus-visible {
    color: var(--history-text);
    background: var(--history-grid-strong);
}

.alertHistoryTimeline__territoryFilterHeader > button span,
.alertHistoryTimeline__territoryFilterHeader > button span::after {
    display: block;
    width: 14px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transform: rotate(45deg);
    content: "";
}

.alertHistoryTimeline__territoryFilterHeader > button span::after {
    transform: rotate(90deg);
}

.alertHistoryTimeline__territorySearch {
    position: relative;
    min-width: 0;
}

.alertHistoryTimeline__territorySearch > label,
.alertHistoryTimeline__territoryScope > span {
    display: block;
    margin-bottom: 5px;
    color: var(--history-muted);
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
}

.alertHistoryTimeline__territoryField {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
}

.alertHistoryTimeline__territoryField > i {
    position: absolute;
    left: 14px;
    width: 11px;
    height: 11px;
    pointer-events: none;
    border: 1.8px solid var(--history-muted);
    border-radius: 50%;
}

.alertHistoryTimeline__territoryField > i::after {
    position: absolute;
    right: -5px;
    bottom: -3px;
    width: 6px;
    height: 1.8px;
    background: var(--history-muted);
    border-radius: 2px;
    transform: rotate(45deg);
    content: "";
}

.alertHistoryTimeline__territoryField input {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    height: 42px;
    padding: 0 44px 0 39px;
    color: var(--history-text);
    background: var(--history-surface-strong);
    border: 1px solid var(--history-line);
    border-radius: 8px;
    outline: 0;
    font: inherit;
    font-size: 13px;
    line-height: 1;
}

.alertHistoryTimeline__territoryField input::placeholder {
    color: var(--history-muted);
    opacity: .82;
}

.alertHistoryTimeline__territoryField input::-webkit-search-cancel-button {
    display: none;
}

.alertHistoryTimeline__territoryField input:focus {
    border-color: var(--history-focus);
    box-shadow: 0 0 0 3px rgb(120 162 237 / 22%);
}

.alertHistoryTimeline__territoryField button {
    position: absolute;
    right: 5px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    color: var(--history-muted);
    background: transparent;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
}

.alertHistoryTimeline__territoryField button:hover,
.alertHistoryTimeline__territoryField button:focus-visible {
    color: var(--history-text);
    background: var(--history-grid-strong);
}

.alertHistoryTimeline__territoryField button span,
.alertHistoryTimeline__territoryField button span::after {
    display: block;
    width: 14px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transform: rotate(45deg);
    content: "";
}

.alertHistoryTimeline__territoryField button span::after {
    transform: rotate(90deg);
}

.alertHistoryTimeline__territoryResults {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    z-index: 12;
    max-height: min(360px, 52vh);
    padding: 6px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--history-surface);
    border: 1px solid var(--history-line);
    border-radius: 9px;
    box-shadow: 0 18px 42px rgb(0 0 0 / 32%);
}

.alertHistoryTimeline__territoryResults button {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px 14px;
    width: 100%;
    min-height: 48px;
    padding: 8px 10px;
    color: var(--history-text);
    text-align: left;
    background: transparent;
    border: 0;
    border-radius: 6px;
    font: inherit;
    cursor: pointer;
}

.alertHistoryTimeline__territoryResults button:hover,
.alertHistoryTimeline__territoryResults button.is-active,
.alertHistoryTimeline__territoryResults button[aria-selected="true"] {
    background: var(--history-surface-strong);
}

.alertHistoryTimeline__territoryResults button.is-selected {
    box-shadow: inset 3px 0 0 var(--history-red);
}

.alertHistoryTimeline__territoryResults strong,
.alertHistoryTimeline__territoryResults small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.alertHistoryTimeline__territoryResults strong {
    font-size: 13px;
    font-weight: 600;
}

.alertHistoryTimeline__territoryResults small {
    color: var(--history-muted);
    font-size: 10px;
}

.alertHistoryTimeline__territoryResults p {
    margin: 0;
    padding: 12px 10px;
    color: var(--history-muted);
    font-size: 12px;
    line-height: 1.4;
}

.alertHistoryTimeline__territoryScope {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    min-height: 24px;
    padding: 0 2px;
}

.alertHistoryTimeline__territoryScope strong {
    display: inline;
    color: var(--history-text);
    font-size: 13px;
    font-weight: 600;
}

.alertHistoryTimeline__territoryScope button {
    margin-left: auto;
    padding: 5px 8px;
    color: var(--history-focus);
    background: transparent;
    border: 0;
    border-radius: 5px;
    font: inherit;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

.alertHistoryTimeline__territoryScope button:hover,
.alertHistoryTimeline__territoryScope button:focus-visible {
    color: var(--history-text);
    background: var(--history-grid-strong);
}

.alertHistoryTimeline__tabs {
    position: relative;
    z-index: 7;
    display: flex;
    gap: 4px;
    min-height: 48px;
    padding: 0 max(18px, env(safe-area-inset-right)) 0 max(18px, env(safe-area-inset-left));
    background: var(--history-surface);
    border-bottom: 1px solid var(--history-line);
}

.alertHistoryTimeline__tabs button {
    position: relative;
    flex: 0 0 auto;
    min-width: 0;
    padding: 0 16px;
    color: var(--history-muted);
    background: transparent;
    border: 0;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.alertHistoryTimeline__tabs button::after {
    position: absolute;
    right: 14px;
    bottom: -1px;
    left: 14px;
    height: 3px;
    background: transparent;
    border-radius: 3px 3px 0 0;
    content: "";
}

.alertHistoryTimeline__tabs button[aria-selected="true"] {
    color: var(--history-text);
}

.alertHistoryTimeline__tabs button[aria-selected="true"]::after {
    background: var(--history-red);
}

.alertHistoryTimeline__header {
    position: relative;
    z-index: 20;
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto auto 44px;
    align-items: center;
    gap: 22px;
    min-height: 82px;
    padding: max(14px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) 14px max(18px, env(safe-area-inset-left));
    background: var(--history-surface);
    border-bottom: 1px solid var(--history-line);
    box-shadow: 0 8px 28px rgb(0 0 0 / 18%);
}

.alertHistoryTimeline__territorySelections {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding-top: 2px;
}

.alertHistoryTimeline__territorySelections > span {
    color: var(--history-muted);
    font-size: 10px;
    font-weight: 600;
}

.alertHistoryTimeline__territorySelections > div {
    display: flex;
    gap: 6px;
    min-width: 0;
    padding: 1px 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
}

.alertHistoryTimeline__territorySelections > div::-webkit-scrollbar {
    display: none;
}

.alertHistoryTimeline__territoryChip {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    max-width: min(260px, 42vw);
    height: 30px;
    padding: 0 9px 0 11px;
    color: var(--history-text);
    background: var(--history-surface-strong);
    border: 1px solid var(--history-line);
    border-radius: 15px;
    font: inherit;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

.alertHistoryTimeline__territoryChip:hover,
.alertHistoryTimeline__territoryChip:focus-visible {
    border-color: var(--history-red);
}

.alertHistoryTimeline__territoryChip > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.alertHistoryTimeline__territoryChip > i,
.alertHistoryTimeline__territoryChip > i::after {
    display: block;
    flex: 0 0 auto;
    width: 10px;
    height: 1.5px;
    background: var(--history-muted);
    border-radius: 2px;
    transform: rotate(45deg);
    content: "";
}

.alertHistoryTimeline__territoryChip > i::after {
    transform: rotate(90deg);
}

.alertHistoryTimeline__territorySelections > button {
    height: 30px;
    padding: 0 8px;
    color: var(--history-focus);
    background: transparent;
    border: 0;
    border-radius: 6px;
    font: inherit;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.alertHistoryTimeline__territorySelections > button:hover,
.alertHistoryTimeline__territorySelections > button:focus-visible {
    color: var(--history-text);
    background: var(--history-grid-strong);
}

.alertHistoryTimeline__heading h2,
.alertHistoryTimeline__heading p {
    margin: 0;
}

.alertHistoryTimeline__heading h2 {
    font-size: clamp(19px, 1.7vw, 26px);
    font-weight: 500;
    line-height: 1.2;
}

.alertHistoryTimeline__heading p {
    margin-top: 5px;
    color: var(--history-muted);
    font-size: 12px;
    line-height: 1.4;
}

.alertHistoryTimeline__dateControls {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 6px;
}

.alertHistoryTimeline__territoryToggle {
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    overflow: hidden;
    color: var(--history-muted);
    background: var(--history-surface-strong);
    border: 1px solid var(--history-line);
    border-radius: 7px;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    touch-action: manipulation;
}

.alertHistoryTimeline__territoryToggle > span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.alertHistoryTimeline__territoryToggle > i {
    position: relative;
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
    border: 1.8px solid currentColor;
    border-radius: 50%;
}

.alertHistoryTimeline__territoryToggle > i::after {
    position: absolute;
    right: -5px;
    bottom: -3px;
    width: 6px;
    height: 1.8px;
    background: currentColor;
    border-radius: 2px;
    transform: rotate(45deg);
    content: "";
}

.alertHistoryTimeline__territoryToggle:hover,
.alertHistoryTimeline__territoryToggle:focus-visible,
.alertHistoryTimeline__territoryToggle[aria-expanded="true"] {
    color: var(--history-text);
    border-color: var(--history-focus);
}

.alertHistoryTimeline__territoryToggle:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 3px rgb(120 162 237 / 22%);
}

.alertHistoryTimeline__territoryToggle.is-active {
    color: var(--history-text);
    border-color: var(--history-red);
}

.alertHistoryTimeline__territoryToggle.is-active::after {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 6px;
    height: 6px;
    background: var(--history-red);
    border: 1px solid var(--history-surface-strong);
    border-radius: 50%;
    content: "";
}

.alertHistoryTimeline__dateStep,
.alertHistoryTimeline__close {
    box-sizing: border-box;
    display: grid;
    place-items: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    color: var(--history-muted);
    background: var(--history-surface-strong);
    border: 1px solid var(--history-line);
    border-radius: 7px;
    cursor: pointer;
    touch-action: manipulation;
}

.alertHistoryTimeline__dateStep span {
    margin-top: -3px;
    font-size: 29px;
    font-weight: 300;
    line-height: 1;
}

.alertHistoryTimeline__dateStep:disabled {
    opacity: .32;
    cursor: default;
}

.alertHistoryTimeline__datePicker {
    position: relative;
    min-width: 158px;
}

.alertHistoryTimeline__dateField {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 22px;
    grid-template-rows: 12px 20px;
    align-content: center;
    width: 100%;
    min-width: inherit;
    height: 44px;
    padding: 0 12px;
    color: var(--history-text);
    text-align: left;
    background: var(--history-surface-strong);
    border: 1px solid var(--history-line);
    border-radius: 7px;
    font: inherit;
    cursor: pointer;
    touch-action: manipulation;
}

.alertHistoryTimeline__dateCaption {
    grid-column: 1;
    grid-row: 1;
    color: var(--history-muted);
    font-size: 9px;
    line-height: 1;
}

.alertHistoryTimeline__dateValue {
    grid-column: 1;
    grid-row: 2;
    align-self: end;
    color: var(--history-text);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
}

.alertHistoryTimeline__calendarIcon {
    position: relative;
    grid-column: 2;
    grid-row: 1 / 3;
    place-self: center end;
    width: 13px;
    height: 12px;
    border: 1.5px solid currentColor;
    border-radius: 2px;
    color: var(--history-muted);
}

.alertHistoryTimeline__calendarIcon::before {
    position: absolute;
    top: 2px;
    right: -1.5px;
    left: -1.5px;
    height: 1.5px;
    background: currentColor;
    content: "";
}

.alertHistoryTimeline__calendarIcon::after {
    position: absolute;
    top: -3px;
    left: 2px;
    width: 5px;
    height: 3px;
    border-right: 1.5px solid currentColor;
    border-left: 1.5px solid currentColor;
    content: "";
}

.alertHistoryTimeline__calendar {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    z-index: 30;
    box-sizing: border-box;
    width: 304px;
    padding: 12px;
    background: var(--history-surface);
    border: 1px solid var(--history-line);
    border-radius: 9px;
    box-shadow: 0 18px 44px rgb(0 0 0 / 38%);
    transform: translateX(-50%);
}

.alertHistoryTimeline__calendar[hidden] {
    display: none;
}

.alertHistoryTimeline__calendarHeader {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

.alertHistoryTimeline__calendarHeader strong {
    overflow: hidden;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.alertHistoryTimeline__calendarHeader button {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    color: var(--history-muted);
    background: transparent;
    border: 1px solid var(--history-line);
    border-radius: 6px;
    cursor: pointer;
}

.alertHistoryTimeline__calendarHeader button span {
    margin-top: -2px;
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
}

.alertHistoryTimeline__calendarHeader button:disabled {
    opacity: .3;
    cursor: default;
}

.alertHistoryTimeline__weekdays,
.alertHistoryTimeline__calendarGrid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
}

.alertHistoryTimeline__weekdays {
    margin-bottom: 4px;
    color: var(--history-muted);
    font-size: 10px;
    text-align: center;
}

.alertHistoryTimeline__weekdays span {
    padding: 4px 0;
}

.alertHistoryTimeline__calendarDay,
.alertHistoryTimeline__calendarEmpty {
    box-sizing: border-box;
    min-width: 0;
    height: 36px;
}

.alertHistoryTimeline__calendarDay {
    display: grid;
    place-items: center;
    padding: 0;
    color: var(--history-text);
    background: transparent;
    border: 0;
    border-radius: 6px;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
    touch-action: manipulation;
}

.alertHistoryTimeline__calendarDay:hover:not(:disabled),
.alertHistoryTimeline__calendarDay:focus-visible {
    background: var(--history-surface-strong);
}

.alertHistoryTimeline__calendarDay.is-today:not(.is-selected) {
    box-shadow: 0 0 0 1px var(--history-red) inset;
}

.alertHistoryTimeline__calendarDay.is-selected {
    color: #fff;
    background: var(--history-red);
    font-weight: 700;
}

.alertHistoryTimeline__calendarDay:disabled {
    color: var(--history-muted);
    opacity: .28;
    cursor: default;
}

.alertHistoryTimeline__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    color: var(--history-muted);
    font-size: 12px;
}

.alertHistoryTimeline__legend span {
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.alertHistoryTimeline__legend i {
    width: 14px;
    height: 14px;
    border-radius: 3px;
}

.alertHistoryTimeline__legend .is-red {
    background: var(--history-red);
}

.alertHistoryTimeline__legend .is-yellow {
    background: var(--history-yellow);
}

.alertHistoryTimeline__close span,
.alertHistoryTimeline__close span::after {
    display: block;
    width: 19px;
    height: 1.5px;
    background: currentColor;
    content: "";
    transform: rotate(45deg);
}

.alertHistoryTimeline__close span::after {
    transform: rotate(90deg);
}

.alertHistoryTimeline :is(button, input):focus-visible {
    outline: 2px solid var(--history-focus);
    outline-offset: 2px;
}

.alertHistoryTimeline__content {
    position: relative;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-color: #68717d var(--history-surface);
}

.alertHistoryTimeline__targetView[hidden],
.alertHistoryTimeline__targetView [hidden],
.alertHistoryTimeline__overviewView[hidden],
.alertHistoryTimeline__overviewView [hidden],
.alertHistoryTimeline__legend[hidden],
[data-history-alert-view][hidden] {
    display: none !important;
}

.alertHistoryTimeline__targetView {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
    align-items: start;
    gap: 18px;
    width: 100%;
    min-height: 100%;
    padding: 20px;
}

.alertHistoryTimeline__overviewView {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 18px;
    width: 100%;
    padding: 20px;
}

.alertHistoryTimeline__targetCard,
.alertHistoryTimeline__overviewCard {
    box-sizing: border-box;
    min-width: 0;
    padding: clamp(18px, 2vw, 28px);
    background: var(--history-surface);
    border: 1px solid var(--history-line);
    border-radius: 12px;
}

.alertHistoryTimeline__overviewPair {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 18px;
    min-width: 0;
}

.alertHistoryTimeline__overviewCard--wide {
    grid-column: 1 / -1;
}

.alertHistoryTimeline__overviewMetrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.alertHistoryTimeline__overviewMetrics > div,
.alertHistoryTimeline__comparison > div,
.alertHistoryTimeline__extremes section {
    box-sizing: border-box;
    min-width: 0;
    padding: 16px;
    background: var(--history-surface-strong);
    border: 1px solid var(--history-line);
    border-radius: 9px;
}

.alertHistoryTimeline__overviewMetrics span,
.alertHistoryTimeline__overviewMetrics strong,
.alertHistoryTimeline__overviewMetrics small,
.alertHistoryTimeline__comparison span,
.alertHistoryTimeline__comparison strong,
.alertHistoryTimeline__comparison small,
.alertHistoryTimeline__extremes span,
.alertHistoryTimeline__extremes strong,
.alertHistoryTimeline__extremes small {
    display: block;
}

.alertHistoryTimeline__overviewMetrics span,
.alertHistoryTimeline__comparison span,
.alertHistoryTimeline__extremes span {
    color: var(--history-muted);
    font-size: 11px;
    line-height: 1.35;
}

.alertHistoryTimeline__overviewMetrics strong,
.alertHistoryTimeline__comparison strong,
.alertHistoryTimeline__extremes strong {
    margin-top: 9px;
    color: var(--history-text);
    font-size: clamp(20px, 2vw, 28px);
    font-weight: 600;
    line-height: 1.15;
}

.alertHistoryTimeline__overviewMetrics small,
.alertHistoryTimeline__comparison small,
.alertHistoryTimeline__extremes small {
    margin-top: 7px;
    overflow: hidden;
    color: var(--history-muted);
    font-size: 10px;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.alertHistoryTimeline__overviewLineChart {
    --overview-y-axis-width: 30px;
    --overview-y-axis-gap: 9px;
    position: relative;
    margin-top: 24px;
}

.alertHistoryTimeline__overviewPlot {
    display: grid;
    grid-template-columns: var(--overview-y-axis-width) minmax(0, 1fr);
    gap: var(--overview-y-axis-gap);
}

.alertHistoryTimeline__overviewLineChart svg {
    display: block;
    width: 100%;
    height: 250px;
    overflow: visible;
}

.alertHistoryTimeline__overviewGrid line {
    stroke: var(--history-grid);
    stroke-width: 1;
}

.alertHistoryTimeline__overviewYAxis {
    position: relative;
    height: 250px;
    color: var(--history-muted);
    font-size: 10px;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.alertHistoryTimeline__overviewYAxis span {
    position: absolute;
    right: 0;
    transform: translateY(-50%);
}

.alertHistoryTimeline__overviewArea {
    fill: rgb(237 98 86 / 13%);
}

.alertHistoryTimeline__overviewLine {
    fill: none;
    stroke: var(--history-red);
    stroke-linejoin: round;
    stroke-width: 4;
}

.alertHistoryTimeline__overviewScale {
    display: flex;
    justify-content: space-between;
    margin: 5px 0 0 calc(var(--overview-y-axis-width) + var(--overview-y-axis-gap));
    color: var(--history-muted);
    font-size: 9px;
}

.alertHistoryTimeline__overviewMaximum {
    position: absolute;
    top: 7px;
    right: 7px;
    padding: 5px 7px;
    color: var(--history-muted);
    background: var(--history-surface-strong);
    border: 1px solid var(--history-line);
    border-radius: 5px;
    font-size: 10px;
    font-weight: 600;
}

.alertHistoryTimeline__overviewBars {
    --overview-y-axis-width: 30px;
    --overview-y-axis-gap: 9px;
    margin-top: 24px;
}

.alertHistoryTimeline__overviewBarsPlot {
    display: grid;
    grid-template-columns: var(--overview-y-axis-width) minmax(0, 1fr);
    gap: var(--overview-y-axis-gap);
}

.alertHistoryTimeline__overviewBarsCanvas {
    position: relative;
    height: 250px;
}

.alertHistoryTimeline__overviewBarsGrid,
.alertHistoryTimeline__overviewBarsColumns {
    position: absolute;
    inset: 10% 0;
}

.alertHistoryTimeline__overviewBarsGrid {
    pointer-events: none;
}

.alertHistoryTimeline__overviewBarsGrid span {
    position: absolute;
    right: 0;
    left: 0;
    height: 1px;
    background: var(--history-grid);
    transform: translateY(-50%);
}

.alertHistoryTimeline__overviewBarsColumns {
    display: grid;
    grid-template-columns: repeat(24, minmax(0, 1fr));
    align-items: end;
    gap: clamp(2px, .45vw, 7px);
}

.alertHistoryTimeline__overviewBarsColumns > div {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 100%;
}

.alertHistoryTimeline__overviewBarsColumns i {
    display: block;
    width: min(22px, 76%);
    min-height: 0;
    background: var(--history-red);
    border-radius: 4px 4px 1px 1px;
}

.alertHistoryTimeline__overviewBarsColumns > div > span {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    color: var(--history-muted);
    font-size: 9px;
    transform: translateX(-50%);
}

.alertHistoryTimeline__extremes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.alertHistoryTimeline__comparison {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 24px;
}

.alertHistoryTimeline__comparison small[data-direction="up"] {
    color: #ef8379;
}

.alertHistoryTimeline__comparison small[data-direction="down"] {
    color: #6eb997;
}

.alertHistoryTimeline__districtShares {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 30px;
    margin-top: 24px;
}

.alertHistoryTimeline__districtShares > div > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 7px;
}

.alertHistoryTimeline__districtShares strong {
    overflow: hidden;
    color: var(--history-text);
    font-size: 12px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.alertHistoryTimeline__districtShares span {
    flex: 0 0 auto;
    color: var(--history-muted);
    font-size: 10px;
}

.alertHistoryTimeline__districtShares i {
    display: block;
    height: 6px;
    overflow: hidden;
    background: var(--history-surface-strong);
    border-radius: 99px;
}

.alertHistoryTimeline__districtShares b {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--history-yellow), var(--history-red));
    border-radius: inherit;
}

.alertHistoryTimeline__periodSwitch {
    display: flex;
    flex: 0 0 auto;
    gap: 5px;
    padding: 3px;
    background: var(--history-surface-strong);
    border: 1px solid var(--history-line);
    border-radius: 8px;
}

.alertHistoryTimeline__periodSwitch button {
    min-height: 32px;
    padding: 5px 10px;
    color: var(--history-muted);
    background: transparent;
    border: 0;
    border-radius: 5px;
    font: inherit;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

.alertHistoryTimeline__periodSwitch button[aria-pressed="true"] {
    color: #fff;
    background: var(--history-red);
}

.alertHistoryTimeline__trend {
    margin-top: 24px;
}

.alertHistoryTimeline__trendScroll {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
}

.alertHistoryTimeline__trendContent {
    --trend-label-width: 144px;
    --trend-plot-min: 388px;
    box-sizing: border-box;
    width: 100%;
    min-width: calc(var(--trend-label-width) + var(--trend-plot-min));
}

.alertHistoryTimeline__trendContent.is-dense {
    --trend-plot-min: 1740px;
}

.alertHistoryTimeline__trendDates,
.alertHistoryTimeline__trendSeries {
    display: grid;
    grid-template-columns: var(--trend-label-width) minmax(var(--trend-plot-min), 1fr);
    min-width: 0;
}

.alertHistoryTimeline__trendDates {
    align-items: end;
    margin-bottom: 9px;
}

.alertHistoryTimeline__trendDates > strong,
.alertHistoryTimeline__trendSeriesMeta {
    position: sticky;
    left: 0;
    z-index: 3;
    box-sizing: border-box;
    color: var(--history-muted);
    background: var(--history-surface);
}

.alertHistoryTimeline__trendDates > strong {
    display: flex;
    align-items: end;
    min-height: 22px;
    padding: 0 12px 5px 0;
    font-size: 10px;
    font-weight: 600;
}

.alertHistoryTimeline__trendDateScale,
.alertHistoryTimeline__trendPoints {
    display: grid;
    grid-template-columns: repeat(var(--trend-days), minmax(0, 1fr));
}

.alertHistoryTimeline__trendDateScale > span {
    padding-bottom: 6px;
    color: var(--history-text);
    border-bottom: 1px solid var(--history-grid);
    font-size: 10px;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    text-align: center;
}

.alertHistoryTimeline__trendSeries + .alertHistoryTimeline__trendSeries {
    margin-top: 14px;
}

.alertHistoryTimeline__trendSeriesMeta {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 120px;
    padding-right: 12px;
}

.alertHistoryTimeline__trendSeriesMeta > strong {
    color: var(--history-text);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.alertHistoryTimeline__trendYAxis {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: space-between;
    margin-top: 12px;
    padding: 0 0 7px;
    color: var(--history-text);
    font-size: 10px;
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    line-height: 1;
    text-align: right;
}

.alertHistoryTimeline__trendCanvas {
    position: relative;
    min-width: 0;
    height: 120px;
    color: var(--history-red);
}

.alertHistoryTimeline__trendSeries[data-metric="averageDurationSeconds"] .alertHistoryTimeline__trendCanvas {
    color: var(--history-yellow);
}

.alertHistoryTimeline__trendCanvas svg {
    display: block;
    width: 100%;
    height: 120px;
    overflow: visible;
}

.alertHistoryTimeline__trendGrid line {
    vector-effect: non-scaling-stroke;
    stroke: var(--history-grid);
    stroke-width: 1;
}

.alertHistoryTimeline__trendArea {
    fill: currentColor;
    opacity: .1;
}

.alertHistoryTimeline__trendLine {
    fill: none;
    vector-effect: non-scaling-stroke;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.5;
}

.alertHistoryTimeline__trendPoints {
    position: absolute;
    inset: 0;
}

.alertHistoryTimeline__trendPoints > div {
    position: relative;
    min-width: 0;
}

.alertHistoryTimeline__trendPoints > div > span {
    position: absolute;
    left: 50%;
    display: block;
    width: 9px;
    height: 9px;
    color: inherit;
    transform: translate(-50%, -50%);
}

.alertHistoryTimeline__trendPoints i {
    position: absolute;
    inset: 0;
    display: block;
    box-sizing: border-box;
    background: var(--history-surface);
    border: 2.5px solid currentColor;
    border-radius: 50%;
}

.alertHistoryTimeline__trendPoints b {
    position: absolute;
    bottom: 9px;
    left: 50%;
    max-width: 72px;
    overflow: hidden;
    color: var(--history-text);
    font-size: 9px;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
    transform: translateX(-50%);
}

.alertHistoryTimeline__cardHeader {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.alertHistoryTimeline__cardHeader h3,
.alertHistoryTimeline__cardHeader p,
.alertHistoryTimeline__densityMaximum {
    margin: 0;
}

.alertHistoryTimeline__cardHeader h3 {
    color: var(--history-text);
    font-size: clamp(20px, 2vw, 27px);
    font-weight: 600;
    line-height: 1.2;
}

.alertHistoryTimeline__cardHeader p {
    max-width: 620px;
    margin-top: 8px;
    color: var(--history-muted);
    font-size: 13px;
    line-height: 1.5;
}

@media (min-width: 993px) {
    .alertHistoryTimeline__overviewPair {
        align-items: stretch;
    }

    .alertHistoryTimeline__overviewPair > .alertHistoryTimeline__overviewCard {
        height: 100%;
    }

    .alertHistoryTimeline__overviewCard--trend {
        display: flex;
        flex-direction: column;
        padding: 18px 22px;
    }

    .alertHistoryTimeline__overviewCard--trend .alertHistoryTimeline__trend {
        margin-top: 10px;
    }

    .alertHistoryTimeline__overviewCard--trend .alertHistoryTimeline__trendContent {
        --trend-label-width: 156px;
    }

    .alertHistoryTimeline__overviewCard--trend .alertHistoryTimeline__trendDates {
        margin-bottom: 3px;
    }

    .alertHistoryTimeline__overviewCard--trend .alertHistoryTimeline__trendDates > strong {
        min-height: 16px;
        padding: 0 8px 2px 0;
        font-size: 9px;
    }

    .alertHistoryTimeline__overviewCard--trend .alertHistoryTimeline__trendDateScale > span {
        padding-bottom: 3px;
        font-size: 8px;
    }

    .alertHistoryTimeline__overviewCard--trend .alertHistoryTimeline__trendSeries + .alertHistoryTimeline__trendSeries {
        margin-top: 4px;
    }

    .alertHistoryTimeline__overviewCard--trend .alertHistoryTimeline__trendSeriesMeta,
    .alertHistoryTimeline__overviewCard--trend .alertHistoryTimeline__trendCanvas,
    .alertHistoryTimeline__overviewCard--trend .alertHistoryTimeline__trendCanvas svg {
        height: 72px;
    }

    .alertHistoryTimeline__overviewCard--trend .alertHistoryTimeline__trendSeriesMeta {
        padding-right: 8px;
    }

    .alertHistoryTimeline__overviewCard--trend .alertHistoryTimeline__trendSeriesMeta > strong {
        font-size: 9px;
        line-height: 1.2;
    }

    .alertHistoryTimeline__overviewCard--trend .alertHistoryTimeline__trendYAxis {
        margin-top: 3px;
        padding-bottom: 3px;
        font-size: 8px;
    }

    .alertHistoryTimeline__overviewCard--trend .alertHistoryTimeline__trendPoints > div > span {
        width: 9px;
        height: 9px;
    }

    .alertHistoryTimeline__overviewCard--trend .alertHistoryTimeline__trendPoints b {
        bottom: 9px;
        font-size: 9px;
    }
}

.alertHistoryTimeline__targetTotal {
    flex: 0 0 auto;
    min-width: 76px;
    text-align: right;
}

.alertHistoryTimeline__targetTotal strong,
.alertHistoryTimeline__targetTotal span {
    display: block;
}

.alertHistoryTimeline__targetTotal strong {
    color: var(--history-text);
    font-size: 30px;
    font-weight: 600;
    line-height: 1;
}

.alertHistoryTimeline__targetTotal span {
    margin-top: 6px;
    color: var(--history-muted);
    font-size: 10px;
    white-space: nowrap;
}

.alertHistoryTimeline__targetFilters {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 22px;
}

.alertHistoryTimeline__targetFilters button {
    --target-filter-color: var(--history-focus);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 6px 11px;
    color: var(--history-muted);
    background: transparent;
    border: 1px solid var(--history-line);
    border-radius: 18px;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
}

.alertHistoryTimeline__targetFilters button::before {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    background: var(--target-filter-color);
    border-radius: 50%;
    content: "";
}

.alertHistoryTimeline__targetFilters button[data-target-hour-filter="all"]::before,
.alertHistoryTimeline__targetFilters button[data-target-route-filter="all"]::before {
    background: conic-gradient(#f0a44a 0 16.67%, #d67b3f 16.67% 33.33%, #ed6256 33.33% 50%,
        #f4be34 50% 66.67%, #b978cf 66.67% 83.33%, #8c96a5 83.33%);
}

.alertHistoryTimeline__targetFilters--route {
    margin-top: 18px;
}

.alertHistoryTimeline__targetFilters button:hover {
    color: var(--history-text);
    background: rgb(120 162 237 / 7%);
}

.alertHistoryTimeline__targetFilters button[aria-pressed="true"] {
    color: var(--history-text);
    background: var(--history-surface-strong);
    border-color: var(--target-filter-color);
    box-shadow: 0 0 0 1px var(--target-filter-color) inset;
}

.alertHistoryTimeline__chart {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 9px;
    height: clamp(290px, 48vh, 500px);
    margin-top: 24px;
    padding-bottom: 26px;
}

.alertHistoryTimeline__chartYAxis,
.alertHistoryTimeline__chartPlot {
    position: relative;
    min-height: 0;
}

.alertHistoryTimeline__chartYAxis span {
    position: absolute;
    right: 0;
    color: var(--history-muted);
    font-size: 10px;
    line-height: 1;
    transform: translateY(-50%);
}

.alertHistoryTimeline__chartYAxis span:last-child {
    transform: translateY(-100%);
}

.alertHistoryTimeline__chartGrid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to bottom,
        var(--history-line) 0,
        var(--history-line) 1px,
        transparent 1px,
        transparent calc(50% - 1px),
        var(--history-line) calc(50% - 1px),
        var(--history-line) 50%,
        transparent 50%,
        transparent calc(100% - 1px),
        var(--history-line) calc(100% - 1px),
        var(--history-line) 100%);
    pointer-events: none;
}

.alertHistoryTimeline__chartEmpty {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    box-sizing: border-box;
    width: min(390px, calc(100% - 28px));
    padding: 20px 22px;
    text-align: center;
    background: var(--history-surface-strong);
    border: 1px solid var(--history-line);
    border-radius: 10px;
    box-shadow: 0 12px 34px rgb(0 0 0 / 14%);
    transform: translate(-50%, -50%);
}

.alertHistoryTimeline__chartEmpty::before {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin: 0 auto 11px;
    color: var(--history-muted);
    background: var(--history-surface);
    border: 1px solid var(--history-line);
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    content: "–";
}

.alertHistoryTimeline__chartEmpty strong,
.alertHistoryTimeline__chartEmpty span {
    display: block;
}

.alertHistoryTimeline__chartEmpty strong {
    color: var(--history-text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.alertHistoryTimeline__chartEmpty span {
    margin-top: 6px;
    color: var(--history-muted);
    font-size: 12px;
    line-height: 1.4;
}

.alertHistoryTimeline__chartBars {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(24, minmax(0, 1fr));
    align-items: stretch;
    gap: clamp(2px, .45vw, 7px);
}

.alertHistoryTimeline__chartColumn {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-width: 0;
    padding: 0;
    color: var(--history-muted);
    background: transparent;
    border: 0;
    cursor: pointer;
}

.alertHistoryTimeline__chartColumn:disabled {
    cursor: default;
}

.alertHistoryTimeline__chartColumn::before {
    position: absolute;
    inset: 0 -1px;
    background: transparent;
    border-radius: 5px;
    content: "";
}

.alertHistoryTimeline__chartColumn:hover::before,
.alertHistoryTimeline__chartColumn:focus-visible::before {
    background: rgb(120 162 237 / 8%);
}

.alertHistoryTimeline__chartStack {
    z-index: 1;
    display: flex;
    flex-direction: column-reverse;
    width: min(22px, 74%);
    min-height: 2px;
    overflow: hidden;
    border-radius: 4px 4px 2px 2px;
    box-shadow: 0 0 0 1px rgb(255 255 255 / 8%) inset;
}

.alertHistoryTimeline__chartStack:empty {
    opacity: .2;
    background: var(--history-line);
}

.alertHistoryTimeline__chartStack i {
    display: block;
    min-height: 2px;
}

.alertHistoryTimeline__chartHour {
    position: absolute;
    top: calc(100% + 9px);
    left: 50%;
    font-size: 9px;
    line-height: 1;
    transform: translateX(-50%);
}

.alertHistoryTimeline__targetLegend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 15px;
    min-height: 20px;
    margin-top: 16px;
    color: var(--history-muted);
    font-size: 11px;
}

.alertHistoryTimeline__targetLegend > span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.alertHistoryTimeline__targetLegend i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.alertHistoryTimeline__targetCard--map {
    align-self: start;
}

.alertHistoryTimeline__routeMap {
    position: relative;
    width: 100%;
    aspect-ratio: 260 / 175;
    margin-top: 28px;
    overflow: hidden;
    background: rgb(255 255 255 / 1.5%);
    border: 1px solid var(--history-line);
    border-radius: 9px;
}

.alertHistoryTimeline__routeBase,
.alertHistoryTimeline__routeOverlay {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.alertHistoryTimeline__routeOverlay {
    z-index: 2;
}

.alertHistoryTimeline__routeBase--light {
    display: none;
}

.alertHistoryTimeline__routeEmpty {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    padding: 24px;
    color: var(--history-muted);
    text-align: center;
    font-size: 12px;
}

.alertHistoryTimeline__densityLegend {
    display: grid;
    grid-template-columns: auto minmax(100px, 220px) auto;
    align-items: center;
    gap: 11px;
    margin-top: 20px;
    color: var(--history-muted);
    font-size: 11px;
}

.alertHistoryTimeline__densityLegend i {
    height: 9px;
    background: linear-gradient(90deg, #274fc7, #4f75e8 28%, #f0a43c 58%, #e54b3f);
    border-radius: 99px;
}

.alertHistoryTimeline__densityMaximum {
    margin-top: 12px;
    color: var(--history-muted);
    font-size: 12px;
}

.alertHistoryTimeline__targetCard--heat,
.alertHistoryTimeline__targetCard--regions {
    grid-column: 1 / -1;
}

.alertHistoryTimeline__distribution {
    display: grid;
    grid-template-columns: minmax(140px, 178px) minmax(250px, 390px);
    align-items: center;
    gap: clamp(24px, 4vw, 54px);
    justify-content: start;
    max-width: 660px;
    margin-top: 26px;
}

.alertHistoryTimeline__donut {
    position: relative;
    display: grid;
    place-items: center;
    width: min(100%, 178px);
    aspect-ratio: 1;
    margin: auto;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgb(255 255 255 / 7%) inset;
}

.alertHistoryTimeline__donut::after {
    position: absolute;
    inset: 25%;
    background: var(--history-surface);
    border: 1px solid var(--history-line);
    border-radius: 50%;
    content: "";
}

.alertHistoryTimeline__donut > span {
    z-index: 1;
    color: var(--history-muted);
    text-align: center;
    font-size: 10px;
}

.alertHistoryTimeline__donut strong {
    display: block;
    color: var(--history-text);
    font-size: 25px;
    font-weight: 600;
}

.alertHistoryTimeline__distributionLegend {
    display: grid;
    align-content: center;
    gap: 9px;
    width: fit-content;
    max-width: 100%;
}

.alertHistoryTimeline__distributionLegend > div {
    display: grid;
    grid-template-columns: 9px minmax(0, max-content) max-content;
    align-items: center;
    justify-content: start;
    gap: 9px;
    color: var(--history-muted);
    font-size: 12px;
}

.alertHistoryTimeline__distributionLegend i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.alertHistoryTimeline__distributionLegend strong {
    color: var(--history-text);
    font-size: 12px;
    font-weight: 600;
}

.alertHistoryTimeline__metricGroups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 26px;
}

.alertHistoryTimeline__metricGroups section {
    min-width: 0;
    padding: 15px;
    background: var(--history-surface-strong);
    border: 1px solid var(--history-line);
    border-radius: 9px;
}

.alertHistoryTimeline__metricGroups h4 {
    min-height: 34px;
    margin: 0 0 12px;
    color: var(--history-text);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

.alertHistoryTimeline__metricGroups dl,
.alertHistoryTimeline__metricGroups dt,
.alertHistoryTimeline__metricGroups dd {
    margin: 0;
}

.alertHistoryTimeline__metricGroups dl {
    display: grid;
    gap: 9px;
}

.alertHistoryTimeline__metricGroups dl > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-top: 9px;
    border-top: 1px solid var(--history-line);
}

.alertHistoryTimeline__metricGroups dt {
    color: var(--history-muted);
    font-size: 11px;
}

.alertHistoryTimeline__metricGroups dd {
    color: var(--history-text);
    text-align: right;
    font-size: 13px;
    font-weight: 600;
}

.alertHistoryTimeline__heatScroll {
    margin-top: 24px;
    padding-bottom: 6px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-color: #68717d var(--history-surface);
}

.alertHistoryTimeline__heatGrid {
    display: grid;
    grid-template-columns: 154px repeat(24, minmax(28px, 1fr));
    gap: 4px;
    min-width: 900px;
}

.alertHistoryTimeline__heatCorner,
.alertHistoryTimeline__heatHour,
.alertHistoryTimeline__heatLabel,
.alertHistoryTimeline__heatCell {
    min-height: 28px;
}

.alertHistoryTimeline__heatHour,
.alertHistoryTimeline__heatLabel,
.alertHistoryTimeline__heatCell {
    display: grid;
    place-items: center;
}

.alertHistoryTimeline__heatHour {
    color: var(--history-muted);
    font-size: 9px;
}

.alertHistoryTimeline__heatLabel {
    position: sticky;
    left: 0;
    z-index: 2;
    justify-items: start;
    padding: 0 9px;
    overflow: hidden;
    color: var(--history-muted);
    background: var(--history-surface);
    font-size: 11px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.alertHistoryTimeline__heatCell {
    color: #fff;
    background: var(--history-surface-strong);
    border: 1px solid var(--history-line);
    border-radius: 4px;
    font-size: 9px;
    font-weight: 600;
}

.alertHistoryTimeline__regionActivity {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 32px;
    margin-top: 24px;
}

.alertHistoryTimeline__regionActivity > div {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.alertHistoryTimeline__regionRank {
    color: var(--history-muted);
    text-align: center;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}

.alertHistoryTimeline__regionActivity > div > div > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
    color: var(--history-muted);
    font-size: 11px;
}

.alertHistoryTimeline__regionActivity strong {
    overflow: hidden;
    color: var(--history-text);
    font-size: 12px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.alertHistoryTimeline__regionActivity i {
    position: relative;
    display: block;
    height: 5px;
    overflow: hidden;
    background: var(--history-surface-strong);
    border-radius: 99px;
}

.alertHistoryTimeline__regionActivity i::after {
    display: block;
    width: var(--region-activity, 0%);
    height: 100%;
    background: linear-gradient(90deg, #4f75e8, #f0a43c);
    border-radius: inherit;
    content: "";
}

.alertHistoryTimeline__compactEmpty {
    margin: 10px 0 0;
    color: var(--history-muted);
    font-size: 12px;
    line-height: 1.5;
}

.alertHistoryTimeline__state {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 14px;
    min-height: 240px;
    padding: 32px;
    color: var(--history-muted);
    text-align: center;
}

.alertHistoryTimeline__state button {
    min-height: 44px;
    padding: 9px 18px;
    color: var(--history-text);
    background: var(--history-surface-strong);
    border: 1px solid var(--history-line);
    border-radius: 7px;
    font: inherit;
    cursor: pointer;
}

.alertHistoryTimeline__spinner {
    width: 28px;
    height: 28px;
    border: 2px solid var(--history-line);
    border-top-color: var(--history-focus);
    border-radius: 50%;
    animation: alertHistorySpin 700ms linear infinite;
}

@keyframes alertHistorySpin {
    to { transform: rotate(360deg); }
}

.alertHistoryTimeline__table {
    width: auto;
    min-width: calc(var(--history-label-width) + 960px);
}

.alertHistoryTimeline__table[hidden],
.alertHistoryTimeline__state[hidden],
.alertHistoryTimeline__tooltip[hidden] {
    display: none !important;
}

.alertHistoryTimeline__axisRow,
.alertHistoryTimeline__row {
    display: grid;
    grid-template-columns: var(--history-label-width) minmax(960px, 1fr);
}

.alertHistoryTimeline__axisRow {
    position: sticky;
    top: 0;
    z-index: 6;
    height: 42px;
    background: var(--history-surface);
    border-bottom: 1px solid var(--history-line);
}

.alertHistoryTimeline__label {
    position: sticky;
    left: 0;
    z-index: 4;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 0 18px;
    overflow: hidden;
    background: var(--history-surface);
    border-right: 1px solid var(--history-line);
    border-bottom: 1px solid var(--history-line);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.alertHistoryTimeline__label--axis {
    z-index: 8;
    color: var(--history-muted);
    font-size: 11px;
}

.alertHistoryTimeline__axis,
.alertHistoryTimeline__track {
    position: relative;
    background-image:
        repeating-linear-gradient(to right,
            transparent 0,
            transparent calc(4.166666% - 1px),
            var(--history-grid) calc(4.166666% - 1px),
            var(--history-grid) 4.166666%),
        repeating-linear-gradient(to right,
            transparent 0,
            transparent calc(25% - 1px),
            var(--history-grid-strong) calc(25% - 1px),
            var(--history-grid-strong) 25%);
}

.alertHistoryTimeline__axis {
    background-color: var(--history-surface);
}

.alertHistoryTimeline__hour {
    position: absolute;
    top: 13px;
    color: var(--history-muted);
    font-size: 10px;
    line-height: 1;
    transform: translateX(-50%);
}

.alertHistoryTimeline__row {
    min-height: var(--history-row-height);
}

.alertHistoryTimeline__row--state {
    min-height: var(--history-state-row-height);
}

.alertHistoryTimeline__row--state .alertHistoryTimeline__label {
    color: var(--history-text);
    background: var(--history-surface-strong);
    font-size: 13px;
    font-weight: 600;
}

.alertHistoryTimeline__row--district .alertHistoryTimeline__label {
    padding-left: 38px;
    color: var(--history-muted);
    font-size: 12px;
    font-weight: 400;
}

.alertHistoryTimeline__track {
    min-width: 0;
    background-color: rgb(255 255 255 / 1.5%);
    border-bottom: 1px solid var(--history-line);
}

.alertHistoryTimeline__row--state .alertHistoryTimeline__track {
    background-color: rgb(255 255 255 / 4%);
}

.alertHistoryTimeline__segment {
    position: absolute;
    z-index: 2;
    top: var(--history-segment-inset);
    bottom: var(--history-segment-inset);
    min-width: 3px;
    height: auto;
    padding: 0;
    border: 0;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgb(255 255 255 / 8%) inset;
    cursor: pointer;
    touch-action: manipulation;
}

.alertHistoryTimeline__segment[data-level="red"] {
    z-index: 3;
    background: var(--history-red);
}

.alertHistoryTimeline__segment[data-level="yellow"] {
    z-index: 2;
    background: var(--history-yellow);
}

.alertHistoryTimeline__segment[data-ongoing="true"]::after {
    position: absolute;
    top: 0;
    right: -1px;
    bottom: 0;
    width: 8px;
    background: linear-gradient(90deg, transparent, rgb(255 255 255 / 55%));
    border-radius: inherit;
    content: "";
}

.alertHistoryTimeline__segment:hover,
.alertHistoryTimeline__segment:focus-visible {
    filter: brightness(1.12);
}

.alertHistoryTimeline__segment[data-level="red"]:hover,
.alertHistoryTimeline__segment[data-level="red"]:focus-visible {
    z-index: 4;
}

.alertHistoryTimeline__segment[data-level="yellow"]:hover,
.alertHistoryTimeline__segment[data-level="yellow"]:focus-visible {
    z-index: 2;
    filter: brightness(1.12);
}

.alertHistoryTimeline__tooltip {
    position: fixed;
    z-index: 20;
    width: max-content;
    max-width: min(290px, calc(100vw - 24px));
    padding: 10px 12px;
    pointer-events: none;
    color: #fff;
    background: #0f1318;
    border: 1px solid #454e59;
    border-radius: 7px;
    box-shadow: 0 10px 30px rgb(0 0 0 / 35%);
    font-size: 12px;
    line-height: 1.5;
}

.alertHistoryTimeline__tooltip strong,
.alertHistoryTimeline__tooltip span {
    display: block;
}

.alertHistoryTimeline__tooltip strong {
    margin-bottom: 3px;
    font-weight: 600;
}

.alertHistoryTimeline__tooltip span {
    color: #c4cbd4;
}

html.light .alertHistoryTimeline {
    --history-bg: #eef0f3;
    --history-surface: #f8f9fa;
    --history-surface-strong: #e3e7ec;
    --history-line: #cfd5dc;
    --history-grid: rgb(31 42 55 / 8%);
    --history-grid-strong: rgb(31 42 55 / 15%);
    --history-text: #242a32;
    --history-muted: #626c79;
    --history-mobile-label-bg: rgb(248 249 250 / 94%);
    color-scheme: light;
}

html.light .alertHistoryTimeline__track {
    background-color: rgb(255 255 255 / 32%);
}

html.light .alertHistoryTimeline__row--state .alertHistoryTimeline__track {
    background-color: rgb(55 67 82 / 5%);
}

html.light .alertHistoryTimeline__routeMap {
    background: rgb(255 255 255 / 42%);
}

html.light .alertHistoryTimeline__routeBase--dark {
    display: none;
}

html.light .alertHistoryTimeline__routeBase--light {
    display: block;
}

.only-map .onlyMapSettings > .alertHistoryTimelineTrigger {
    position: absolute;
    top: -56px;
    right: 112px;
}

@media (max-width: 992px) {
    .alertHistoryTimeline {
        --history-label-width: 0px;
        --history-mobile-label-height: 28px;
        --history-mobile-state-label-height: 32px;
        --history-mobile-track-height: 22px;
        --history-segment-inset: 5px;
    }

    .alertHistoryTimeline__header {
        grid-template-columns: minmax(0, 1fr) 44px;
        gap: 10px 14px;
        padding-bottom: 12px;
    }

    .alertHistoryTimeline__tabs {
        box-sizing: border-box;
        height: 44px;
        min-height: 44px;
        max-height: 44px;
        padding: 0 12px;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        overscroll-behavior-y: none;
        scrollbar-width: none;
        touch-action: pan-x;
    }

    .alertHistoryTimeline__tabs button {
        padding: 0 12px;
    }

    .alertHistoryTimeline__tabs::-webkit-scrollbar {
        display: none;
    }

    .alertHistoryTimeline__territoryFilter {
        position: fixed;
        top: max(12px, env(safe-area-inset-top));
        right: 12px;
        bottom: auto;
        left: 12px;
        z-index: 60;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        width: auto;
        max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
        padding: 12px;
        overflow: hidden;
    }

    .alertHistoryTimeline__territoryScope {
        display: flex;
        align-items: center;
        gap: 5px;
        min-height: 24px;
        padding: 0 2px;
    }

    .alertHistoryTimeline__territoryScope > span {
        display: inline;
        margin: 0;
    }

    .alertHistoryTimeline__territoryScope button {
        margin-left: auto;
    }

    .alertHistoryTimeline__territoryResults {
        position: static;
        max-height: min(390px, calc(100dvh - 190px));
        margin-top: 6px;
        box-shadow: none;
    }

    .alertHistoryTimeline__heading {
        min-width: 0;
    }

    .alertHistoryTimeline__heading h2 {
        overflow: hidden;
        font-size: 18px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .alertHistoryTimeline__dateControls {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .alertHistoryTimeline__dateField {
        min-width: 0;
    }

    .alertHistoryTimeline__datePicker {
        flex: 1 1 auto;
        min-width: 0;
    }

    .alertHistoryTimeline__calendar {
        width: min(320px, calc(100vw - 24px));
    }

    .alertHistoryTimeline__legend {
        grid-column: 1 / -1;
        grid-row: 3;
        gap: 7px 14px;
    }

    .alertHistoryTimeline__territorySelections {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 6px;
        padding-top: 0;
    }

    .alertHistoryTimeline__territorySelections > span {
        display: none;
    }

    .alertHistoryTimeline__territoryChip {
        max-width: min(230px, 68vw);
    }

    .alertHistoryTimeline__close {
        grid-column: 2;
        grid-row: 1;
    }

    .alertHistoryTimeline__label {
        padding-right: 10px;
        padding-left: 12px;
    }

    .alertHistoryTimeline__row--district .alertHistoryTimeline__label {
        padding-left: 24px;
        font-size: 12px;
    }

    .only-map .onlyMapSettings > .alertHistoryTimelineTrigger {
        top: 0;
        right: calc(100% + (var(--only-map-control-size) * 2) + 24px);
    }

    .alertHistoryTimeline__content {
        overflow-x: auto;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
    }

    .alertHistoryTimeline__targetView,
    .alertHistoryTimeline__overviewView {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        min-height: 0;
        padding: 12px;
    }

    .alertHistoryTimeline__overviewPair {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .alertHistoryTimeline__targetCard,
    .alertHistoryTimeline__overviewCard {
        padding: 18px 14px;
        border-radius: 9px;
    }

    .alertHistoryTimeline__targetCard--heat,
    .alertHistoryTimeline__targetCard--regions,
    .alertHistoryTimeline__overviewCard--wide {
        grid-column: 1;
    }

    .alertHistoryTimeline__overviewMetrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .alertHistoryTimeline__districtShares {
        grid-template-columns: minmax(0, 1fr);
    }

    .alertHistoryTimeline__overviewLineChart svg {
        height: 210px;
    }

    .alertHistoryTimeline__overviewYAxis {
        height: 210px;
        font-size: 9px;
    }

    .alertHistoryTimeline__overviewBarsCanvas {
        height: 210px;
    }

    .alertHistoryTimeline__overviewBarsColumns {
        gap: 1px;
    }

    .alertHistoryTimeline__overviewBarsColumns > div:nth-child(even) span {
        display: none;
    }

    .alertHistoryTimeline__cardHeader {
        gap: 12px;
    }

    .alertHistoryTimeline__cardHeader h3 {
        font-size: 20px;
    }

    .alertHistoryTimeline__cardHeader p {
        font-size: 12px;
    }

    .alertHistoryTimeline__targetTotal strong {
        font-size: 26px;
    }

    .alertHistoryTimeline__chart {
        grid-template-columns: 26px minmax(0, 1fr);
        gap: 6px;
        height: 300px;
        margin-top: 26px;
    }

    .alertHistoryTimeline__targetFilters {
        flex-wrap: nowrap;
        margin-right: -14px;
        padding-right: 14px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
    }

    .alertHistoryTimeline__targetFilters::-webkit-scrollbar {
        display: none;
    }

    .alertHistoryTimeline__chartBars {
        gap: 1px;
    }

    .alertHistoryTimeline__chartStack {
        width: min(16px, 72%);
    }

    .alertHistoryTimeline__chartColumn:nth-child(even) .alertHistoryTimeline__chartHour {
        display: none;
    }

    .alertHistoryTimeline__targetLegend {
        gap: 7px 12px;
    }

    .alertHistoryTimeline__routeMap {
        margin-top: 20px;
    }

    .alertHistoryTimeline__regionActivity {
        grid-template-columns: minmax(0, 1fr);
    }

    .alertHistoryTimeline__table {
        width: 960px !important;
        min-width: 960px;
    }

    .alertHistoryTimeline__axisRow,
    .alertHistoryTimeline__row {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .alertHistoryTimeline__row {
        position: relative;
        grid-template-rows: var(--history-mobile-label-height) var(--history-mobile-track-height);
    }

    .alertHistoryTimeline__axisRow {
        position: sticky;
        top: 0;
        z-index: 10;
        height: 38px;
        background: var(--history-surface);
    }

    .alertHistoryTimeline__label--axis {
        display: none;
    }

    .alertHistoryTimeline__axis,
    .alertHistoryTimeline__track {
        grid-column: 1;
        min-width: 0;
    }

    .alertHistoryTimeline__axis {
        grid-row: 1;
    }

    .alertHistoryTimeline__row {
        min-height: calc(var(--history-mobile-label-height) + var(--history-mobile-track-height));
    }

    .alertHistoryTimeline__row--state {
        grid-template-rows: var(--history-mobile-state-label-height) var(--history-mobile-track-height);
        min-height: calc(var(--history-mobile-state-label-height) + var(--history-mobile-track-height));
        margin-top: 5px;
    }

    .alertHistoryTimeline__row .alertHistoryTimeline__label {
        position: sticky;
        top: auto;
        right: auto;
        bottom: auto;
        left: 0;
        z-index: 6;
        grid-row: 1;
        grid-column: 1;
        justify-self: start;
        width: 100vw;
        max-width: 100vw;
        min-height: 0;
        padding: 0 10px;
        pointer-events: none;
        background: var(--history-surface);
        border-right: 0;
        border-bottom: 1px solid var(--history-line);
        text-shadow: none;
    }

    .alertHistoryTimeline__row--state .alertHistoryTimeline__label {
        padding-left: 10px;
        background: var(--history-surface-strong);
        font-size: 13px;
    }

    .alertHistoryTimeline__row--district .alertHistoryTimeline__label {
        padding-left: 24px;
        font-size: 11px;
    }

    .alertHistoryTimeline__track,
    .alertHistoryTimeline__row--state .alertHistoryTimeline__track {
        grid-row: 2;
        min-height: var(--history-mobile-track-height);
        background-color: rgb(255 255 255 / 2.5%);
    }

    .alertHistoryTimeline__row--state .alertHistoryTimeline__track {
        background-color: rgb(255 255 255 / 5%);
    }

    .alertHistoryTimeline__hour {
        top: 13px;
        font-size: 0;
    }

    .alertHistoryTimeline__hour::after {
        font-size: 9px;
        content: attr(data-hour);
    }

    html.light .alertHistoryTimeline__track {
        background-color: rgb(255 255 255 / 30%);
    }

    html.light .alertHistoryTimeline__row--state .alertHistoryTimeline__track {
        background-color: rgb(55 67 82 / 7%);
    }
}

@media (max-width: 420px) {
    .alertHistoryTimeline__header {
        gap: 8px;
        padding-right: 12px;
        padding-left: 12px;
    }

    .alertHistoryTimeline__heading p {
        font-size: 11px;
    }

    .alertHistoryTimeline__dateControls {
        gap: 4px;
    }

    .alertHistoryTimeline__targetView,
    .alertHistoryTimeline__overviewView {
        padding: 8px;
    }

    .alertHistoryTimeline__targetCard,
    .alertHistoryTimeline__overviewCard {
        padding: 16px 11px;
    }

    .alertHistoryTimeline__cardHeader {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .alertHistoryTimeline__chart {
        height: 270px;
        margin-top: 22px;
    }

    .alertHistoryTimeline__chartEmpty {
        width: calc(100% - 18px);
        padding: 17px 14px;
    }

    .alertHistoryTimeline__targetTotal {
        min-width: 58px;
    }

    .alertHistoryTimeline__densityLegend {
        grid-template-columns: auto minmax(70px, 1fr) auto;
        gap: 7px;
    }

    .alertHistoryTimeline__distribution {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .alertHistoryTimeline__donut {
        width: 156px;
    }

    .alertHistoryTimeline__metricGroups {
        grid-template-columns: minmax(0, 1fr);
    }

    .alertHistoryTimeline__overviewMetrics,
    .alertHistoryTimeline__comparison,
    .alertHistoryTimeline__extremes {
        grid-template-columns: minmax(0, 1fr);
    }

    .alertHistoryTimeline__trendContent {
        --trend-label-width: 118px;
        --trend-plot-min: 440px;
    }

    .alertHistoryTimeline__trendContent.is-dense {
        --trend-plot-min: 1740px;
    }

    .alertHistoryTimeline__periodSwitch button {
        padding-right: 8px;
        padding-left: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .alertHistoryTimeline__spinner {
        animation-duration: 2s;
    }
}

/* Cache refresh.            */
