:root {
    color-scheme: light;
    --bg: #f5f1e8;
    --panel: #fffdf8;
    --ink: #1f2933;
    --muted: #5b6670;
    --line: #d9d0c1;
    --accent: #9b3d2f;
    --highlight: #ffe08a;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left,
            rgba(166, 60, 47, 0.12),
            transparent 30%),
        linear-gradient(180deg, #efe7d6 0%, var(--bg) 100%);
}

main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px 56px;
}

h1 {
    margin: 0 0 8px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1;
    letter-spacing: -0.03em;
}

p {
    margin: 0;
    color: var(--muted);
}

a {
    color: var(--accent);
}

.panel {
    margin-top: 28px;
    padding: 20px;
    background: rgba(255, 253, 248, 0.92);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(31, 41, 51, 0.08);
    backdrop-filter: blur(10px);
}

.page-top {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
}

.lang-switch {
    display: inline-flex;
    gap: 6px;
    padding: 6px;
    background: rgba(255, 253, 248, 0.92);
    border: 1px solid var(--line);
    border-radius: 999px;
}

.lang-switch a {
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--muted);
    text-decoration: none;
}

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

.noscript-note {
    margin-bottom: 20px;
    padding: 14px 16px;
    background: #fff7eb;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--muted);
}

.toolbar {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.search {
    width: min(420px, 100%);
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

.count {
    font-size: 0.95rem;
    color: var(--muted);
}

.status {
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 0.95rem;
}

footer {
    margin-top: 18px;
    color: var(--muted);
}

footer small {
    display: inline-block;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--panel);
    overflow: hidden;
    border-radius: 14px;
}

th,
td {
    padding: 14px 16px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--line);
}

th {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

tbody tr:last-child td {
    border-bottom: 0;
}

.name {
    width: 28%;
    font-weight: 700;
}

.raw {
    color: var(--muted);
    line-height: 1.5;
}

.search-meta {
    display: none;
}

mark {
    background: var(--highlight);
    padding: 0 0.1em;
    border-radius: 0.2em;
}

@media (max-width: 720px) {
    .page-top {
        flex-direction: column;
    }

    th:nth-child(2),
    td:nth-child(2) {
        display: none;
    }

    .name {
        width: auto;
    }
}
.page-top>div:last-child {
    display: flex;
    align-items: center;
    gap: 12px;
}

.github-link {
    display: flex;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.github-link:hover {
    opacity: 1;
}

.github-link img {
    display: block;
}