@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
    --font-sans: "Plus Jakarta Sans", "Segoe UI", "Helvetica Neue", sans-serif;
    --font-display: "Space Grotesk", "Plus Jakarta Sans", "Segoe UI", sans-serif;
    --bg-surface: #f7fafc;
    --bg-card: #ffffff;
    --bg-card-muted: #f1f5f9;
    --text-primary: #0f172a;
    --text-muted: #475569;
    --border-soft: rgba(15, 23, 42, 0.08);
    --shadow-strong: 0 18px 40px rgba(15, 23, 42, 0.1);
    --shadow-soft: 0 10px 20px rgba(15, 23, 42, 0.06);
    --radius-lg: 18px;
    --radius-md: 12px;
    --accent: #7c3aed;
    --accent-strong: #a855f7;
    --accent-warn: #fbbf24;
    --accent-alert: #f87171;
    --brand-purple: #6d28d9;
    --brand-magenta: #b5179e;
}

.status-page-container {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    background: radial-gradient(circle at 5% 10%, rgba(168, 85, 247, 0.14), transparent 45%),
        radial-gradient(circle at 95% 5%, rgba(109, 40, 217, 0.18), transparent 40%),
        radial-gradient(circle at 50% 100%, rgba(181, 23, 158, 0.12), transparent 55%),
        var(--bg-surface);
    min-height: 100vh;
    color: var(--text-primary);
    position: relative;
    overflow-x: hidden;
}

.public-announce-bar {
    background: linear-gradient(90deg, var(--brand-magenta), var(--brand-purple));
    color: #fff;
    padding: 0.65rem 0;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.public-announce-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    text-align: center;
}

.public-announce-meta {
    font-weight: 500;
    opacity: 0.9;
}

.public-brand-bar {
    background: #ffffff;
    color: var(--text-primary);
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    position: relative;
    z-index: 2;
}

.public-brand-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.public-brand-left {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

.public-brand-logo {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    background: linear-gradient(135deg, var(--brand-magenta), var(--brand-purple));
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.18);
    display: inline-block;
}

.public-brand-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--brand-purple);
}

.status-page-container::before {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.5), transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.status-page-container > .overall-status-header,
.status-page-container > .container,
.status-page-container .main-content {
    position: relative;
    z-index: 1;
}

.status-topbar {
    padding: 1.8rem 0 1rem;
    position: relative;
    z-index: 1;
}

.status-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.status-brand-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.status-brand-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.15rem;
}

.status-hero {
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

.status-overview-card {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
    padding: 1.4rem 1.6rem;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.status-overview-main {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.status-icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex: 0 0 auto;
    background: #e2e8f0;
    color: #0f172a;
}

.status-overview-card h1 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    font-family: var(--font-display);
}

.status-overview-card p {
    margin: 0.25rem 0 0;
    color: var(--text-muted);
}

.status-overview-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.status-overview-card.status-operational {
    background: #ecfdf5;
    border-color: rgba(16, 185, 129, 0.35);
}

.status-overview-card.status-operational .status-icon {
    background: #10b981;
    color: #fff;
}

.status-overview-card.status-degraded {
    background: #fffbeb;
    border-color: rgba(245, 158, 11, 0.35);
}

.status-overview-card.status-degraded .status-icon {
    background: #f59e0b;
    color: #fff;
}

.status-overview-card.status-partial-outage {
    background: #fff7ed;
    border-color: rgba(249, 115, 22, 0.35);
}

.status-overview-card.status-partial-outage .status-icon {
    background: #f97316;
    color: #fff;
}

.status-overview-card.status-major-outage {
    background: #fef2f2;
    border-color: rgba(239, 68, 68, 0.35);
}

.status-overview-card.status-major-outage .status-icon {
    background: #ef4444;
    color: #fff;
}

.status-overview-card.status-maintenance {
    background: #eff6ff;
    border-color: rgba(96, 165, 250, 0.4);
}

.status-overview-card.status-maintenance .status-icon {
    background: #60a5fa;
    color: #fff;
}

.status-overview-card.status-unknown {
    background: #f8fafc;
    border-color: rgba(148, 163, 184, 0.5);
}

.status-overview-card.status-unknown .status-icon {
    background: #94a3b8;
    color: #fff;
}

.status-system {
    margin-bottom: 2rem;
}

.system-status-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0 0.6rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.system-status-header h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-display);
}

