*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: rgb(21, 21, 24);
    --text: #ffffff;
    --text-muted: #8a8f98;
    --uptime: #34d399;
    --emerald: #10b981;
    --dot-operational: #10b981;
    --dot-degraded: #f59e0b;
    --dot-outage: #ef4444;
    --bar-operational: #1a3d2e;
    --bar-degraded: #4a4020;
    --bar-outage: #4a2222;
    --bar-unknown: rgba(58, 58, 66, 0.5);
    --bar-gap: 4px;
    --bar-glow-operational: #34d399;
    --bar-glow-degraded: #eab308;
    --bar-glow-outage: #ef4444;
    --bar-glow-unknown: rgba(72, 72, 82, 0.72);
    --tooltip-green: #34d399;
    --tooltip-yellow: #eab308;
    --tooltip-red: #f87171;
    --tree-line: rgba(255, 255, 255, 0.2);
    --tree-node: rgba(52, 211, 153, 0.55);
    --tree-node-glow: rgba(52, 211, 153, 0.14);
}

html {
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    padding: 4rem 1.5rem;
}

.status-page {
    max-width: 960px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0 0 3rem;
}

.status-top {
    margin-bottom: 3rem;
}

.status-page.is-first-load .status-top {
    animation: fadeInUp 0.55s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.status-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.status-kicker {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.status-updated {
    font-size: 0.8125rem;
    color: var(--text-muted);
    white-space: nowrap;
    transition: opacity 0.25s ease, color 0.25s ease;
}

.status-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pulse-neon {
    width: 0.75rem;
    height: 0.75rem;
    background-color: var(--emerald);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse-ring 2s infinite;
    flex-shrink: 0;
}

.status-banner.degraded .pulse-neon {
    background-color: var(--dot-degraded);
    box-shadow: none;
    animation: none;
}

.status-banner.outage .pulse-neon {
    background-color: var(--dot-outage);
    box-shadow: none;
    animation: none;
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        box-shadow: 0 0 15px 8px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.status-headline {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.1;
    color: var(--text);
    transition: color 0.3s ease, opacity 0.3s ease;
}

.status-main {
    flex: 1;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.status-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.status-section-title {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.status-section-items {
    display: flex;
    flex-direction: column;
    gap: 2.75rem;
}

.location-block {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.location-group-header {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.location-block--group.is-open .location-group-header .uptime-track {
    display: none;
}

.location-block--group.is-open .location-trigger {
    margin-bottom: 0;
}

.location-trigger {
    width: 100%;
    padding: 0.75rem 0;
    margin-bottom: 0.875rem;
    border: none;
    background: transparent;
    color: inherit;
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-radius: 8px;
    transition: background 0.15s ease;
}

.location-block--group .location-trigger:hover {
    background: rgba(255, 255, 255, 0.04);
}

.location-block--group .location-trigger:focus-visible {
    outline: 2px solid rgba(52, 211, 153, 0.55);
    outline-offset: 2px;
}

.location-trigger:hover .service-name {
    color: #f5f5f5;
}

.location-trigger-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    flex: 1;
}

.location-expand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.625rem;
    height: 1.625rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    flex-shrink: 0;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.2s ease;
}

.location-block--group .location-trigger:hover .location-expand-icon {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
    transform: scale(1.05);
}

.chevron {
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2px solid #c8cdd6;
    border-bottom: 2px solid #c8cdd6;
    transform: rotate(-45deg);
    transition: transform 0.18s ease, border-color 0.15s ease;
    flex-shrink: 0;
    margin-top: -0.125rem;
}

.location-block--group.is-open .chevron {
    transform: rotate(45deg);
    margin-top: 0.125rem;
}

.service-row {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.service-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.875rem;
}

.service-header-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.625rem;
    min-width: 0;
}

.location-trigger-right {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex-shrink: 0;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.1875rem 0.5rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    line-height: 1.2;
    white-space: nowrap;
    transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.status-badge--online {
    color: var(--tooltip-green);
    background: rgba(52, 211, 153, 0.12);
}

.status-badge--offline {
    color: var(--tooltip-red);
    background: rgba(248, 113, 113, 0.12);
}

.status-badge--degraded {
    color: var(--tooltip-yellow);
    background: rgba(251, 191, 36, 0.12);
}

.service-name {
    font-size: 1.0625rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--text);
}

.location-title-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-width: 0;
}

.location-flag-wrap {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.375rem;
    height: 1.03125rem;
    border-radius: 4px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.16),
        0 1px 4px rgba(0, 0, 0, 0.4);
}

.location-flag-wrap--emoji {
    background: rgba(255, 255, 255, 0.03);
}

.location-flag {
    flex-shrink: 0;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}

.location-flag.fi {
    width: 100% !important;
    height: 100% !important;
    border-radius: 0;
    background-size: cover !important;
    background-position: center !important;
    line-height: 1;
}

.location-flag--emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 0.875rem;
    line-height: 1;
    box-shadow: none;
}

.service-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    line-height: 0;
}

