:root {
  --ink: #061922;
  --deep: #0a2d39;
  --sea: #0b6874;
  --cyan: #4bd3de;
  --mist: #effcff;
  --muted: #9dc5c9;
  --acid: #d8ff54;
  --line: rgba(239, 252, 255, .16);
  --danger: #ff7b78;
  --radius: 8px;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; min-width: 320px; background: var(--ink); color: var(--mist); font-family: "Microsoft YaHei UI", sans-serif; }
button, input { font: inherit; }
a { color: inherit; }
.skip-link { position: fixed; left: 12px; top: -48px; z-index: 20; background: var(--acid); color: var(--ink); padding: 9px 12px; }
.skip-link:focus { top: 12px; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 220px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 22px 14px; border-right: 1px solid var(--line); background: #08242e; }
.wordmark { display: flex; gap: 10px; align-items: center; margin: 0 8px 30px; text-decoration: none; font: 700 14px Bahnschrift, sans-serif; }
.wordmark span { width: 10px; height: 10px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 18px rgba(216, 255, 84, .52); }
.sidebar nav { display: grid; gap: 4px; }
.sidebar nav a { padding: 10px 12px; color: var(--muted); text-decoration: none; border-left: 2px solid transparent; }
.sidebar nav a:hover, .sidebar nav a[aria-current="page"] { color: var(--mist); background: rgba(75, 211, 222, .08); border-left-color: var(--cyan); }
.logout-form { margin-top: auto; }
.logout-form button { width: 100%; border: 1px solid var(--line); background: transparent; color: var(--muted); padding: 9px; cursor: pointer; }
.content { min-width: 0; padding: 28px clamp(16px, 4vw, 48px) 48px; }
main { max-width: 1360px; margin: 0 auto; }
.page-header { display: flex; gap: 20px; justify-content: space-between; align-items: end; margin-bottom: 22px; }
.page-header h1 { margin: 3px 0 0; font: 700 30px/1.15 Bahnschrift, "Microsoft YaHei UI", sans-serif; }
.page-header > p { margin: 0; color: var(--muted); font-size: 13px; }
.eyebrow { margin: 0; color: var(--cyan); font: 700 11px Bahnschrift, sans-serif; }
.filters { display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); gap: 10px; padding: 14px 0 20px; border-top: 1px solid var(--line); }
.filters label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; }
.filters input { width: 100%; min-height: 38px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 4px; color: var(--mist); background: var(--deep); }
.filters button, .text-action { align-self: end; min-height: 38px; padding: 9px 14px; border: 0; border-radius: 4px; background: var(--acid); color: var(--ink); font-weight: 700; text-decoration: none; cursor: pointer; }
.metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 4px 0 18px; }
.metric { min-width: 0; min-height: 112px; padding: 16px; border-top: 2px solid var(--sea); background: #0a2732; }
.metric p { margin: 0 0 18px; color: var(--muted); font-size: 12px; }
.metric strong { font: 700 30px Bahnschrift, sans-serif; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(16, 55, 66, .72); }
.trend-panel { padding: 18px; }
.panel-heading { display: flex; justify-content: space-between; align-items: start; }
.panel-heading h2, .rank-panel h2 { margin: 3px 0 0; font-size: 16px; }
.panel-heading > span { color: var(--muted); font-size: 12px; }
.trend { width: 100%; min-height: 240px; margin-top: 14px; overflow: hidden; }
.trend svg { display: block; width: 100%; height: 240px; }
.trend .grid { stroke: var(--line); stroke-width: 1; }
.trend .events { fill: rgba(75, 211, 222, .22); }
.trend .active { fill: none; stroke: var(--acid); stroke-width: 3; }
.chart-alt { color: var(--muted); font-size: 12px; }
.rank-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.rank-panel { padding: 16px; }
.rank-panel ol { margin: 14px 0 0; padding: 0; list-style: none; }
.rank-panel li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.rank-panel li span { min-width: 0; overflow-wrap: anywhere; }
.empty, .page-count { color: var(--muted); font-size: 13px; }
.table-panel { margin-top: 2px; overflow: hidden; }
.table-scroll { overflow: auto; }
table { width: 100%; min-width: 780px; border-collapse: collapse; font-size: 12px; }
th, td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { position: sticky; top: 0; background: #0b303b; color: var(--muted); font-weight: 600; }
code { font-family: Consolas, monospace; }
.extra { display: block; max-width: 320px; white-space: pre-wrap; overflow-wrap: anywhere; }
.notice { padding: 10px 12px; border-left: 3px solid var(--cyan); background: rgba(75, 211, 222, .08); }
.notice.error, .error { border-color: var(--danger); color: #ffd3d1; }
.release-layout { display: grid; grid-template-columns: minmax(300px, 460px) minmax(0, 1fr); gap: 12px; }
.release-form { display: grid; gap: 14px; padding: 18px; }
.release-form label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; }
.release-form input, .release-form textarea { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--deep); color: var(--mist); }
.release-form textarea { resize: vertical; }
.release-form .check { display: flex; align-items: center; gap: 9px; color: var(--mist); }
.release-form .check input { width: 18px; height: 18px; accent-color: var(--acid); }
.release-form progress { width: 100%; accent-color: var(--acid); }
.release-form button { min-height: 42px; border: 0; border-radius: 4px; background: var(--acid); color: var(--ink); font-weight: 700; cursor: pointer; }
.upload-status { min-height: 18px; margin: 0; color: var(--muted); font-size: 12px; }
.release-history { padding: 18px; }
.release-history h2 { margin: 0; font-size: 16px; }
.release-history ol { margin: 14px 0 0; padding: 0; list-style: none; }
.release-history li { padding: 14px 0; border-top: 1px solid var(--line); }
.release-history li > div { display: flex; justify-content: space-between; gap: 10px; }
.release-history li span, .release-history dt { color: var(--muted); font-size: 12px; }
.release-history dl { display: flex; gap: 22px; margin: 10px 0; }
.release-history dl div { display: flex; gap: 6px; }
.release-history dd { margin: 0; font-size: 12px; }
.release-history code { display: block; overflow-wrap: anywhere; color: var(--muted); font-size: 11px; }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: #08242e; }
.login-panel { width: min(390px, 100%); padding: 28px; border: 1px solid var(--line); border-top: 3px solid var(--acid); background: var(--ink); }
.login-panel h1 { margin: 7px 0 24px; font: 700 28px Bahnschrift, sans-serif; }
.login-panel label { display: grid; gap: 7px; margin-top: 13px; color: var(--muted); font-size: 13px; }
.login-panel input { padding: 10px; border: 1px solid var(--line); background: var(--deep); color: var(--mist); }
.login-panel button { width: 100%; margin-top: 22px; padding: 11px; border: 0; background: var(--acid); color: var(--ink); font-weight: 700; cursor: pointer; }
:focus-visible { outline: 3px solid var(--acid); outline-offset: 3px; }
@media (max-width: 980px) { .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); } .rank-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .release-layout { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .shell { grid-template-columns: 1fr; } .sidebar { position: static; height: auto; padding: 14px; border-right: 0; border-bottom: 1px solid var(--line); } .wordmark { margin-bottom: 12px; } .sidebar nav { grid-template-columns: repeat(4, 1fr); } .sidebar nav a { text-align: center; padding: 8px 4px; border-left: 0; border-bottom: 2px solid transparent; } .sidebar nav a[aria-current="page"] { border-bottom-color: var(--cyan); } .logout-form { display: none; } .content { padding-top: 20px; } .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } .metrics, .rank-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .page-header { align-items: start; flex-direction: column; } .filters, .metrics, .rank-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
