:root {
    --bg: #0f172a;
    --card: #1e293b;
    --line: #334155;
    --text: #e2e8f0;
    --muted: #94a3b8;
    --accent: #38bdf8;
    --accent-2: #a78bfa;
    --good: #34d399;
}
* { box-sizing: border-box; }
html, body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 20px; }

.topbar {
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
    margin-bottom: 24px;
    background: rgba(15, 23, 42, 0.75);
    position: sticky; top: 0; z-index: 5;
    backdrop-filter: blur(8px);
}
.topbar .wrap {
    display: flex; align-items: baseline; gap: 24px;
    justify-content: space-between;
}
.brand { font-weight: 700; letter-spacing: 0.2px; color: var(--text); }
.nav a { margin-left: 16px; color: var(--muted); }
.nav a:hover { color: var(--accent); }

.head { margin-bottom: 24px; }
.head h1 { margin: 0 0 6px; font-size: 28px; }
.muted { color: var(--muted); }
.ext { border-bottom: 1px dotted var(--accent); }

.hero { padding: 60px 0; text-align: center; }
.hero h1 { font-size: 40px; margin-bottom: 8px; }

.stat-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}
.stat {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 14px 16px;
    text-align: center;
}
.stat .v { font-size: 24px; font-weight: 700; color: var(--accent); }
.stat .v.alt { color: var(--accent-2); }
.stat .l { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 4px; }

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}
.card h2 { margin: 0 0 16px; font-size: 18px; color: var(--text); display: flex; align-items: baseline; gap: 10px; }
.card h2 .src {
    font-size: 11px; color: var(--muted); font-weight: 400;
    text-transform: uppercase; letter-spacing: 0.5px;
    background: rgba(148, 163, 184, 0.1);
    padding: 2px 8px; border-radius: 999px;
}

.bars {
    display: flex; align-items: stretch; gap: 6px;
    height: 200px;
    padding: 12px 0 0;
    overflow-x: auto;
}
.bar {
    flex: 0 0 40px;
    display: flex; flex-direction: column; align-items: center;
    height: 100%;
}
.bar .c { font-size: 11px; color: var(--muted); margin-bottom: 4px; height: 14px; }
.bar .y { font-size: 10px; color: var(--muted); margin-top: 4px; height: 12px; }
.bar .fill-wrap {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.bar .fill {
    width: 22px;
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
    border-radius: 3px 3px 0 0;
    min-height: 2px;
    transition: opacity 0.15s;
}
.bars.alt .fill {
    background: linear-gradient(180deg, var(--accent-2) 0%, #6d28d9 100%);
}
.bar:hover .fill { opacity: 0.8; }

table.pubs { width: 100%; border-collapse: collapse; }
table.pubs th, table.pubs td {
    text-align: left;
    padding: 10px 8px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}
table.pubs th { color: var(--muted); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
table.pubs td.num, table.pubs th.num { text-align: right; }
table.pubs .venue { font-size: 12px; color: var(--muted); margin-top: 2px; }

.coauthors { margin: 12px 0; }
.chip {
    display: inline-block;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: var(--accent);
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 12px;
    margin: 2px;
}

ul.citers { list-style: none; padding: 0; margin: 0; }
ul.citers li {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}
ul.citers li:last-child { border-bottom: none; }
ul.citers .t { font-weight: 500; margin-bottom: 4px; }
ul.citers .m { font-size: 13px; color: var(--muted); }
ul.citers .badge {
    display: inline-block;
    background: rgba(167, 139, 250, 0.15);
    border: 1px solid rgba(167, 139, 250, 0.35);
    color: var(--accent-2);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    margin-left: 8px;
    vertical-align: middle;
}

.top-citer { margin-top: 12px; font-size: 14px; }

.foot {
    margin: 40px auto 20px;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

@media (max-width: 600px) {
    .stat-row { grid-template-columns: repeat(2, 1fr); }
    .head h1 { font-size: 22px; }
    table.pubs th:nth-child(2), table.pubs td:nth-child(2) { display: none; }
}
