:root {
    --sh-blue: #3545b0;
    --sh-blue-light: #8796ff;
    --sh-green: #50c995;
    --sh-yellow: #e5bd3c;
    --sh-info: #84939e;
}

body.sh-page {
    min-height: 100vh;
    display: block;
    padding: 0;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(53, 69, 176, .16),
            transparent 30%
        ),
        linear-gradient(
            180deg,
            #080b0f 0%,
            #05070a 100%
        );
}

.sh-shell {
    width: min(calc(100% - 40px), 1120px);
    margin: 0 auto;
    padding: 34px 0 64px;
}

.sh-nav {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 76px;
}

.sh-back {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    text-decoration: none;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.sh-nav-meta {
    color: #5f6e79;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.sh-header {
    max-width: 940px;
    margin-bottom: 56px;
}

.sh-header h1 {
    margin-top: 20px;
    font-size: clamp(64px, 10vw, 124px);
    line-height: .82;
    letter-spacing: -.06em;
}

.sh-tagline {
    margin: 31px 0 0;
    color: var(--text);
    font-size: clamp(21px, 2.5vw, 29px);
    line-height: 1.35;
    font-weight: 620;
}

.sh-intro {
    max-width: 800px;
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
}

.sh-checker,
.sh-result {
    overflow: hidden;
    background: rgba(12, 18, 24, .80);
    border: 1px solid var(--border);
    border-radius: 18px;
}

.sh-checker {
    padding: 28px 30px 30px;
}

.sh-checker-head,
.sh-summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
}

.sh-kicker {
    color: var(--sh-blue-light);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .17em;
}

.sh-checker h2,
.sh-summary h2 {
    margin: 9px 0 0;
    color: var(--text);
    font-size: 28px;
    line-height: 1.1;
}

.sh-mode {
    padding: 7px 10px;
    color: #8796ff;
    background: rgba(53, 69, 176, .08);
    border: 1px solid rgba(53, 69, 176, .42);
    border-radius: 999px;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .12em;
}

.sh-form {
    margin-top: 28px;
}

.sh-label {
    display: block;
    margin-bottom: 9px;
    color: #8a98a3;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.sh-input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.sh-input-row input {
    min-width: 0;
    height: 54px;
    padding: 0 17px;
    color: var(--text);
    background: #080d12;
    border: 1px solid #26313a;
    border-radius: 9px;
    outline: none;
    font: inherit;
    font-size: 16px;
}

.sh-input-row input:focus {
    border-color: var(--sh-blue);
    box-shadow: 0 0 0 3px rgba(53, 69, 176, .12);
}

.sh-input-row button {
    height: 54px;
    padding: 0 21px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #fff;
    background: var(--sh-blue);
    border: 0;
    border-radius: 9px;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.sh-hint {
    margin: 10px 0 0;
    color: #596873;
    font-size: 11px;
}

.sh-loading,
.sh-error {
    margin-top: 18px;
    padding: 15px 18px;
    border-radius: 10px;
    font-size: 13px;
}

.sh-loading {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #8c9aa5;
    background: rgba(53, 69, 176, .07);
    border: 1px solid rgba(53, 69, 176, .26);
}

.sh-spinner {
    width: 13px;
    height: 13px;
    border: 2px solid rgba(116, 131, 225, .25);
    border-top-color: #7483e1;
    border-radius: 50%;
    animation: sh-spin .8s linear infinite;
}

.sh-error {
    color: #ff9ba5;
    background: rgba(239, 98, 112, .07);
    border: 1px solid rgba(239, 98, 112, .28);
}

@keyframes sh-spin {
    to { transform: rotate(360deg); }
}

.sh-result {
    margin-top: 24px;
}

.sh-summary {
    padding: 27px 30px;
    border-bottom: 1px solid var(--border);
}

.sh-summary p {
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.sh-summary-stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.sh-summary-stats span {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    color: #7e8d98;
    background: rgba(255,255,255,.02);
    border: 1px solid #26313a;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
}

.sh-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: 1px solid var(--border);
}

.sh-card {
    min-height: 220px;
    padding: 22px 20px;
    border-right: 1px solid rgba(255,255,255,.055);
    border-bottom: 1px solid rgba(255,255,255,.055);
}

.sh-card:nth-child(3n) {
    border-right: 0;
}

.sh-card-head {
    display: grid;
    grid-template-columns: auto minmax(0,1fr);
    gap: 7px 9px;
    align-items: center;
}

.sh-card-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #798791;
}