.service-icon {
    flex-shrink: 0;
    display: block;
}

.service-icon--telegram,
.service-icon--link {
    width: 1.25rem;
    height: 1.25rem;
    object-fit: contain;
}

.service-block--platform,
.service-block--bot {
    margin-bottom: 0.25rem;
}

.location-count {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
}

.location-count--expandable {
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #b8bec8;
}

.service-name--host {
    font-family: 'SF Mono', SFMono-Regular, ui-monospace, Menlo, Monaco, Consolas, monospace;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #c8cdd6;
}

.service-uptime {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--uptime);
    white-space: nowrap;
}

.service-uptime.muted {
    color: var(--text-muted);
}

.service-uptime--degraded {
    color: var(--tooltip-yellow);
}

.service-uptime--outage {
    color: var(--tooltip-red);
}

.location-clusters {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-left: 1.375rem;
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    overflow: hidden;
    pointer-events: none;
    transition:
        max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.28s ease,
        margin-top 0.35s ease;
}

.location-block--group.is-open .location-clusters {
    position: relative;
    max-height: 4000px;
    opacity: 1;
    margin-top: 1.75rem;
    margin-left: 0.8125rem;
    pointer-events: auto;
}

.location-block--group.is-open .location-clusters::before {
    content: '';
    position: absolute;
    left: 0;
    top: -1.5rem;
    bottom: 0;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.03) 0%,
        var(--tree-line) 8%,
        var(--tree-line) 92%,
        rgba(255, 255, 255, 0.03) 100%
    );
    box-shadow: 0 0 10px var(--tree-node-glow);
}

.location-block--group.is-open .service-row--nested {
    position: relative;
    animation: nestedRowIn 0.38s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.location-block--group.is-open .service-row--nested .service-header {
    position: relative;
}

.location-block--group.is-open .service-row--nested .service-header::before {
    content: '';
    position: absolute;
    left: -1.625rem;
    top: 0.875rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--tree-node);
    box-shadow: 0 0 0 3px var(--tree-node-glow);
    transform: translateY(-50%);
}

.location-block--group.is-open .service-row--nested::before {
    content: '';
    position: absolute;
    left: -1.375rem;
    top: 0.875rem;
    width: 1rem;
    height: 0.625rem;
    background: transparent;
    border-left: 2px solid var(--tree-line);
    border-bottom: 2px solid var(--tree-line);
    border-bottom-left-radius: 10px;
}

.location-block--group.is-open .service-row--nested:last-child::after {
    content: '';
    position: absolute;
    left: -1.375rem;
    top: calc(0.875rem + 0.625rem + 2px);
    bottom: -2.5rem;
    width: 4px;
    background: var(--bg);
    transform: translateX(-1px);
}

.location-clusters[hidden] {
    display: none !important;
}

.location-block--group.is-open .service-row--nested:nth-child(1) {
    animation-delay: 0.04s;
}

.location-block--group.is-open .service-row--nested:nth-child(2) {
    animation-delay: 0.08s;
}

