body {
    color: var(--ink);
}
svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}
.custom-select {
    position: relative;
    width: 100%;
    min-width: 0;
}
.select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: white;
    text-align: left;
    outline: none;
}
.select-trigger > span:first-child {
    min-width: 0;
    overflow-wrap: anywhere;
}
.select-trigger:hover:not(:disabled),
.select-trigger:focus,
.select-trigger[aria-expanded="true"] {
    border-color: var(--blue);
}
.select-trigger:disabled {
    color: #7c8a96;
    background: #f3f6f8;
}
.select-arrow {
    width: 7px;
    height: 7px;
    flex-shrink: 0;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-right: 2px;
    margin-top: -4px;
}
.select-options {
    position: absolute;
    z-index: 60;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    max-height: 240px;
    overflow-y: auto;
    border: 1px solid var(--line);
    background: white;
    box-shadow: var(--shadow);
    border-radius: 4px;
    padding: 5px;
}
.select-options button {
    display: block;
    width: 100%;
    padding: 10px;
    text-align: left;
    border: 0;
    border-radius: 3px;
    background: white;
    overflow-wrap: anywhere;
}
.select-options button:hover:not(:disabled),
.select-options button:focus-visible,
.select-options [aria-selected="true"] {
    color: var(--blue);
    background: var(--pale);
    outline: none;
}
.opens-up .select-options {
    top: auto;
    bottom: calc(100% + 5px);
}
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #c9dce9;
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
.global-status {
    position: fixed;
    z-index: 210;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    max-width: calc(100vw - 40px);
    padding: 16px 24px;
    border-radius: 6px;
    background: var(--navy);
    color: white;
    box-shadow: var(--shadow);
}
.global-status a {
    text-decoration: underline;
}
.global-status a:hover,
.global-status a:focus-visible {
    color: #94caff;
}
.map-loading {
    position: fixed;
    inset: 0;
    z-index: 220;
    background: #ffffffec;
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
}
.theme-checkbox {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 1px solid #8fa9be;
    border-radius: 3px;
    background: white;
    position: relative;
    cursor: pointer;
    vertical-align: middle;
}
.theme-checkbox:checked,
.theme-checkbox:indeterminate {
    background: var(--blue);
    border-color: var(--blue);
}
.theme-checkbox:checked::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 11px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.theme-checkbox:indeterminate::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 2px;
    background: white;
    left: 4px;
    top: 8px;
}
.theme-checkbox:hover,
.theme-checkbox:focus {
    border-color: var(--navy);
    outline: none;
}
@media (prefers-reduced-motion: reduce) {
    .spinner {
        animation-duration: 2s;
    }
}
