:root {
    --status-ink: #12263a;
    --status-muted: #52657d;
    --status-line: rgba(18, 38, 58, 0.12);
    --status-sea: #0f766e;
    --status-amber: #c7771f;
    --status-slate: #1d3557;
    --status-shadow: 0 22px 70px rgba(18, 38, 58, 0.12);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body.ev-status-body {
    position: relative;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(15, 118, 110, 0.12), transparent 28%),
        radial-gradient(circle at right 12%, rgba(199, 119, 31, 0.12), transparent 26%),
        linear-gradient(180deg, #f7f1e4 0%, #efe5d4 52%, #f8f3ea 100%);
    color: var(--status-ink);
    font-family: 'Manrope', 'Segoe UI', sans-serif;
}

.status-noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.14;
    background-image:
        linear-gradient(rgba(18, 38, 58, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(18, 38, 58, 0.03) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(circle at center, black 48%, transparent 100%);
}

.status-topbar,
.status-shell {
    width: min(1180px, calc(100vw - 32px));
    margin: 0 auto;
}

.status-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 0 0.8rem;
}

.status-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    color: inherit;
    text-decoration: none;
}

.status-brand-logo,
.status-brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    border: 1px solid rgba(18, 38, 58, 0.12);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--status-shadow);
}

.status-brand-mark {
    display: grid;
    place-items: center;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 700;
}

.status-brand-copy {
    display: grid;
    gap: 0.2rem;
}

.status-brand-kicker,
.status-section-kicker,
.status-service-kicker {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--status-muted);
}

.status-brand-name {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.05rem;
    font-weight: 700;
}

.status-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.status-links a,
.status-service-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--status-line);
    background: rgba(255, 255, 255, 0.66);
    color: var(--status-ink);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
    box-shadow: 0 12px 30px rgba(18, 38, 58, 0.07);
}

.status-shell {
    padding: 0.8rem 0 2.4rem;
}

.status-grid-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.78fr);
    gap: 1.1rem;
}

.status-service-panel,
.status-feed-panel,
.status-service-card,
.status-feed-item {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(18, 38, 58, 0.1);
    background: rgba(255, 250, 241, 0.78);
    box-shadow: var(--status-shadow);
}

.status-service-panel,
.status-feed-panel {
    padding: 1.5rem;
}

.status-service-card,
.status-feed-item {
    padding: 1.15rem;
}

.status-service-card::before,
.status-feed-item::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.52), transparent 46%);
}

.status-section-head,
.status-meta-strip,
.status-service-head,
.status-service-foot,
.status-feed-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.status-section-head {
    justify-content: space-between;
    margin-bottom: 1rem;
}

.status-meta-strip {
    justify-content: flex-end;
}

.status-updated-label,
.status-service-state,
.status-feed-time {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--status-muted);
}

.status-meta-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(18, 38, 58, 0.08);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--status-ink);
}

.status-meta-chip.is-good {
    color: var(--status-sea);
}

.status-meta-chip.is-watch {
    color: var(--status-amber);
}

.status-service-grid,
.status-feed-list {
    display: grid;
    gap: 0.85rem;
}

.status-service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.status-service-card.tone-green,
.status-feed-item.tone-green {
    background: linear-gradient(180deg, rgba(241, 255, 247, 0.96), rgba(255, 255, 255, 0.84));
}

.status-service-card.tone-amber,
.status-feed-item.tone-amber {
    background: linear-gradient(180deg, rgba(255, 248, 236, 0.98), rgba(255, 255, 255, 0.84));
}

.status-tone-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    flex: 0 0 12px;
}

.tone-green .status-tone-dot,
.status-tone-dot.tone-green {
    background: #1fa971;
    box-shadow: 0 0 0 7px rgba(31, 169, 113, 0.12);
}

.tone-amber .status-tone-dot,
.status-tone-dot.tone-amber {
    background: #d78a26;
    box-shadow: 0 0 0 7px rgba(215, 138, 38, 0.14);
}

.tone-red .status-tone-dot,
.status-tone-dot.tone-red {
    background: #d64545;
    box-shadow: 0 0 0 7px rgba(214, 69, 69, 0.14);
}

.status-service-head {
    justify-content: space-between;
    align-items: start;
}

.status-service-card h3 {
    margin: 0;
    font-family: 'Fraunces', Georgia, serif;
    letter-spacing: -0.03em;
}

.status-service-headline {
    margin-top: 0.95rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--status-slate);
}

.status-service-bio,
.status-feed-item p {
    color: var(--status-muted);
    line-height: 1.65;
}

.status-service-bio {
    min-height: 5.4rem;
    margin: 0.8rem 0 1rem;
    font-size: 0.95rem;
}

.status-service-foot {
    justify-content: space-between;
}

.status-service-link.is-static {
    color: var(--status-muted);
    background: rgba(255, 255, 255, 0.7);
}

.status-feed-head {
    justify-content: space-between;
}

.status-feed-title {
    margin-right: auto;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--status-slate);
}

.status-feed-item p {
    margin: 0.8rem 0 0;
    font-size: 0.95rem;
}

@media (max-width: 1080px) {
    .status-grid-shell,
    .status-service-grid {
        grid-template-columns: 1fr;
    }

    .status-meta-strip {
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    .status-topbar,
    .status-shell {
        width: min(100vw - 20px, 100%);
    }

    .status-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .status-links {
        width: 100%;
    }

    .status-links a,
    .status-service-link {
        width: 100%;
    }

    .status-service-panel,
    .status-feed-panel {
        padding: 1.1rem;
    }
}