.location-block--group.is-open .service-row--nested:nth-child(3) {
    animation-delay: 0.12s;
}

.location-block--group.is-open .service-row--nested:nth-child(4) {
    animation-delay: 0.16s;
}

.location-block--group.is-open .service-row--nested:nth-child(n+5) {
    animation-delay: 0.2s;
}

.uptime-track {
    width: 100%;
}

.uptime-bars {
    display: flex;
    align-items: stretch;
    gap: var(--bar-gap);
    height: 36px;
}

.uptime-bar {
    flex: 1 1 0;
    min-width: 0;
    border: none;
    border-radius: 999px;
    padding: 0;
    cursor: default;
    background: var(--bar-unknown);
    transform-origin: center bottom;
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.uptime-bar.has-data {
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.uptime-bar.has-data::before {
    content: '';
    position: absolute;
    top: -10px;
    bottom: -10px;
    left: -5px;
    right: -5px;
    border-radius: 999px;
}

.status-page.is-first-load .uptime-bar.has-data {
    animation: barPop 0.35s cubic-bezier(0.34, 1.4, 0.64, 1) backwards;
    animation-delay: calc(var(--bar-index, 0) * 6ms);
}

.uptime-bar.has-data:hover,
.uptime-bar.has-data:focus-visible {
    outline: none;
    z-index: 3;
}

.uptime-bar.has-data.operational:hover,
.uptime-bar.has-data.operational:focus-visible {
    background: var(--bar-glow-operational);
    box-shadow:
        0 0 0 2px rgba(52, 211, 153, 0.2),
        0 0 20px rgba(52, 211, 153, 0.55);
}

.uptime-bar.has-data.degraded:hover,
.uptime-bar.has-data.degraded:focus-visible {
    background: var(--bar-glow-degraded);
    box-shadow:
        0 0 0 2px rgba(212, 160, 23, 0.2),
        0 0 20px rgba(212, 160, 23, 0.5);
}

.uptime-bar.has-data.outage:hover,
.uptime-bar.has-data.outage:focus-visible {
    background: var(--bar-glow-outage);
    box-shadow:
        0 0 0 2px rgba(239, 68, 68, 0.25),
        0 0 22px rgba(239, 68, 68, 0.6);
}

.uptime-bar.has-data.unknown:hover,
.uptime-bar.has-data.unknown:focus-visible {
    background: var(--bar-glow-unknown);
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.08),
        0 0 18px rgba(255, 255, 255, 0.12);
}

.uptime-bar.operational {
    background: var(--bar-operational);
}

.uptime-bar.degraded {
    background: var(--bar-degraded);
}

.uptime-bar.outage {
    background: var(--bar-outage);
}

.uptime-bar.unknown {
    background: var(--bar-unknown);
}

.uptime-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.625rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.uptime-label-mobile {
    display: none;
}

.status-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 3rem 1rem;
}

.status-empty[hidden] {
    display: none !important;
}

.status-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2.5rem 1rem;
    text-align: center;
}

.status-error[hidden] {
    display: none !important;
}

.status-error-text {
    color: var(--text-muted);
    font-size: 0.9375rem;
    max-width: 22rem;
}

.status-error-retry {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.status-error-retry:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.24);
}

.status-updated.is-error {
    color: #f87171;
}

.status-page.is-stale .status-updated.is-error {
    color: #fbbf24;
}

.pulse-neon--loading {
    background-color: rgba(255, 255, 255, 0.18);
    box-shadow: none;
    animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
    0%,
    100% {
        opacity: 0.45;
    }

    50% {
        opacity: 0.85;
    }
}