.system-status-range {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.15rem;
}

.system-status-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.system-range-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.system-range-option {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease;
}

.system-range-option:hover {
    color: var(--brand-purple);
}

.system-range-option.active {
    background: rgba(109, 40, 217, 0.15);
    color: var(--brand-purple);
    box-shadow: inset 0 0 0 1px rgba(109, 40, 217, 0.2);
}

.system-uptime-pill {
    background: rgba(16, 185, 129, 0.14);
    color: #047857;
    border-radius: 999px;
    padding: 0.2rem 0.7rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-history-button {
    border-radius: 999px;
}

.system-status-body {
    margin-top: 1rem;
}

.system-empty {
    padding: 1.5rem 0.5rem 0.75rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.system-row {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "main metric" "bar bar";
    gap: 0.6rem 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.system-row:last-child {
    border-bottom: none;
    padding-bottom: 0.4rem;
}

.system-row-main {
    grid-area: main;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.system-row-title {
    font-weight: 600;
}

.system-row-components {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.system-row-metric {
    grid-area: metric;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.system-row-bar {
    grid-area: bar;
}

.system-row-toggle {
    padding: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
}

.system-row-toggle:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

.system-row-details {
    margin-top: -0.2rem;
    margin-bottom: 0.6rem;
    padding-left: 1.6rem;
}

.system-row-details-body {
    font-size: 0.9rem;
    color: var(--text-muted);
    background: rgba(148, 163, 184, 0.08);
    border-radius: 10px;
    padding: 0.6rem 0.8rem;
}

.system-status-tabs {
    margin-top: 0.9rem;
}

.system-status-tabs .nav-tabs {
    margin-bottom: 1rem;
}

.uptime-strip {
    display: flex;
    gap: 2px;
    align-items: center;
}

.uptime-segment {
    flex: 1 1 0;
    min-width: 0;
    height: 8px;
    border-radius: 4px;
    background: #e2e8f0;
}

.segment-ok {
    background: #34d399;
}

.segment-warn {
    background: #fbbf24;
}

.segment-down {
    background: #f87171;
}

.segment-maint {
    background: #60a5fa;
}

.segment-unknown {
    background: #cbd5f5;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
    box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.06);
}

.status-dot.status-operational {
    background: #22c55e;
}

.status-dot.status-degraded {
    background: #f59e0b;
}

.status-dot.status-partial-outage {
    background: #f97316;
}

.status-dot.status-major-outage {
    background: #ef4444;
}

.status-dot.status-maintenance {
    background: #60a5fa;
}

.status-dot.status-unknown {
    background: #94a3b8;
}

.overall-status-header {
    padding: 1.8rem 0 2.1rem;
    color: #fff;
    margin-bottom: 1.6rem;
    border-radius: 0 0 28px 28px;
    box-shadow: var(--shadow-strong);
    animation: rise 0.6s ease both;
}

.overall-status-header h1 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    font-family: var(--font-display);
}

.overall-status-header p {
    margin: 0.4rem 0 0;
    font-size: 1rem;
    opacity: 0.95;
}

.main-content {
    padding-bottom: 3.5rem;
}

.status-details {
    margin-top: 2rem;
}

.status-full-width {
    width: 100vw;
    max-width: none;
    margin-left: 50%;
    transform: translateX(-50%);
    padding-left: clamp(1.5rem, 6vw, 4.5rem);
    padding-right: clamp(1.5rem, 6vw, 4.5rem);
}

.status-operational {
    background: linear-gradient(130deg, #20b486, #4ade80);
}

.status-degraded {
    background: linear-gradient(130deg, #fbbf24, #f59e0b);
}

.status-partial-outage {
    background: linear-gradient(130deg, #fdba74, #fb923c);
}

.status-major-outage {
    background: linear-gradient(130deg, #f87171, #ef4444);
}

.status-maintenance {
    background: linear-gradient(130deg, #60a5fa, #93c5fd);
}

.status-unknown {
    background: linear-gradient(130deg, #94a3b8, #cbd5f5);
}

.incidents-section {
    margin-bottom: 2.5rem;
}

.incident-history-title {
    font-size: 1.6rem;
    font-weight: 700;
    font-family: var(--font-display);
    background: none;
    border: none;
    padding: 0;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.incident-history-title::after {
    content: '▼';
    font-size: 0.85rem;
    margin-left: 0.6rem;
    display: inline-block;
    transition: transform 0.2s ease;
}

.incident-history-title.collapsed::after {
    transform: rotate(-90deg);
}

.incident-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    margin-bottom: 1.2rem;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
    width: 100%;
    max-width: none;
    animation: rise 0.5s ease both;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.incident-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

.incident-highlight {
    border-left: 6px solid var(--accent-warn);
    background: linear-gradient(120deg, #fff7ed, #ffffff);
}

.incident-title-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.incident-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.incident-status-investigating {
    background: #fef3c7;
    color: #92400e;
}

.incident-status-identified {
    background: #dbeafe;
    color: #1e40af;
}

.incident-status-monitoring {
    background: #d1fae5;
    color: #065f46;
}

.incident-status-resolved {
    background: #e5e7eb;
    color: #111827;
}

.incident-status-update {
    background: #fee2e2;
    color: #991b1b;
}

.incident-meta {
    margin: 0.5rem 0 0.75rem;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.incident-header {
    padding: 1.2rem 1.4rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.incident-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    font-family: var(--font-display);
}

.incident-date {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.incident-body {
    padding: 1.2rem 1.4rem;
    color: var(--text-primary);
}

.incident-updates {
    margin-top: 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.3);
    padding-top: 1rem;
}

.incident-updates h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.incident-update {
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.incident-update:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.incident-rca {
    margin-top: 1rem;
    border-top: 1px dashed rgba(148, 163, 184, 0.35);
    padding-top: 1rem;
}

.incident-rca h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.incident-rca-item {
    margin-bottom: 0.85rem;
}

.incident-rca-item:last-child {
    margin-bottom: 0;
}

.incident-rca-emphasis {
    background: linear-gradient(120deg, rgba(251, 191, 36, 0.16), rgba(255, 255, 255, 0.95));
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(251, 191, 36, 0.35);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.incident-rca-emphasis .incident-rca-label {
    color: #92400e;
}

.incident-rca-label {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.incident-rca-item p {
    margin: 0;
}

.update-time {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.25rem;
}

.region-tabs-container {
    margin-top: 2.4rem;
}

.tab-pane.fade {
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.tab-pane.fade.show {
    transform: translateY(0);
}

.nav-tabs {
    border: none;
    gap: 0.4rem;
    padding: 0.4rem;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 999px;
    box-shadow: var(--shadow-soft);
}

.nav-tabs .nav-link {
    border: none;
    border-radius: 999px;
    color: #1f2937;
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.18s ease, background 0.2s ease, color 0.2s ease;
    position: relative;
    overflow: hidden;
}

.nav-tabs .nav-link.region-affected {
    background: rgba(248, 113, 113, 0.18);
    color: #991b1b;
    box-shadow: 0 6px 14px rgba(248, 113, 113, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-tabs .nav-link.region-affected::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 999px;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.25);
    flex: 0 0 auto;
}

.nav-tabs .nav-link.region-affected.active {
    background: linear-gradient(120deg, #f97316, #ef4444);
    color: #fff;
}

.nav-tabs .nav-link.region-affected.active::before {
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}

.nav-tabs .nav-link::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.65), transparent 70%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.nav-tabs .nav-link:hover {
    color: var(--accent);
    background: rgba(16, 185, 129, 0.12);
}

.nav-tabs .nav-link.active {
    background: linear-gradient(120deg, #34d399, #22d3ee);
    color: #fff;
    box-shadow: 0 8px 18px rgba(45, 212, 191, 0.3);
    transform: translateY(-2px);
    animation: tabPop 0.25s ease;
}

.nav-tabs .nav-link.active::after {
    opacity: 0.35;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.service-type-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-soft);
    background: var(--bg-card);
    box-shadow: var(--shadow-soft);
    animation: rise 0.5s ease both;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-type-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 36px rgba(15, 23, 42, 0.12);
}

.service-type-header {
    padding: 1rem 1.2rem;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.service-type-header.status-operational {
    background: linear-gradient(120deg, #22c55e, #34d399);
}

.service-type-header.status-degraded {
    background: linear-gradient(120deg, #fbbf24, #f59e0b);
}

.service-type-header.status-partial-outage {
    background: linear-gradient(120deg, #fb923c, #f97316);
}

.service-type-header.status-major-outage {
    background: linear-gradient(120deg, #f87171, #ef4444);
}

.service-type-header.status-maintenance {
    background: linear-gradient(120deg, #60a5fa, #93c5fd);
}

.service-type-header.status-unknown {
    background: linear-gradient(120deg, #94a3b8, #cbd5f5);
}

.service-type-header h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: var(--font-display);
}

.status-badge {
    font-size: 0.78rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.85);
    color: #0f172a;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.15);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.service-type-body {
    padding: 1.1rem 1.2rem 1.4rem;
    background-color: var(--bg-card);
    color: #1f2937;
}

.service-type-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.7rem;
    line-height: 1.4;
}

.operational-percentage {
    margin-bottom: 0.85rem;
}

.progress {
    height: 0.7rem;
    margin-bottom: 0.55rem;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    font-weight: 600;
    background: linear-gradient(90deg, #34d399, #60a5fa);
    position: relative;
    animation: fillBar 0.6s ease-out both;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -40%;
    width: 40%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    animation: shimmer 1.8s ease-in-out infinite;
}

.percentage-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.92rem;
    color: #1f2937;
    font-weight: 600;
}

.affected-services-info {
    font-size: 0.9rem;
    color: var(--accent-alert);
    margin-top: 0.4rem;
}

.affected-services-info strong {
    color: var(--text-primary);
}

.no-services-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    background-color: var(--bg-card-muted);
    border-radius: var(--radius-md);
    border: 1px dashed var(--border-soft);
}

.uptime-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
}

.uptime-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
    padding: 1rem 1.1rem;
}

.uptime-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
}

.uptime-card-pill {
    background: rgba(45, 212, 191, 0.2);
    color: #0f766e;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.uptime-card-value {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 0.5rem;
}

.uptime-card-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.35rem;
}

.btn-outline-secondary {
    border-radius: 999px;
    border-color: rgba(15, 23, 42, 0.2);
    color: var(--text-primary);
    font-weight: 500;
}

.btn-outline-secondary:hover {
    background: rgba(15, 118, 110, 0.12);
    border-color: rgba(15, 118, 110, 0.4);
    color: var(--accent);
}

@media (max-width: 768px) {
    .status-topbar-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .status-overview-card {
        padding: 1.2rem;
    }

    .system-status-card {
        padding: 1.1rem;
    }

    .system-status-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .system-status-actions {
        width: 100%;
    }

    .public-announce-inner {
        gap: 0.4rem;
    }

    .system-range-filter {
        flex-wrap: wrap;
    }

    .system-row {
        grid-template-columns: 1fr;
        grid-template-areas: "main" "metric" "bar";
    }

    .system-row-metric {
        justify-self: flex-start;
    }

    .overall-status-header {
        padding: 2rem 0 2.4rem;
    }

    .incident-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-tabs {
        flex-wrap: wrap;
        border-radius: var(--radius-lg);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes tabPop {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-2px);
    }
}

@keyframes fillBar {
    from {
        width: 0;
        opacity: 0.7;
    }
    to {
        opacity: 1;
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-120%);
        opacity: 0;
    }
    45% {
        opacity: 0.65;
    }
    100% {
        transform: translateX(260%);
        opacity: 0;
    }
}

.services-grid .service-type-card:nth-child(1) { animation-delay: 0.05s; }
.services-grid .service-type-card:nth-child(2) { animation-delay: 0.1s; }
.services-grid .service-type-card:nth-child(3) { animation-delay: 0.15s; }
.services-grid .service-type-card:nth-child(4) { animation-delay: 0.2s; }
.services-grid .service-type-card:nth-child(5) { animation-delay: 0.25s; }
.services-grid .service-type-card:nth-child(6) { animation-delay: 0.3s; }
.services-grid .service-type-card:nth-child(7) { animation-delay: 0.35s; }
.services-grid .service-type-card:nth-child(8) { animation-delay: 0.4s; }
