:root {
  color-scheme: light dark;
  --bg: #fcfcfc;
  --surface: #f4f4f5;
  --ink: #18181b;
  --muted: #5d5d65;
  --line: #dedee3;
  --accent: #24533e;
  --red: #b41d33;
  --priority-row: #edf5ff;
  font: 15px/1.5 "Geist", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121214;
    --surface: #1d1d21;
    --ink: #f4f4f5;
    --muted: #aaaab3;
    --line: #303036;
    --accent: #95d6b1;
    --red: #ff8695;
    --priority-row: #17273d;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .22em; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.shell { max-width: 1120px; margin-inline: auto; padding-inline: 32px; }
.masthead { border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 59px; }
.brand { font-size: 16px; font-weight: 700; }
.site-links { display: flex; align-items: center; gap: 20px; }
.site-links a { flex: none; color: var(--muted); }
.site-links a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.status { font-size: 13px; color: var(--muted); }
.status::before { content: ''; display: inline-block; width: 7px; height: 7px; margin: 0 7px 2px 0; border-radius: 50%; background: currentColor; }
.status[data-state="live"] { color: var(--accent); }
.status[data-state="stale"] { color: var(--red); }
.navigation { display: flex; gap: 24px; overflow-x: auto; white-space: nowrap; padding-bottom: 12px; font-size: 13px; color: var(--muted); }
.navigation button { padding: 2px 0; border: 0; background: transparent; }
.navigation button:hover { text-decoration: underline; text-underline-offset: .22em; }
.section { padding-top: 36px; scroll-margin-top: 12px; }
.section + .section { margin-top: 24px; }
.title { margin: 0 0 16px; font-size: 24px; line-height: 1.25; font-weight: 700; }
h1.title { font-size: 32px; }
.columns { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr) 70px 90px 60px; gap: 14px; align-items: center; padding: 0 12px; }
.column-labels { min-height: 37px; font-size: 12px; color: var(--muted); background: var(--surface); border-block: 1px solid var(--line); }
.columns .viewers, .columns .time, .columns .action { justify-self: end; text-align: right; }
.column-labels .action { color: inherit; }
.packets { padding: 0; margin: 0; list-style: none; }
.packet { min-height: 64px; padding-block: 9px; border-bottom: 1px solid var(--line); }
.packet:hover { background: var(--surface); }
.packet.is-priority, .packet.is-priority:hover { background: var(--priority-row); }
.name, .identifiers { display: block; overflow-wrap: anywhere; }
.name { font-weight: 650; }
.identifiers { color: var(--muted); font-size: 11px; margin-top: 2px; }
.source-rule, .summary-line { display: contents; }
.source { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.source-icon { width: 21px; height: 21px; flex: 0 0 21px; object-fit: contain; }
.source-symbol { display: inline-grid; place-items: center; font-size: 15px; line-height: 1; }
.source-name { overflow-wrap: anywhere; }
.source, .rule, .prize { overflow-wrap: anywhere; }
.rule { color: var(--muted); }
.prize-total { font-size: 1.15em; }
.shares { white-space: nowrap; color: var(--muted); }
.packet .time {
  --digits-width: 27px;
  display: inline-grid;
  grid-template-columns: var(--digits-width) 12px var(--digits-width) 9px;
  align-items: baseline;
  column-gap: 1px;
  font-size: 21px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.digit { text-align: right; font-weight: 500; }
.unit { color: var(--muted); font-size: 11px; }
.unit:last-child { justify-self: end; }
.urgent, .urgent .unit { color: var(--red); }
.action { color: var(--accent); white-space: nowrap; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.filter { border: 1px solid transparent; border-radius: 3px; background: transparent; min-height: 35px; padding: 5px 10px; }
.filter { color: var(--muted); }
.filter:hover, .filter[aria-pressed="true"] { background: var(--surface); border-color: var(--line); color: var(--ink); }
.filters.has-sort { flex-wrap: nowrap; align-items: center; white-space: nowrap; }
.sort-switch { margin-inline-start: auto; min-width: 49px; min-height: 34px;
  padding: 3px 8px; border: 1px solid var(--line); border-radius: 3px; background: var(--bg); font-size: 12px; }
.sort-switch:hover, .sort-switch[aria-pressed="true"] { background: var(--priority-row); }
.scroll-marker { height: 1px; }
.packet .viewers { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.data-star { margin-inline-start: 2px; color: var(--accent); font-size: .8em; line-height: 0; vertical-align: super; }
@media (min-width: 701px) {
  .columns .viewers { justify-self: stretch; padding-inline-end: 13px; }
  .packet .viewers { position: relative; align-self: stretch; display: flex;
    align-items: center; justify-content: flex-end; }
  .packet .viewers .data-star { position: absolute; inset-inline-end: 5px;
    inset-block-start: calc(50% - 9px); margin: 0; line-height: 1;
    font-size: 9px; color: var(--muted); opacity: .76; }
}
.empty { margin: 0; border-bottom: 1px solid var(--line); padding: 16px 12px; color: var(--muted); }
.footer { margin-top: 40px; padding-bottom: 72px; color: var(--muted); font-size: 12px; }
.footer p { margin: 14px 0 0; }
#back-to-top {
  position: fixed;
  z-index: 2;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom));
  min-height: 40px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--bg);
  color: var(--ink);
  font-size: 13px;
}
#back-to-top:hover { background: var(--surface); }
@media (max-width: 700px) {
  .shell { padding-inline: 16px; }
  .navigation { flex-wrap: wrap; gap: 4px 8px; font-size: 12px; }
  .section { padding-top: 24px; }
  .section + .section { margin-top: 18px; }
  h1.title { font-size: 27px; }
  .title { font-size: 21px; }
  .column-labels, .identifiers { display: none; }
  .packets { border-top: 1px solid var(--line); }
  .packet { grid-template-columns: minmax(0, 1fr) 76px 48px; column-gap: 8px; row-gap: 2px; padding-inline: 8px; }
  .packet .streamer { grid-area: 1 / 1; min-width: 0; }
  .packet .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .packet .source-rule { display: flex; flex-wrap: wrap; column-gap: 8px; row-gap: 2px; grid-area: 2 / 1; min-width: 0; align-self: center; }
  .packet .summary-line {
    display: flex;
    grid-area: 2 / 2 / 3 / 4;
    justify-self: end;
    align-items: baseline;
    justify-content: flex-end;
    flex-wrap: wrap;
    max-width: 100%;
    gap: 8px;
    white-space: nowrap;
    color: var(--muted);
  }
  .packet .viewers { order: -1; font-size: 11px; }
  .packet .viewers::before { content: "同接 "; }
  .packet .time { --digits-width: 24px; grid-area: 1 / 2; justify-self: end; font-size: 19px; }
  .packet .prize { min-width: 0; overflow: hidden; text-overflow: ellipsis; padding-inline-start: 8px; border-inline-start: 1px solid var(--line); color: var(--ink); }
  .packet .action { grid-area: 1 / 3; font-size: 13px; min-height: 32px; display: grid; place-items: center end; }
  .source, .rule, .prize { font-size: 11px; }
  .source-icon { width: 16px; height: 16px; flex-basis: 16px; }
  .source-symbol { font-size: 12px; }
  .unit { font-size: 10px; }
  .filters { gap: 3px; }
  .filter { padding-inline: 7px; font-size: 13px; }
}