.skeleton {
    display: block;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

.status-skeleton .status-section-items {
    gap: 2rem;
}

.status-skeleton-row {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.status-skeleton-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.skeleton-circle {
    width: 1.375rem;
    height: 1.03125rem;
    border-radius: 4px;
    flex-shrink: 0;
}

.skeleton-name {
    height: 1rem;
    width: 7rem;
}

.skeleton-badge {
    height: 1.125rem;
    width: 3.5rem;
    border-radius: 999px;
}

.skeleton-uptime {
    height: 0.875rem;
    width: 5.5rem;
    margin-left: auto;
}

.skeleton-section-title {
    height: 0.6875rem;
    width: 4.5rem;
    border-radius: 4px;
}

.skeleton-bars {
    height: 32px;
    width: 100%;
    border-radius: 8px;
}

.uptime-bar.is-tooltip-active.operational {
    background: var(--bar-glow-operational);
    box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.2), 0 0 16px rgba(52, 211, 153, 0.45);
}

.uptime-bar.is-tooltip-active.degraded {
    background: var(--bar-glow-degraded);
    box-shadow: 0 0 0 2px rgba(234, 179, 8, 0.18), 0 0 16px rgba(234, 179, 8, 0.35);
}

.uptime-bar.is-tooltip-active.outage {
    background: var(--bar-glow-outage);
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.18), 0 0 16px rgba(239, 68, 68, 0.35);
}

.uptime-tooltip--below {
    transform: translate(-50%, 8px) scale(0.96);
}

.uptime-tooltip--below.is-visible {
    transform: translate(-50%, 12px) scale(1);
}

.uptime-tooltip--below.uptime-tooltip--detailed {
    border-radius: 12px;
}

.uptime-tooltip {
    position: fixed;
    z-index: 1000;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.4375rem 0.875rem;
    border-radius: 999px;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.8125rem;
    line-height: 1.2;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, calc(-100% - 6px)) scale(0.96);
    transition:
        opacity 0.16s ease,
        transform 0.16s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.16s ease;
}

.uptime-tooltip.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, calc(-100% - 10px)) scale(1);
}

.uptime-tooltip--detailed {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 0.625rem 0.875rem;
    border-radius: 10px;
    white-space: normal;
}

