:root {
    --bg: #f3f4f6;
    --text: #1f2933;
    --muted: #6b7280;
    --line: #e5e7eb;
    --panel: #ffffff;

    --ok: #16a34a;
    --bad: #dc2626;
    --warn: #f59e0b;

    --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    font-family: var(--sans);
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    font-size: 15px;
}

.wrap {
    min-height: 100%;
    display: grid;
    place-items: center;
    padding: 24px;
}

.panel {
    width: min(1040px, 100%);
    border: 1px solid var(--line);
    background: var(--panel);
    border-radius: 10px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
    overflow: hidden;
}

.head {
    padding: 26px 26px 18px;
    border-bottom: 1px solid var(--line);
}

.headline {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    flex-wrap: wrap;
}

h1 {
    margin: 0;
    font-weight: 300;
    font-size: clamp(32px, 4.5vw, 56px);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #444;
    font-size: 12px;
    font-weight: 600;
    background: #f6f7f9;
    height: 28px;
}

.meta {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.metaLine {
    font-size: 14px;
}

.muted {
    color: var(--muted);
}

.link {
    color: #2563eb;
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

.timestamp {
    font-size: 14px;
    color: #4b5563;
}

.mono {
    font-family: var(--mono);
}

.status {
    background: #f9fafb;
    padding: 18px 18px 0;
}

.statusGrid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
    padding: 10px;
}

.statusCol {
    text-align: center;
    padding: 10px 8px 14px;
    position: relative;
}

.statusCol.mid::before,
.statusCol.mid::after {
    content: "";
    position: absolute;
    top: 14px;
    bottom: 14px;
    width: 1px;
    background: var(--line);
}

.statusCol.mid::before {
    left: -7px;
}

.statusCol.mid::after {
    right: -7px;
}

.iconBox {
    width: 130px;
    height: 92px;
    margin: 0 auto 8px;
    position: relative;
    display: grid;
    place-items: center;
}

.icon {
    width: 86px;
    height: 86px;
    stroke: #9aa0a6;
    fill: none;
    stroke-width: 3.2;
}

.icon path,
.icon rect,
.icon circle {
    vector-effect: non-scaling-stroke;
}

.badge {
    position: absolute;
    left: 50%;
    bottom: 2px;
    transform: translateX(-50%);
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
    border: 3px solid #fff;
}

.badgeIcon {
    width: 18px;
    height: 18px;
    stroke: #fff;
}

.badge.ok {
    background: var(--ok);
}

.badge.bad {
    background: var(--bad);
}

.badge.warn {
    background: var(--warn);
}

.who {
    font-size: 14px;
    color: #444;
}

.what {
    margin-top: 2px;
    font-size: 20px;
    color: #6b7280;
    font-weight: 500;
}

.state {
    margin-top: 6px;
    font-size: 22px;
    font-weight: 600;
}

.okText {
    color: var(--ok);
}

.badText {
    color: var(--bad);
}

.warnText {
    color: var(--warn);
}

.divider {
    height: 1px;
    background: var(--line);
    margin: 14px 10px 0;
}

.bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 22px 10px 22px;
}

.h2 {
    margin: 0 0 8px;
    font-size: 34px;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.p {
    margin: 0;
    font-size: 16px;
    color: #4b5563;
    line-height: 1.5;
    max-width: 60ch;
}

.foot {
    padding: 14px 18px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    background: #f9fafb;
}

.footRow {
    display: flex;
    gap: 8px;
    align-items: center;
    color: #374151;
}

.actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.btn {
    appearance: none;
    border: 1px solid var(--line);
    background: #f6f7f9;
    color: #111;
    border-radius: 6px;
    padding: 9px 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
}

.btn:hover {
    background: #eef0f3;
}

.btn.ghost {
    background: #fff;
}

.btn.ghost:hover {
    background: #f6f7f9;
}

@media (max-width: 860px) {
    .statusGrid {
        grid-template-columns: 1fr;
    }

    .statusCol.mid::before,
    .statusCol.mid::after {
        display: none;
    }

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

    .h2 {
        font-size: 30px;
    }
}

@media (max-width: 420px) {
    .wrap {
        padding: 12px;
    }

    .head {
        padding: 18px 16px 14px;
    }

    .status {
        padding: 14px 12px 0;
    }

    .h2 {
        font-size: 26px;
    }

    .what {
        font-size: 18px;
    }

    .state {
        font-size: 20px;
    }
}