.sh-card-name {
    color: var(--text);
    font-size: 14px;
    font-weight: 720;
}

.sh-card-state {
    grid-column: 2;
    color: var(--sh-info);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .10em;
}

.sh-card[data-status="good"] .sh-card-dot {
    background: var(--sh-green);
    box-shadow: 0 0 12px rgba(80,201,149,.45);
}

.sh-card[data-status="good"] .sh-card-state {
    color: var(--sh-green);
}

.sh-card[data-status="warn"] .sh-card-dot {
    background: var(--sh-yellow);
    box-shadow: 0 0 12px rgba(229,189,60,.40);
}

.sh-card[data-status="warn"] .sh-card-state {
    color: var(--sh-yellow);
}

.sh-card > p {
    margin: 15px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.sh-card-value {
    display: block;
    max-height: 70px;
    overflow: auto;
    margin-top: 12px;
    padding: 9px 10px;
    color: #aeb9c2;
    background: #080d12;
    border: 1px solid #1e282f;
    border-radius: 7px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: 10px;
}

.sh-card-help {
    margin-top: 13px;
}

.sh-card-help summary {
    color: #75838d;
    cursor: pointer;
    font-size: 10px;
    font-weight: 750;
}

.sh-card-help p {
    color: #87949e;
    font-size: 11px;
    line-height: 1.55;
}

.sh-response {
    padding: 25px 30px 0;
}

.sh-response-head h3 {
    margin: 8px 0 16px;
    font-size: 18px;
}

.sh-response-data {
    overflow: hidden;
    border: 1px solid #202a32;
    border-radius: 10px;
}

.sh-response-row {
    display: grid;
    grid-template-columns: 180px minmax(0,1fr);
    gap: 18px;
    padding: 11px 13px;
    border-bottom: 1px solid rgba(255,255,255,.05);
    color: #768590;
    font-size: 11px;
}

.sh-response-row:last-child {
    border-bottom: 0;
}

.sh-response-row code {
    color: #b9c4cc;
    background: transparent;
    overflow-wrap: anywhere;
}

.sh-explainer {
    margin: 24px 30px 30px;
    padding: 18px 20px;
    background:
        linear-gradient(
            100deg,
            rgba(53,69,176,.13),
            rgba(53,69,176,.035)
        );
    border: 1px solid rgba(53,69,176,.28);
    border-radius: 10px;
}

.sh-explainer-label {
    display: block;
    margin-bottom: 10px;
    color: #8796ff;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .15em;
}

.sh-explainer p {
    margin: 0 0 10px;
    color: #9aa7b1;
    font-size: 12px;
    line-height: 1.65;
}

.sh-explainer p:last-child {
    margin-bottom: 0;
}

.sh-explainer strong {
    color: #e7ebef;
}

.sh-explainer code {
    color: #b9c4cc;
}

.sh-footer {
    margin-top: 26px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #61707b;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .10em;
}

.sh-footer-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--sh-blue);
    box-shadow: 0 0 11px rgba(53,69,176,.9);
}

@media (max-width: 900px) {
    .sh-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sh-card:nth-child(3n) {
        border-right: 1px solid rgba(255,255,255,.055);
    }

    .sh-card:nth-child(2n) {
        border-right: 0;
    }
}

@media (max-width: 620px) {
    .sh-shell {
        width: min(calc(100% - 28px), 1120px);
        padding-top: 24px;
    }

    .sh-nav {
        margin-bottom: 52px;
    }

    .sh-nav-meta {
        display: none;
    }

    .sh-checker-head,
    .sh-summary {
        flex-direction: column;
    }

    .sh-input-row {
        grid-template-columns: 1fr;
    }

    .sh-cards {
        grid-template-columns: 1fr;
    }

    .sh-card,
    .sh-card:nth-child(2n),
    .sh-card:nth-child(3n) {
        border-right: 0;
    }

    .sh-response-row {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sh-spinner {
        animation: none;
    }
}