.uptime-tooltip-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.uptime-tooltip-incidents {
    list-style: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding: 0.375rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.uptime-tooltip-incident {
    font-size: 0.75rem;
    line-height: 1.4;
}

.uptime-tooltip-incident-lines {
    display: flex;
    flex-direction: column;
    gap: 0.1875rem;
}

.uptime-tooltip-incident-line {
    display: block;
}

.uptime-tooltip-incident-host {
    display: block;
    margin-bottom: 0.125rem;
    color: var(--text-muted);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.uptime-tooltip-incident-down {
    color: var(--text-muted);
}

.uptime-tooltip-incident.outage .uptime-tooltip-incident-line.uptime-tooltip-incident-down,
.uptime-tooltip-incident--active.outage .uptime-tooltip-incident-line.uptime-tooltip-incident-down {
    color: var(--tooltip-red);
}

.uptime-tooltip-incident.degraded .uptime-tooltip-incident-line.uptime-tooltip-incident-down {
    color: var(--tooltip-yellow);
}

.uptime-tooltip-incident-line.uptime-tooltip-incident-restored {
    color: var(--tooltip-green);
    font-weight: 500;
}

.uptime-tooltip[hidden] {
    display: flex !important;
}

.uptime-tooltip-date {
    color: var(--text-muted);
}

.uptime-tooltip-label.operational {
    color: var(--tooltip-green);
    font-weight: 500;
}

.uptime-tooltip-label.degraded {
    color: var(--tooltip-yellow);
    font-weight: 500;
}

.uptime-tooltip-label.outage {
    color: var(--tooltip-red);
    font-weight: 500;
}

.uptime-tooltip-label.unknown {
    color: var(--text-muted);
}

.uptime-tooltip-label.unknown {
    color: var(--text-muted);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes nestedRowIn {
    from {
        opacity: 0;
        transform: translateX(-8px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes barPop {
    from {
        opacity: 0.35;
        transform: scaleY(0.25);
    }

    to {
        opacity: 1;
        transform: scaleY(1);
    }
}

@keyframes statusHeadlineIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.status-page.is-first-load .status-headline {
    animation: statusHeadlineIn 0.45s cubic-bezier(0.4, 0, 0.2, 1) backwards;
    animation-delay: 0.08s;
}

.status-page.is-first-load .status-section {
    animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.status-page.is-first-load .status-section:nth-child(1) {
    animation-delay: 0.1s;
}

.status-page.is-first-load .status-section:nth-child(2) {
    animation-delay: 0.18s;
}

.status-page.is-first-load .location-block,
.status-page.is-first-load .service-block--platform {
    animation: fadeInUp 0.45s cubic-bezier(0.4, 0, 0.2, 1) backwards;
    animation-delay: var(--item-delay, 0s);
}

.status-page.is-first-load .status-badge {
    animation: fadeInUp 0.35s ease backwards;
    animation-delay: calc(var(--item-delay, 0s) + 0.06s);
}

.status-updated.is-flashing {
    animation: updatedFlash 0.6s ease;
}

.status-page.is-refreshing .location-block,
.status-page.is-refreshing .service-block--platform,
.status-page.is-refreshing .status-section,
.status-page.is-refreshing .status-badge,
.status-page.is-refreshing .status-headline,
.status-page.is-refreshing .status-top,
.status-page.is-refreshing .uptime-bar,
.status-page.is-refreshing .service-row--nested {
    animation: none !important;
}

.status-page.is-refreshing .location-clusters {
    transition: none !important;
}

@keyframes updatedFlash {
    0%,
    100% {
        opacity: 1;
    }

    40% {
        opacity: 0.45;
    }
}

.uptime-bar.has-data:hover,
.uptime-bar.has-data:focus-visible {
    transform: scaleY(1.08);
    transform-origin: center bottom;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .pulse-neon {
        animation: none;
    }
}

@media (min-width: 640px) {
    body {
        padding: 6rem 1.5rem;
    }
}

@media (max-width: 640px) {
    body {
        padding: 2.5rem 1rem;
    }

    .status-top {
        margin-bottom: 2.5rem;
    }

    .status-top-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.375rem;
    }

    .status-updated {
        font-size: 0.75rem;
        white-space: normal;
    }

    .status-headline {
        font-size: 1.5rem;
    }

    .status-banner {
        gap: 0.75rem;
    }

    .services-list {
        gap: 2.25rem;
    }

    .status-section-items {
        gap: 2rem;
    }

    .service-header {
        align-items: flex-end;
        gap: 0.75rem;
        margin-bottom: 0.625rem;
    }

    .service-header-left {
        gap: 0.5rem;
    }

    .service-name {
        font-size: 1rem;
    }

    .service-name--host {
        font-size: 0.8125rem;
    }

    .service-uptime {
        font-size: 0.8125rem;
    }

    .status-badge {
        font-size: 0.625rem;
        padding: 0.125rem 0.4375rem;
    }

    .location-trigger {
        align-items: center;
        gap: 0.75rem;
        padding: 0.5rem 0;
        margin-bottom: 0.625rem;
    }

    .location-trigger-left {
        gap: 0.5rem;
        min-width: 0;
    }

    .location-trigger .location-title-group {
        flex-wrap: nowrap;
        flex: 1;
        min-width: 0;
        gap: 0.375rem;
    }

    .location-trigger .service-name {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        min-width: 0;
    }

    .location-trigger .location-count--expandable {
        display: none;
    }

    .location-trigger .service-uptime,
    .location-trigger .service-uptime--degraded,
    .location-trigger .service-uptime--outage {
        flex-shrink: 0;
    }

    .location-clusters {
        padding-left: 0.75rem;
    }

    .location-block--group.is-open .location-clusters {
        margin-left: 0.375rem;
        margin-top: 1.25rem;
    }

    .location-block--group.is-open .service-row--nested::before {
        left: -0.75rem;
        width: 0.625rem;
    }

    .location-block--group.is-open .service-row--nested .service-header::before {
        left: -1rem;
    }

    .location-block--group.is-open .service-row--nested:last-child::after {
        left: -0.75rem;
    }

    .uptime-bars {
        height: 32px;
        gap: 2px;
    }

    .uptime-bar:nth-child(-n+45) {
        display: none;
    }

    .uptime-bar.has-data {
        -webkit-tap-highlight-color: transparent;
    }

    .uptime-label-desktop {
        display: none;
    }

    .uptime-label-mobile {
        display: inline;
    }

    .uptime-tooltip {
        max-width: calc(100vw - 24px);
        font-size: 0.75rem;
    }

    .uptime-tooltip--detailed {
        max-width: min(320px, calc(100vw - 24px));
    }
}

.status-footer {
    margin-top: auto;
    padding-top: 2.5rem;
}

.status-footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
}

.status-footer-link {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s ease;
}

.status-footer-link:hover {
    color: var(--text);
}

.status-headline--page {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.incidents-periods {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.1875rem;
    width: 100%;
    max-width: 32rem;
    margin-top: 1.5rem;
    padding: 0.25rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.incidents-period-indicator {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    pointer-events: none;
    transition:
        transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
        width 0.32s cubic-bezier(0.4, 0, 0.2, 1),
        height 0.32s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.2s ease;
}

.incidents-period {
    position: relative;
    z-index: 1;
    appearance: none;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.2;
    padding: 0.5625rem 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.22s ease, transform 0.12s ease;
    -webkit-tap-highlight-color: transparent;
}

.incidents-period:hover {
    color: #e8eaed;
}

.incidents-period:active {
    transform: scale(0.98);
}

.incidents-period.is-active {
    color: var(--text);
}

.incidents-period:focus-visible {
    outline: 2px solid rgba(52, 211, 153, 0.55);
    outline-offset: 1px;
}

.incidents-page.is-switching-period .incidents-list,
.incidents-page.is-switching-period .status-empty {
    opacity: 0;
    transform: translateY(8px);
    transition:
        opacity 0.22s ease,
        transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.incidents-page.is-switching-period .incidents-skeleton {
    animation: incidentsSkeletonIn 0.28s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.incidents-list.is-entering .incident-item {
    animation: fadeInUp 0.42s cubic-bezier(0.4, 0, 0.2, 1) backwards;
    animation-delay: var(--item-delay, 0s);
}

.incidents-page.is-content-enter .status-empty {
    animation: fadeInUp 0.45s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.status-headline--page.is-updating {
    animation: incidentHeadlineIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes incidentsSkeletonIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes incidentHeadlineIn {
    from {
        opacity: 0.55;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.incidents-list {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.incident-item {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.incident-item:last-child {
    border-bottom: none;
}

.incident-item-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.incident-item-title {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
}

.incident-item-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
}

.incident-item-location {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.incident-item-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 0.1875rem 0.5rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 600;
    white-space: nowrap;
}

.incident-item-badge--active {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.12);
}

.incident-item-badge--resolved {
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.06);
}

.incident-item-lines {
    display: flex;
    flex-direction: column;
    gap: 0.1875rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.incident-item-line--down {
    color: #f87171;
}

.incident-item-line--restored {
    color: var(--tooltip-green);
}

.incident-item-duration {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.incidents-skeleton {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.incidents-skeleton-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem 0;
}

.incidents-skeleton-top {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.skeleton-incident-title {
    height: 1rem;
    width: 9rem;
}

.skeleton-incident-badge {
    height: 1.125rem;
    width: 4.5rem;
    border-radius: 999px;
}

.skeleton-incident-line {
    height: 0.8125rem;
    width: 12rem;
}

@media (max-width: 640px) {
    .status-footer {
        padding-top: 2rem;
    }

    .status-footer-nav {
        flex-direction: column;
        gap: 0.625rem;
    }

    .status-headline--page {
        font-size: 1.5rem;
    }

    .incidents-periods {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: none;
    }

    .incidents-period {
        font-size: 0.75rem;
        padding: 0.625rem 0.375rem;
    }
}
