:root {
    --ipr-blue: #3545b0;
    --ipr-blue-light: #8796ff;
    --ipr-green: #50c995;
    --ipr-yellow: #e5bd3c;
}

body.ipr-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%
        );
}

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

.ipr-nav {
    min-height: 38px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 76px;
}

.ipr-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;
}

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

.ipr-header {
    max-width: 920px;
    margin-bottom: 56px;
}

.ipr-header h1 {
    margin-top: 20px;
    font-size: clamp(62px, 9.5vw, 118px);
    line-height: .84;
    letter-spacing: -.06em;
}

.ipr-tagline {
    margin: 31px 0 0;

    color: var(--text);

    font-size: clamp(21px, 2.5vw, 29px);
    line-height: 1.35;
    font-weight: 620;
}

.ipr-intro {
    max-width: 780px;
    margin: 12px 0 0;

    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
}


/* Checker ------------------------------------------------------------ */

.ipr-checker,
.ipr-result {
    overflow: hidden;

    background: rgba(12, 18, 24, .80);
    border: 1px solid var(--border);
    border-radius: 18px;
}

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

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

.ipr-kicker {
    color: var(--ipr-blue-light);

    font-size: 10px;
    font-weight: 850;
    letter-spacing: .17em;
}

.ipr-checker h2,
.ipr-summary h2 {
    margin: 9px 0 0;

    color: var(--text);
    font-size: 28px;
    line-height: 1.1;
}

.ipr-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;
}

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

.ipr-label {
    display: block;
    margin-bottom: 9px;

    color: #8a98a3;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

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

.ipr-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;
}

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

.ipr-input-row button {
    height: 54px;

    padding: 0 21px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;

    color: #fff;
    background: var(--ipr-blue);

    border: 0;
    border-radius: 9px;

    cursor: pointer;

    font: inherit;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ipr-hint {
    margin: 10px 0 0;

    color: #596873;
    font-size: 11px;
}


/* Loading / error ---------------------------------------------------- */

.ipr-loading,
.ipr-error {
    margin-top: 18px;
    padding: 15px 18px;

    border-radius: 10px;

    font-size: 13px;
}

.ipr-loading {
    display: flex;
    align-items: center;
    gap: 11px;

    color: #8c9aa5;
    background: rgba(53, 69, 176, .07);
    border: 1px solid rgba(53, 69, 176, .26);
}

.ipr-spinner {
    width: 13px;
    height: 13px;

    border: 2px solid rgba(116, 131, 225, .25);
    border-top-color: #7483e1;
    border-radius: 50%;

    animation: ipr-spin .8s linear infinite;
}

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

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


/* Result ------------------------------------------------------------- */

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

.ipr-summary {
    padding: 27px 30px;

    border-bottom: 1px solid var(--border);
}

.ipr-summary p {
    margin: 9px 0 0;

    color: var(--muted);
    font-size: 13px;
}

.ipr-summary-meta {
    display: flex;
    gap: 10px;
}

.ipr-summary-meta 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;
}

.ipr-cards {
    display: grid;
}

.ipr-card {
    padding: 26px 30px;

    border-bottom: 1px solid rgba(255,255,255,.055);
}

.ipr-card:last-child {
    border-bottom: 0;
}

.ipr-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 18px;
}

.ipr-version {
    color: #8796ff;

    font-size: 9px;
    font-weight: 850;
    letter-spacing: .13em;
}

.ipr-card h3 {
    margin: 6px 0 0;

    color: var(--text);

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;

    font-size: 16px;
    overflow-wrap: anywhere;
}

.ipr-status {
    padding: 6px 9px;

    color: #75838d;
    background: rgba(255,255,255,.02);

    border: 1px solid #29343c;
    border-radius: 999px;

    font-size: 9px;
    font-weight: 850;
    letter-spacing: .09em;
}

.ipr-status[data-status="good"] {
    color: var(--ipr-green);
    border-color: rgba(80,201,149,.35);
}

.ipr-status[data-status="warn"] {
    color: var(--ipr-yellow);
    border-color: rgba(229,189,60,.35);
}

.ipr-ptr {
    padding: 15px 17px;

    background: #0a1015;

    border: 1px solid #202a32;
    border-radius: 10px;
}

.ipr-ptr + .ipr-ptr {
    margin-top: 9px;
}

.ipr-ptr-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.ipr-ptr-top code,
.ipr-ptr-meta code {
    color: #bcc6ce;
    background: transparent;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;

    font-size: 11px;
    overflow-wrap: anywhere;
}

.ipr-confirm {
    flex: 0 0 auto;

    color: var(--ipr-yellow);

    font-size: 9px;
    font-weight: 850;
    letter-spacing: .08em;
}

.ipr-confirm[data-ok="1"] {
    color: var(--ipr-green);
}

.ipr-ptr-meta {
    margin-top: 10px;

    display: grid;
    gap: 6px;

    color: #6f7e89;
    font-size: 11px;
}

.ipr-ptr-empty {
    padding: 15px 17px;

    color: #77858f;
    background: #0a1015;

    border: 1px solid #202a32;
    border-radius: 10px;

    font-size: 12px;
}


/* Explainer ---------------------------------------------------------- */

.ipr-explainer {
    margin: 0 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;
}

.ipr-explainer-label {
    display: block;
    margin-bottom: 10px;

    color: #8796ff;

    font-size: 9px;
    font-weight: 850;
    letter-spacing: .15em;
}

.ipr-explainer p {
    margin: 0 0 10px;

    color: #9aa7b1;

    font-size: 12px;
    line-height: 1.65;
}

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

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

.ipr-explainer code {
    color: #b9c4cc;
    background: rgba(255,255,255,.025);
    padding: 2px 5px;
    border-radius: 4px;
}


/* Footer ------------------------------------------------------------- */

.ipr-footer {
    margin-top: 26px;

    display: flex;
    align-items: center;
    gap: 9px;

    color: #61707b;

    font-size: 10px;
    font-weight: 750;
    letter-spacing: .10em;
}

.ipr-footer-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;
    background: var(--ipr-blue);

    box-shadow: 0 0 11px rgba(53, 69, 176, .9);
}


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

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

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

    .ipr-checker-head,
    .ipr-summary,
    .ipr-card-head,
    .ipr-ptr-top {
        flex-direction: column;
    }

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

    .ipr-summary-meta {
        flex-wrap: wrap;
    }

    .ipr-explainer {
        margin-left: 20px;
        margin-right: 20px;
    }
}

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