:root {
    --bg: #0b0f14;
    --panel: #101720;
    --panel2: #0d131b;
    --line: #263345;
    --line2: #35475d;
    --text: #edf3fb;
    --muted: #8e9bad;
    --soft: #bac6d6;
    --accent: #72c7ff;
    --radius: 6px;
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: dark;
    overflow-y: scroll;
}

body {
    margin: 0;
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background:
        radial-gradient(520px 360px at 50% 20%,
            rgba(114, 199, 255, .055),
            transparent 62%),
        linear-gradient(180deg,
            #0b0f14 0%,
            #090d12 100%);

    color: var(--text);

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.shell {
    width: min(720px, 100%);

    border: 1px solid var(--line);

    border-radius: var(--radius);

    background:
        rgba(16,
            23,
            32,
            .94);

    overflow: hidden;

    opacity: 0;

    transform:
        translateY(4px);

    transition:
        opacity .16s ease,
        transform .16s ease;
}

body.page-ready .shell {
    opacity: 1;

    transform:
        translateY(0);
}

body.page-leave .shell {
    opacity: 0;

    transform:
        translateY(4px);
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
}

.brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.brand-title {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .01em;
}

.brand-subtitle {
    color: var(--muted);
    font-size: 12px;
}

.nav {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 5px;
}

.nav a {
    padding: 7px 9px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.nav a:hover,
.nav a.active {
    color: var(--text);
    background: var(--panel2);
    border-color: var(--line2);
}

.main {
    padding: 18px;
}

.intro {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.intro-item {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #0b1119;
}

.intro-item h2 {
    margin: 0 0 8px;
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -.02em;
}

.intro-item p {
    max-width: 620px;
    margin: 0;
    color: var(--soft);
    font-size: 14px;
    line-height: 1.55;
}

.block {
    margin-top: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel2);
    overflow: hidden;
}

.block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px;
    border-bottom: 1px solid rgba(114, 199, 255, .12);
}

.block-head h2 {
    margin: 0;
    font-size: 17px;
    line-height: 1;
}

.block-head span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
}

.block-body {
    padding: 13px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.info-item {
    min-height: 74px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #0b1119;
}

.info-item span {
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 12px;
}

.info-item strong {
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.info-item a {
    color: var(--text);
}

.info-item a:hover {
    color: var(--accent);
}

.ip-item {
    position: relative;
}

.ip-item strong {
    color: var(--accent);
    cursor: pointer;
}

.ip-item small {
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--accent);
    font-size: 10px;
    opacity: .85;
}

.connection-note {
    margin: 8px 0 0;
    color: var(--soft);
    font-size: 12px;
    line-height: 1.45;
}

.home-actions {
    margin-top: 10px;
}

.btn-main {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 11px;
    border: 1px solid var(--line2);
    border-radius: var(--radius);
    background: #0b1119;
    color: var(--text);
    font-size: 13px;
    font-weight: 650;
}

.btn-main:hover {
    color: var(--accent);
    border-color: rgba(114, 199, 255, .45);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.tool {
    min-height: 96px;
    display: flex;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #0b1119;
    transition: .15s;
}

.tool:hover {
    border-color: rgba(114, 199, 255, .25);
}

.tool-code {
    min-width: 34px;
    color: var(--accent);
    font-size: 14px;
    font-weight: 700;
}

.tool strong {
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
}

.tool em {
    display: block;
    color: var(--soft);
    font-size: 12px;
    font-style: normal;
    line-height: 1.45;
}

.tool-disabled {
    opacity: .55;
    pointer-events: none;
}

.text-page p {
    margin: 0 0 12px;
    color: var(--soft);
    line-height: 1.6;
}

.text-page p:last-child {
    margin-bottom: 0;
}

.text-page a {
    color: var(--accent);
}

.footer {
    margin-top: 18px;
    padding: 14px 10px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    text-align: center;
}

.footer-note {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: .04em;
}

.tag,
.rows,
.row,
.ip-card,
.ip-label,
.ip-inline,
.tools-list {
    display: none;
}

@media (max-width: 720px) {
    body {
        align-items: flex-start;
        padding: 10px;
    }

    .shell {
        width: 100%;
    }

    .header {
        align-items: flex-start;
        flex-direction: column;
        padding: 14px;
    }

    .nav {
        justify-content: flex-start;
    }

    .main {
        padding: 14px 18px 18px;
    }

    .info-grid,
    .tools-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 470px) {

    .info-grid,
    .tools-grid {
        grid-template-columns: 1fr;
    }
}