:root {
    color-scheme: light;
    --bg: #f6f9fc;
    --panel: #ffffff;
    --ink: #0a2540;
    --muted: #425466;
    --line: #d8e0ec;
    --line-strong: #c4cfdd;
    --accent: #635bff;
    --accent-dark: #4f46e5;
    --cyan: #00d4ff;
    --green: #00a88e;
    --soft: #eef4ff;
    --shadow: 0 24px 60px rgba(50, 50, 93, 0.12), 0 8px 24px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    position: relative;
    margin: 0;
    min-height: 100vh;
    background:
        linear-gradient(180deg, rgba(246, 249, 252, 0) 0, #fff 520px),
        linear-gradient(90deg, rgba(99, 91, 255, 0.08) 1px, transparent 1px),
        linear-gradient(180deg, rgba(99, 91, 255, 0.08) 1px, transparent 1px),
        var(--bg);
    background-size: auto, 72px 72px, 72px 72px, auto;
    color: var(--ink);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
    position: fixed;
    inset: 0 0 auto;
    z-index: -1;
    height: 270px;
    background: linear-gradient(112deg, #0a2540 0%, #635bff 45%, #00d4ff 72%, #00a88e 100%);
    clip-path: polygon(0 0, 100% 0, 100% 58%, 0 100%);
    content: "";
}

.shell {
    width: min(1040px, calc(100% - 32px));
    margin: 0 auto;
    padding: 64px 0;
}

.lookup-panel {
    padding: 0;
}

.eyebrow {
    margin: 0 0 10px;
    color: #c9f6ff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 720px;
    margin-bottom: 26px;
    color: #fff;
    font-size: 48px;
    line-height: 1.02;
    letter-spacing: 0;
}

.topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.language-switch {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(10, 37, 64, 0.12);
    overflow: hidden;
    flex: 0 0 auto;
    backdrop-filter: blur(14px);
}

.language-switch a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    color: rgba(255, 255, 255, 0.82);
    padding: 0 14px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.language-switch a.active {
    background: #fff;
    color: var(--ink);
}

.search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 8px;
}

input,
button {
    min-height: 52px;
    border-radius: 6px;
    font: inherit;
}

input {
    width: 100%;
    background: #f7fafd;
    border: 1px solid transparent;
    padding: 0 16px;
    color: var(--ink);
    font-weight: 600;
}

input:focus {
    border-color: var(--accent);
    background: #fff;
    outline: 3px solid rgba(99, 91, 255, 0.16);
}

button {
    border: 0;
    background: var(--ink);
    color: #fff;
    padding: 0 24px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(10, 37, 64, 0.18);
}

button:hover {
    background: #1d3b59;
}

.result {
    margin-top: 22px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(50, 50, 93, 0.1), 0 8px 18px rgba(0, 0, 0, 0.06);
    padding: 22px;
}

.result-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.type,
.count,
li span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    border-radius: 999px;
    background: #edf3ff;
    color: var(--accent-dark);
    padding: 0 10px;
    font-size: 12px;
    font-weight: 700;
}

.count {
    background: #e8fbf7;
    color: #087766;
}

h2 {
    margin: 10px 0 0;
    color: var(--ink);
    font-size: 28px;
    word-break: break-word;
}

.empty {
    margin-bottom: 0;
    color: var(--muted);
}

.versions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: -2px 0 18px;
}

.versions a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--muted);
    padding: 0 10px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.versions a:hover {
    border-color: var(--line-strong);
    color: var(--ink);
}

.match-list {
    display: grid;
    gap: 12px;
}

.section-title {
    margin: 22px 0 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.match-card {
    background:
        linear-gradient(180deg, #fff, #fbfdff);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px 18px;
    box-shadow: 0 10px 24px rgba(50, 50, 93, 0.06);
}

.match-card h3 {
    margin-bottom: 12px;
    color: var(--ink);
    font-size: 16px;
}

ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
    word-break: break-word;
}

li em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    margin-left: auto;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 22px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.site-footer a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--accent-dark);
    font-weight: 800;
    text-decoration: none;
}

.github-mark {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    fill: currentColor;
}

.site-footer a:hover {
    color: var(--ink);
    text-decoration: underline;
}

@media (max-width: 640px) {
    .shell {
        width: min(100% - 20px, 920px);
        padding: 24px 0;
    }

    body::before {
        height: 330px;
    }

    .topbar {
        display: grid;
    }

    h1 {
        font-size: 36px;
    }

    .search-form {
        grid-template-columns: 1fr;
    }

    .result-head {
        display: grid;
    }

    li {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    li em {
        margin-left: 0;
    }
}
