@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Noto Sans SC (OFL), subset to the static heading glyphs by tools/subset_display_font.py */
@font-face {
  font-family: "CSR Display";
  src: url("fonts/csr-display-sc.woff2") format("woff2");
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
}

/* Conference labels only. Archivo's own ampersand is a cursive et-ligature and
   looks uneven beside its geometric S and P. This face supplies U+0026 only
   (Inter subset, renamed CSR Ampersand; see fonts/CSR-Ampersand-OFL.txt).
   S and P stay in Archivo. Paper, author, and institution text are not listed. */
@font-face {
  font-family: "CSR Ampersand";
  src: url("fonts/csr-ampersand-400.woff2?v=f4555e3ba3") format("woff2");
  font-weight: 100 474;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0026;
  size-adjust: 94.3%;
}

@font-face {
  font-family: "CSR Ampersand";
  src: url("fonts/csr-ampersand-500.woff2?v=45446fa80b") format("woff2");
  font-weight: 475 574;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0026;
  size-adjust: 94.3%;
}

@font-face {
  font-family: "CSR Ampersand";
  src: url("fonts/csr-ampersand-600.woff2?v=a603062442") format("woff2");
  font-weight: 575 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0026;
  size-adjust: 94.3%;
}


:root {
  --font-ui: "Archivo", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Archivo", "CSR Display", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;

  --bg: #f3f6fb;
  --hero-top: #f9fbff;
  --hero-bottom: #eaf0fb;
  --surface: #ffffff;
  --surface-2: #f6f8fc;
  --surface-3: #edf1f8;
  --line: #e4e9f2;
  --line-2: #d4dbe8;
  --text: #0e1a33;
  --text-2: #45536e;
  --text-3: #5d6a83;

  --accent: #2456e6;
  --accent-hover: #1a45c7;
  --accent-fill: #2456e6;
  --accent-ink: #1c47c8;
  --accent-soft: #ebf1ff;
  --accent-soft-2: #d7e2ff;
  --on-accent: #ffffff;
  --mark-c: #7ea4ff;
  --mark-s: #2456e6;

  --gold-bg: #fff3d1;
  --gold-ring: #eebc45;
  --gold-ink: #7f5300;
  --silver-bg: #eef1f6;
  --silver-ring: #bfc8d6;
  --silver-ink: #4a5669;
  --bronze-bg: #fbe9dc;
  --bronze-ring: #dea079;
  --bronze-ink: #874316;

  --t-uni: #2456e6;
  --t-inst: #0b8f84;
  --t-corp: #c26a00;
  --t-other: #66758d;
  --t-person: #5b4fd6;

  --v-SP: #7a5ae0;
  --v-USENIX: #e0603f;
  --v-CCS: #c94a86;
  --v-NDSS: #6f9a16;
  --v-CRYPTO: #12a083;
  --v-EUROCRYPT: #d08a16;
  --v-ASIACRYPT: #1a8fb8;

  --cmp-0: #2456e6;
  --cmp-1: #e8770e;
  --cmp-2: #0c9f6e;
  --cmp-3: #a43fc4;

  --globe-dot: #2456e6;
  --globe-node: #2456e6;
  --globe-hot: #0f2f9e;
  --globe-ring: #ffffff;
  --globe-glow: rgba(36, 86, 230, 0.10);
  --globe-body-hi: rgba(255, 255, 255, 0.9);
  --globe-body-lo: rgba(219, 229, 252, 0.55);
  --globe-rim: rgba(36, 86, 230, 0.16);

  --panel-border: transparent;
  --shadow-1: 0 1px 2px rgba(14, 30, 72, 0.05), 0 6px 18px -8px rgba(14, 30, 72, 0.10);
  --shadow-2: 0 2px 6px rgba(14, 30, 72, 0.06), 0 18px 44px -14px rgba(14, 30, 72, 0.22);
  --shadow-tab: 0 6px 14px -6px rgba(36, 86, 230, 0.55);
  --shadow-xs: 0 1px 2px rgba(14, 30, 72, 0.08), 0 2px 6px -2px rgba(14, 30, 72, 0.14);
  --shadow-thumb: 0 1px 3px rgba(14, 30, 72, 0.22);
  --focus: 0 0 0 3px rgba(36, 86, 230, 0.24);

  --radius-panel: 16px;
  --radius-control: 10px;
  --gutter: 32px;
  --header-h: 64px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0a101d;
  --hero-top: #0d1527;
  --hero-bottom: #0a101d;
  --surface: #111a2d;
  --surface-2: #0e1627;
  --surface-3: #18223a;
  --line: #1f2a44;
  --line-2: #2b3858;
  --text: #e8eefc;
  --text-2: #aab6cf;
  --text-3: #8592ae;

  --accent: #7397ff;
  --accent-hover: #93afff;
  --accent-fill: #3462ea;
  --accent-ink: #a9c0ff;
  --accent-soft: rgba(103, 143, 255, 0.13);
  --accent-soft-2: rgba(103, 143, 255, 0.26);
  --mark-c: #a3bdff;
  --mark-s: #5f8bff;

  --gold-bg: rgba(238, 188, 69, 0.16);
  --gold-ring: rgba(238, 188, 69, 0.55);
  --gold-ink: #f3cd6d;
  --silver-bg: rgba(191, 200, 214, 0.13);
  --silver-ring: rgba(191, 200, 214, 0.45);
  --silver-ink: #cfd7e4;
  --bronze-bg: rgba(222, 160, 121, 0.15);
  --bronze-ring: rgba(222, 160, 121, 0.5);
  --bronze-ink: #f0b48c;

  --t-uni: #7397ff;
  --t-inst: #35c2b3;
  --t-corp: #f0a23a;
  --t-other: #9aa8c0;
  --t-person: #a094ff;

  --v-SP: #9d83ff;
  --v-USENIX: #ff8462;
  --v-CCS: #ec74a9;
  --v-NDSS: #a3c23a;
  --v-CRYPTO: #2fc29f;
  --v-EUROCRYPT: #eab046;
  --v-ASIACRYPT: #3fb0d8;

  --cmp-0: #7397ff;
  --cmp-1: #ff9a3d;
  --cmp-2: #33c98f;
  --cmp-3: #d17bf0;

  --globe-dot: #7d9fff;
  --globe-node: #7397ff;
  --globe-hot: #c8d7ff;
  --globe-ring: #111a2d;
  --globe-glow: rgba(103, 143, 255, 0.12);
  --globe-body-hi: rgba(40, 60, 110, 0.55);
  --globe-body-lo: rgba(14, 22, 40, 0.35);
  --globe-rim: rgba(125, 159, 255, 0.22);

  --panel-border: var(--line);
  --shadow-1: none;
  --shadow-2: 0 2px 8px rgba(0, 0, 0, 0.3), 0 22px 48px -16px rgba(0, 0, 0, 0.6);
  --shadow-tab: 0 6px 16px -6px rgba(0, 0, 0, 0.6);
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.45);
  --shadow-thumb: 0 1px 3px rgba(0, 0, 0, 0.5);
  --focus: 0 0 0 3px rgba(115, 151, 255, 0.32);

  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--line-2) var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  caret-color: var(--accent);
}

::selection {
  background: var(--accent-soft-2);
  color: var(--text);
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.num,
.stat-value,
.count-num,
.rank,
.block-value,
.pager button,
.vcount,
.year-scale,
.tray-count {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--accent-fill);
  color: var(--on-accent);
  text-decoration: none;
  transition: top 0.2s var(--ease-out);
}

.skip-link:focus {
  top: 12px;
}

.shell {
  width: min(100% - 2 * var(--gutter), 1360px);
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 18px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
}

.brand-mark {
  width: 36px;
  height: 26px;
  flex: none;
}

.brand-mark path {
  fill: none;
  stroke-width: 5.2;
  stroke-linejoin: miter;
}

.mark-c {
  stroke: var(--mark-c);
}

.mark-s {
  stroke: var(--mark-s);
}

.brand-word {
  font-size: 21px;
  font-weight: 780;
  font-stretch: 112%;
  letter-spacing: -0.02em;
}

.header-divider {
  width: 1px;
  height: 20px;
  background: var(--line-2);
  flex: none;
}

.main-nav {
  display: flex;
  align-self: stretch;
  gap: 2px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}

.nav-link:hover {
  color: var(--text);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.22s var(--ease-out);
}

.nav-link.is-active {
  color: var(--accent);
  font-weight: 600;
}

.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-link:focus-visible {
  outline-offset: -6px;
  border-radius: 10px;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--text-2);
  transition: background 0.15s, color 0.15s;
}

.icon-btn:hover {
  background: var(--surface-3);
  color: var(--text);
}

.icon-btn .icon {
  width: 19px;
  height: 19px;
}

#theme-toggle .icon-sun,
[data-theme="dark"] #theme-toggle .icon-moon {
  display: none;
}

[data-theme="dark"] #theme-toggle .icon-sun {
  display: block;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  padding: 0 4px;
  color: var(--text-3);
  font-size: 14px;
}

.lang-switch button {
  padding: 6px 6px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-3);
  font-weight: 500;
  transition: color 0.15s, background 0.15s;
}

.lang-switch button:hover {
  color: var(--text);
}

.lang-switch button[aria-pressed="true"] {
  color: var(--accent);
  font-weight: 650;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--hero-top) 0%, var(--hero-bottom) 72%, var(--bg) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
  opacity: 0.6;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 600px);
  align-items: center;
  gap: 24px;
  min-height: 360px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-block: 44px 40px;
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: 0.01em;
  color: var(--text);
  text-wrap: balance;
}

:lang(en) .hero-title {
  font-size: 44px;
  font-weight: 760;
  font-stretch: 104%;
  letter-spacing: -0.025em;
}

.hero-lede {
  max-width: 34em;
  margin: 14px 0 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-2);
  text-wrap: pretty;
}


.venue-key,
.chip-label,
.legend,
.insight-line,
.chart-tip,
.chart-foot,
.method-row dd,
.venue-rows,
.paper-filter,
.vtag,
.cmp-table tbody th {
  font-family: "CSR Ampersand", var(--font-ui);
}

.venue-key {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--text-2);
}

.venue-key li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.venue-key i,
.legend i,
.sw {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 2.5px;
  background: var(--c);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  line-height: 15px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--text-2);
  font-size: 13px;
  white-space: nowrap;
}

.tag .icon {
  width: 15px;
  height: 15px;
}

.tag-brand {
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent-soft-2);
  color: var(--accent-ink);
  font-weight: 600;
}

.hero-updated {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-left: 4px;
  color: var(--text-3);
  font-size: 13px;
}

.fresh-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1f9d68;
}

.hero-visual {
  position: relative;
  align-self: stretch;
  min-height: 360px;
  margin: 0;
}

.hero-visual::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 520px;
  height: 520px;
  transform: translate(-50%, -48%);
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--globe-glow), transparent 72%);
  pointer-events: none;
}

.globe-canvas {
  position: absolute;
  left: -40px;
  right: -60px;
  top: -12px;
  bottom: -12px;
  width: calc(100% + 100px);
  height: calc(100% + 24px);
  cursor: grab;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
}

.globe-canvas.is-dragging {
  cursor: grabbing;
}

.globe-canvas.is-pointing {
  cursor: pointer;
}

.globe-label {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 9px;
  border-radius: 11px;
  background: var(--surface);
  box-shadow: var(--shadow-2);
  pointer-events: none;
  white-space: nowrap;
  opacity: 0;
  transform: translate3d(var(--x, 0), var(--y, 0), 0);
  transition: opacity 0.2s;
  will-change: transform;
}

[data-theme="dark"] .globe-label {
  box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line-2);
}

.globe-label.is-visible {
  opacity: 1;
}

.globe-label-logo {
  width: 34px;
  height: 34px;
  flex: none;
  padding: 2px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px var(--line);
  object-fit: contain;
}

.globe-label-logo[hidden] {
  display: none;
}

.globe-label-text {
  display: grid;
  gap: 1px;
}

.globe-label-name {
  font-size: 14px;
  font-weight: 650;
  color: var(--text);
}

.globe-label-meta {
  font-size: 12px;
  color: var(--text-3);
}

.globe-caption {
  position: absolute;
  left: calc(50% + 10px);
  bottom: 6px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: max-content;
  max-width: 100%;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-3);
  text-align: center;
  transform: translateX(-50%);
  pointer-events: none;
}

.globe-legend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
}

.lg-node {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--globe-node);
  box-shadow: 0 0 0 2px var(--globe-ring);
}

.lg-link {
  width: 18px;
  height: 0;
  border-top: 1.5px solid var(--globe-node);
  opacity: 0.55;
}

/* Workspace */

.workspace {
  position: relative;
  z-index: 3;
  margin-top: -6px;
}

.view-tabs {
  position: relative;
  display: inline-grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  gap: 4px;
  margin-bottom: 18px;
  padding: 5px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-1), inset 0 0 0 1px var(--panel-border);
}

.tab-ink {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 0;
  width: var(--ink-w, 0);
  border-radius: 12px;
  background: var(--accent-fill);
  box-shadow: var(--shadow-tab);
  transform: translateX(var(--ink-x, 0));
  transition: transform 0.32s var(--ease-out);
}

.view-tabs.no-anim .tab-ink {
  transition: none;
}

.view-tabs [role="tab"] {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text-2);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 650;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

.view-tabs [role="tab"]:hover {
  color: var(--text);
}

.view-tabs [role="tab"][aria-selected="false"]:hover {
  background: var(--surface-2);
}

.view-tabs [role="tab"][aria-selected="true"] {
  color: var(--on-accent);
}

.view-tabs [role="tab"] .icon {
  width: 19px;
  height: 19px;
}

.workspace-grid {
  display: grid;
  grid-template-columns: 284px minmax(0, 1fr);
  align-items: start;
  gap: 20px;
}

.panel {
  position: relative;
  border-radius: var(--radius-panel);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  border: 1px solid var(--panel-border);
}

/* Filters */

.filters {
  position: sticky;
  top: calc(var(--header-h) + 18px);
  padding: 20px;
}

.filters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.filters-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
}

.filters-title .icon {
  color: var(--accent);
}

.filters-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 6px 8px 6px 10px;
  border: 0;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 13px;
}

.filters-toggle span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filters-toggle .icon {
  width: 16px;
  height: 16px;
  transition: transform 0.2s var(--ease-out);
}

.filters-toggle[aria-expanded="true"] .icon {
  transform: rotate(180deg);
}

.filters-body {
  display: grid;
  gap: 24px;
  margin-top: 20px;
}

.block-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.block-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.block-head h3 label {
  cursor: pointer;
}

.block-head .icon {
  width: 16px;
  height: 16px;
  color: var(--text-3);
}

.block-value {
  margin-left: auto;
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 650;
}

.year-picker {
  --bar-gap: 6px;
  --bar-w: calc((100% - 6 * var(--bar-gap)) / 7);
}

.year-hist {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: end;
  gap: var(--bar-gap);
  height: 52px;
}

.year-bar {
  display: flex;
  align-items: flex-end;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
}

.year-bar span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 4px 4px 2px 2px;
  background: var(--accent-soft-2);
  transform: scaleY(var(--s, 0.06));
  transform-origin: bottom;
  transition: background 0.18s, transform 0.35s var(--ease-out);
}

.year-bar.is-in span {
  background: var(--accent);
}

.year-bar:hover span {
  background: var(--accent-hover);
}

.year-bar.is-in:hover span {
  background: var(--accent-hover);
}

.range {
  position: relative;
  height: 24px;
  margin-top: 4px;
}

.range-track {
  position: absolute;
  left: calc(var(--bar-w) / 2);
  right: calc(var(--bar-w) / 2);
  top: 50%;
  height: 4px;
  margin-top: -2px;
  border-radius: 2px;
  background: var(--surface-3);
}

.range-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--from, 0%);
  right: calc(100% - var(--to, 100%));
  border-radius: 2px;
  background: var(--accent);
}

.range input[type="range"] {
  position: absolute;
  top: 0;
  left: calc(var(--bar-w) / 2 - 9px);
  width: calc(100% - var(--bar-w) + 18px);
  height: 24px;
  margin: 0;
  background: transparent;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}

.range input[type="range"]:focus-visible {
  outline: none;
}

.range input[type="range"]::-webkit-slider-runnable-track {
  height: 24px;
  background: transparent;
  border: 0;
}

.range input[type="range"]::-moz-range-track {
  height: 24px;
  background: transparent;
  border: 0;
}

.range input[type="range"]::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow-thumb);
  pointer-events: auto;
  cursor: grab;
  -webkit-appearance: none;
  appearance: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.range input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow-thumb);
  pointer-events: auto;
  cursor: grab;
}

.range input[type="range"]:active::-webkit-slider-thumb {
  cursor: grabbing;
  transform: scale(1.1);
}

.range input[type="range"]:focus-visible::-webkit-slider-thumb {
  box-shadow: var(--focus);
}

.range input[type="range"]:focus-visible::-moz-range-thumb {
  box-shadow: var(--focus);
}

.year-scale {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: var(--bar-gap);
  margin-top: 2px;
  color: var(--text-3);
  font-size: 11px;
  text-align: center;
}

.year-scale span.is-in {
  color: var(--text-2);
  font-weight: 600;
}

.preset-seg {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  margin-bottom: 10px;
  padding: 3px;
  border-radius: var(--radius-control);
  background: var(--surface-3);
}

.preset-seg button {
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.preset-seg button:hover {
  color: var(--text);
}

.preset-seg button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--text);
  font-weight: 650;
  box-shadow: var(--shadow-xs);
}

[data-theme="dark"] .preset-seg button[aria-pressed="true"] {
  background: var(--line-2);
}

.chip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.chip {
  --c: var(--text-3);
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  height: 32px;
  padding: 0 10px 0 9px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text-3);
  font-size: 13px;
  text-align: left;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.chip .sw {
  background: var(--line-2);
  transition: background 0.15s;
}

.chip-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chip-count {
  margin-left: auto;
  padding-left: 4px;
  color: var(--text-3);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}

.chip:hover {
  border-color: color-mix(in srgb, var(--c) 45%, var(--line-2));
  color: var(--text-2);
}

.chip[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--c) 38%, var(--line));
  background: color-mix(in srgb, var(--c) 9%, var(--surface));
  color: var(--text);
  font-weight: 550;
}

.chip[aria-pressed="true"] .sw {
  background: var(--c);
}

.chip[aria-pressed="true"] .chip-count {
  color: var(--text-2);
}

.search-field {
  position: relative;
}

.search-field > .icon {
  position: absolute;
  left: 11px;
  top: 50%;
  width: 16px;
  height: 16px;
  color: var(--text-3);
  transform: translateY(-50%);
  pointer-events: none;
}

.search-field input {
  width: 100%;
  height: 40px;
  padding: 0 36px 0 35px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

.search-field input::-webkit-search-cancel-button {
  display: none;
}

.search-field input::placeholder {
  color: var(--text-3);
  opacity: 1;
}

.search-field input:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line-2));
}

.search-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--focus);
}

.search-field kbd {
  position: absolute;
  right: 9px;
  top: 50%;
  min-width: 20px;
  padding: 1px 6px;
  transform: translateY(-50%);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text-3);
  font: 500 11px/1.4 var(--font-ui);
  text-align: center;
  pointer-events: none;
}

.search-field input:focus ~ kbd,
.search-field.has-value kbd {
  display: none;
}

.search-clear {
  position: absolute;
  right: 5px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-3);
}

.search-clear:hover {
  background: var(--surface-3);
  color: var(--text);
}

.search-clear .icon {
  width: 15px;
  height: 15px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s, transform 0.1s;
}

.btn .icon {
  width: 17px;
  height: 17px;
  color: var(--text-2);
}

.btn:hover {
  border-color: color-mix(in srgb, var(--text-3) 55%, var(--line-2));
  background: var(--surface-2);
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.btn:disabled:hover {
  border-color: var(--line-2);
  background: var(--surface);
}

.btn-block {
  width: 100%;
  height: 40px;
}

.btn[aria-pressed="true"] {
  border-color: var(--accent-soft-2);
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.btn[aria-pressed="true"] .icon {
  color: var(--accent-ink);
}

.btn-primary {
  border-color: transparent;
  background: var(--accent-fill);
  color: var(--on-accent);
}

.btn-primary .icon {
  color: currentColor;
}

.btn-primary:hover {
  border-color: transparent;
  background: var(--accent-hover);
}

[data-theme="dark"] .btn-primary:hover {
  background: #4471f0;
}

.btn-primary:disabled:hover {
  border-color: transparent;
  background: var(--accent-fill);
}

.btn-quiet {
  border-color: transparent;
  background: transparent;
}

/* Board */

.board {
  outline: none;
}

.board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 16px;
  padding: 18px 20px 16px;
}

.board-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.board-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  white-space: nowrap;
}

.board-title .icon {
  width: 21px;
  height: 21px;
  color: var(--accent);
}

.select {
  position: relative;
  display: inline-flex;
}

.select select {
  height: 34px;
  padding: 0 32px 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.select select:hover {
  border-color: color-mix(in srgb, var(--text-3) 55%, var(--line-2));
}

.select select:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--focus);
}

.select .icon {
  position: absolute;
  right: 10px;
  top: 50%;
  width: 15px;
  height: 15px;
  color: var(--text-3);
  transform: translateY(-50%);
  pointer-events: none;
}

.board-actions {
  display: flex;
  gap: 8px;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 20px;
  border-radius: 12px;
  background: var(--surface-2);
}

.stat {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 15px 18px;
}

.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 1px;
  background: var(--line);
}

.stat-icon {
  width: 24px;
  height: 24px;
  color: var(--accent);
  stroke-width: 1.6;
}

.stat-body {
  display: grid;
  min-width: 0;
}

.stat-label {
  font-size: 13px;
  color: var(--text-2);
}

.stat-figure {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.stat-value {
  font-size: 27px;
  font-weight: 720;
  font-stretch: 110%;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--accent-ink);
}

.stat-unit {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
}

.stat-note {
  overflow: hidden;
  color: var(--text-3);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat-note .vdots {
  vertical-align: -2px;
}

.table-wrap {
  position: relative;
  margin-top: 14px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.rank-table {
  width: 100%;
  min-width: 720px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}

.rank-table th {
  height: 40px;
  padding: 0 12px;
  border-block: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

.rank-table td {
  height: 60px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.rank-table th:first-child,
.rank-table td:first-child {
  padding-left: 20px;
}

.rank-table th:last-child,
.rank-table td:last-child {
  padding-right: 20px;
}

.rank-table tbody tr {
  cursor: pointer;
  transition: background 0.12s;
}

.rank-table tbody tr:hover {
  background: color-mix(in srgb, var(--accent) 4%, var(--surface));
}

.rank-table tbody tr.is-selected {
  background: color-mix(in srgb, var(--accent) 7%, var(--surface));
}

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

.col-select {
  display: none;
  width: 44px;
}

.is-comparing .col-select {
  display: table-cell;
}

.is-comparing .col-select + .col-rank {
  padding-left: 4px;
}

.col-rank {
  width: 70px;
}

.col-count {
  width: 210px;
}

.col-venues {
  width: 150px;
}

.col-trend {
  width: 150px;
}

.col-action {
  width: 108px;
  text-align: right;
}

.rank-table th.col-action {
  text-align: right;
}

.th-range {
  margin-left: 2px;
  color: var(--text-3);
  font-weight: 500;
}

.th-help {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.help-dot {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-3);
}

.help-dot:hover {
  color: var(--accent);
}

.help-dot .icon {
  width: 15px;
  height: 15px;
}

.tip {
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  z-index: 5;
  width: 248px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--text);
  color: var(--surface);
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.55;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -4px);
  transition: opacity 0.16s, transform 0.16s var(--ease-out), visibility 0.16s;
  pointer-events: none;
}

.help-dot:hover + .tip,
.help-dot:focus-visible + .tip {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.select-box {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--line-2);
  border-radius: 6px;
  background: var(--surface);
  color: var(--on-accent);
  transition: background 0.15s, border-color 0.15s;
}

.select-box .icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.4;
  opacity: 0;
}

.select-box input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.is-selected .select-box {
  border-color: var(--accent-fill);
  background: var(--accent-fill);
}

.is-selected .select-box .icon {
  opacity: 1;
}

.select-box:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.rank {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 7px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 650;
}

.rank.r1 {
  background: var(--gold-bg);
  box-shadow: inset 0 0 0 1.5px var(--gold-ring);
  color: var(--gold-ink);
}

.rank.r2 {
  background: var(--silver-bg);
  box-shadow: inset 0 0 0 1.5px var(--silver-ring);
  color: var(--silver-ink);
}

.rank.r3 {
  background: var(--bronze-bg);
  box-shadow: inset 0 0 0 1.5px var(--bronze-ring);
  color: var(--bronze-ink);
}

.entity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.avatar {
  --tc: var(--t-other);
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--tc) 12%, var(--surface));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tc) 24%, transparent);
  color: color-mix(in oklab, var(--tc) 78%, var(--text));
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.avatar.l3 {
  font-size: 11px;
}

.avatar.l4 {
  font-size: 10px;
  letter-spacing: -0.03em;
}

.avatar.l5 {
  font-size: 8.5px;
  letter-spacing: -0.04em;
}

.avatar.lg {
  width: 52px;
  height: 52px;
  font-size: 16px;
}

.avatar.lg.l3 {
  font-size: 15px;
}

.avatar.lg.l4 {
  font-size: 13.5px;
}

.avatar.lg.l5 {
  font-size: 12px;
}

.avatar.sm {
  width: 30px;
  height: 30px;
  font-size: 11px;
}

.avatar.sm.l3,
.avatar.sm.l4,
.avatar.sm.l5 {
  font-size: 8.5px;
}

.avatar.t-uni {
  --tc: var(--t-uni);
}

.avatar.t-inst {
  --tc: var(--t-inst);
}

.avatar.t-corp {
  --tc: var(--t-corp);
}

.avatar.t-person {
  --tc: var(--t-person);
}

/* Logos keep their own colours, so they always sit on a white plate. */
.avatar.logo {
  overflow: hidden;
  padding: 2px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px var(--line-2);
}

[data-theme="dark"] .avatar.logo {
  box-shadow: none;
}

.avatar.logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.avatar.lg.logo {
  padding: 3px;
}

.entity-text {
  display: grid;
  min-width: 0;
}

.entity-name {
  overflow: hidden;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entity-sub {
  overflow: hidden;
  color: var(--text-3);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entity-name mark,
.entity-sub mark {
  border-radius: 3px;
  background: color-mix(in srgb, #ffd43b 45%, transparent);
  color: inherit;
}

.count {
  display: flex;
  align-items: center;
  gap: 12px;
}

.count-num {
  min-width: 32px;
  color: var(--text);
  font-weight: 680;
  text-align: right;
}

.bar {
  flex: 1;
  max-width: 132px;
  height: 6px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--surface-3);
}

.bar > i {
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.venues {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vdots {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 2.5px;
}

.vdots i {
  width: 6px;
  height: 15px;
  border-radius: 2px;
  background: var(--surface-3);
}

.vdots i.on {
  background: var(--c);
}

.vdots i.muted {
  opacity: 0.32;
}

.vdots.sm i {
  width: 5px;
  height: 11px;
}

.vcount {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 650;
}

.spark {
  display: block;
  width: 118px;
  height: 32px;
  overflow: visible;
}

.spark .spark-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.spark .spark-area {
  fill: var(--accent);
  opacity: 0.1;
}

.spark .spark-dot {
  fill: var(--surface);
  stroke: var(--accent);
  stroke-width: 1.6;
}

.spark .spark-bar {
  fill: var(--accent);
  opacity: 0.85;
}

.row-action {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin: -6px -8px;
  padding: 6px 6px 6px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--accent);
  font-size: 13px;
  font-weight: 550;
  white-space: nowrap;
  transition: background 0.15s;
}

.row-action:hover {
  background: var(--accent-soft);
}

.row-action .icon {
  width: 15px;
  height: 15px;
  transition: transform 0.2s var(--ease-out);
}

tr:hover .row-action .icon {
  transform: translateX(2px);
}

.skeleton td {
  cursor: default;
}

.skeleton .sk {
  display: block;
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--surface-3), var(--surface-2), var(--surface-3));
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

.state-block {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 48px 24px 56px;
  text-align: center;
}

.state-block[hidden] {
  display: none;
}

.state-glyph {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
}

.state-glyph .icon {
  width: 24px;
  height: 24px;
}

.state-block strong {
  font-size: 16px;
  font-weight: 650;
}

.state-block p {
  max-width: 30em;
  margin: 0 0 10px;
  color: var(--text-2);
  font-size: 14px;
}

.board-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 16px;
  padding: 14px 20px 16px;
  border-top: 1px solid var(--line);
}

.foot-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--text-3);
  font-size: 12.5px;
}

.foot-note .icon {
  width: 15px;
  height: 15px;
}

.pager {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pager button {
  display: inline-grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 550;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.pager button:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line-2));
  color: var(--accent);
}

.pager button[aria-current="page"] {
  border-color: transparent;
  background: var(--accent-fill);
  color: var(--on-accent);
}

.pager button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.pager .icon {
  width: 15px;
  height: 15px;
}

.pager-gap {
  padding: 0 4px;
  color: var(--text-3);
  font-size: 13px;
}

/* Insights */

.insights {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 18px 20px 0;
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}

.panel-title .icon {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-2);
  font-size: 12px;
}

.legend li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.insight-line {
  min-height: 1.6em;
  margin: 10px 20px 0;
  color: var(--text-2);
  font-size: 14px;
  text-wrap: pretty;
}

.insight-line b {
  color: var(--text);
  font-weight: 650;
}

.trend-chart {
  position: relative;
  height: 268px;
  margin: 6px 14px 0 10px;
}

.trend-chart svg {
  display: block;
  overflow: visible;
}

.chart-grid {
  stroke: var(--line);
  stroke-width: 1;
  shape-rendering: crispEdges;
}

.chart-base {
  stroke: var(--line-2);
  stroke-width: 1;
  shape-rendering: crispEdges;
}

.chart-label {
  fill: var(--text-3);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}

.chart-year {
  fill: var(--text-2);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.chart-total {
  fill: var(--text-2);
  font-size: 12px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.chart-total.is-peak {
  fill: var(--accent-ink);
}

.chart-col {
  outline: none;
  cursor: default;
}

.chart-col .col-hit {
  fill: transparent;
}

.chart-col .col-bg {
  fill: var(--accent);
  opacity: 0;
  transition: opacity 0.15s;
}

.chart-col:hover .col-bg,
.chart-col:focus-visible .col-bg {
  opacity: 0.06;
}

.chart-seg {
  stroke: var(--surface);
  stroke-width: 1.5;
  transition: opacity 0.15s;
}

.trend-chart.is-hovering .chart-col:not(.is-hot) .chart-seg {
  opacity: 0.38;
}

.chart-tip {
  position: absolute;
  z-index: 4;
  min-width: 176px;
  padding: 10px 12px;
  border-radius: 11px;
  background: var(--surface);
  box-shadow: var(--shadow-2);
  color: var(--text);
  font-size: 12.5px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.14s, transform 0.14s var(--ease-out);
}

[data-theme="dark"] .chart-tip {
  box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line-2);
}

.chart-tip.is-visible {
  opacity: 1;
  transform: none;
}

.chart-tip header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
  font-weight: 650;
}

.chart-tip ul {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chart-tip li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
}

.chart-tip li b {
  margin-left: auto;
  color: var(--text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.chart-tip small {
  display: block;
  margin-top: 6px;
  color: var(--text-3);
  font-size: 11.5px;
}

.chart-foot {
  min-height: 1.5em;
  margin: 4px 20px 16px;
  color: var(--text-3);
  font-size: 12px;
}

.method-list {
  display: grid;
  gap: 12px;
  margin: 16px 20px 20px;
}

.method-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
}

.method-row dt {
  padding: 5px 0;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}

[data-theme="dark"] .method-row dt {
  background: var(--surface-3);
}

.method-row dd {
  margin: 0;
  padding-top: 3px;
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.65;
}

/* Footer */

.site-footer {
  margin-top: 48px;
  border-top: 1px solid var(--line);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding-block: 22px 28px;
  padding-right: 64px;
  color: var(--text-3);
  font-size: 13px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand b {
  color: var(--text-2);
  font-weight: 650;
}

.brand-mark-sm {
  width: 26px;
  height: 19px;
}

.footer-meta {
  margin: 0;
}

/* Sheet */

.sheet {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(640px, 100vw);
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: var(--surface);
  color: var(--text);
  box-shadow: -28px 0 64px -24px rgba(8, 18, 48, 0.35);
}

[data-theme="dark"] .sheet {
  box-shadow: -1px 0 0 var(--line-2), -28px 0 64px -24px rgba(0, 0, 0, 0.7);
}

.sheet.is-wide {
  width: min(1000px, 100vw);
}

.sheet[open] {
  animation: sheet-in 0.34s var(--ease-out);
}

.sheet.is-closing {
  animation: sheet-out 0.2s ease-in forwards;
}

.sheet::backdrop {
  background: rgba(8, 15, 32, 0.38);
  -webkit-backdrop-filter: blur(1.5px);
  backdrop-filter: blur(1.5px);
  animation: fade-in 0.3s var(--ease-out);
}

.sheet.is-closing::backdrop {
  animation: fade-out 0.2s ease-in forwards;
}

@keyframes sheet-in {
  from {
    opacity: 0;
    transform: translateX(36px);
  }
}

@keyframes sheet-out {
  to {
    opacity: 0;
    transform: translateX(36px);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

@keyframes fade-out {
  to {
    opacity: 0;
  }
}

.sheet-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.sheet-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--line);
}

.sheet-heading {
  display: grid;
  flex: 1;
  gap: 3px;
  min-width: 0;
}

.sheet-title {
  margin: 0;
  font-size: 22px;
  font-weight: 720;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.sheet-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  color: var(--text-3);
  font-size: 13px;
}

.sheet-close {
  margin: -4px -8px 0 0;
}

.sheet-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px 40px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}

.sheet-body::-webkit-scrollbar {
  width: 10px;
}

.sheet-body::-webkit-scrollbar-thumb {
  border: 3px solid var(--surface);
  border-radius: 10px;
  background: var(--line-2);
}

.sheet-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 24px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.sheet-foot p {
  margin: 0;
  color: var(--text-3);
  font-size: 12.5px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 550;
  white-space: nowrap;
}

.pill.is-brand {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.pill .sw {
  width: 7px;
  height: 7px;
}

.scope-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 12.5px;
}

[data-theme="dark"] .scope-note {
  background: var(--surface-3);
}

.scope-note .icon {
  width: 15px;
  height: 15px;
  color: var(--text-3);
}

.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 12px;
}

.kpi {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 12px 14px;
}

.kpi + .kpi {
  border-left: 1px solid var(--line);
}

.kpi b {
  font-size: 22px;
  font-weight: 720;
  font-stretch: 110%;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.kpi b small {
  margin-left: 1px;
  color: var(--text-3);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}

.kpi span {
  color: var(--text-3);
  font-size: 12px;
}

.d-section {
  margin-top: 28px;
}

.d-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
}

.d-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
}

.d-head small {
  color: var(--text-3);
  font-size: 12px;
}

.year-cols {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  align-items: end;
  gap: 10px;
  height: 132px;
}

.year-col {
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  gap: 6px;
  height: 100%;
}

.year-col b {
  color: var(--text-2);
  font-size: 12px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  align-self: end;
}

.year-col .yc-track {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.year-col i {
  display: block;
  width: 100%;
  max-width: 38px;
  height: var(--h);
  min-height: 2px;
  border-radius: 5px 5px 2px 2px;
  background: var(--accent);
}

.year-col i.is-zero {
  background: var(--surface-3);
}

.year-col span {
  color: var(--text-3);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}

.stack-bar {
  display: flex;
  gap: 2px;
  height: 10px;
  overflow: hidden;
  border-radius: 5px;
}

.stack-bar i {
  flex: var(--f) 1 0;
  min-width: 3px;
  background: var(--c);
}

.venue-rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.venue-rows li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 13px;
}

.venue-rows li span {
  overflow: hidden;
  color: var(--text-2);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.venue-rows li b {
  margin-left: auto;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.venue-rows li em {
  width: 38px;
  color: var(--text-3);
  font-size: 12px;
  font-style: normal;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.venue-rows li.is-zero {
  opacity: 0.5;
}

.people {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.person {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  color: inherit;
  text-align: left;
  transition: border-color 0.15s, background 0.15s;
}

.person:hover {
  border-color: var(--accent-soft-2);
  background: var(--accent-soft);
}

.person-text {
  display: grid;
  flex: 1;
  min-width: 0;
}

.person-name {
  overflow: hidden;
  font-size: 13.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-sub {
  overflow: hidden;
  color: var(--text-3);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-count {
  color: var(--text-2);
  font-size: 13px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.paper-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

.paper-filter button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 12.5px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.paper-filter button[aria-pressed="true"] {
  border-color: var(--accent-soft-2);
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 600;
}

.paper-filter b {
  color: var(--text-3);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.paper-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.paper-year {
  position: sticky;
  top: -20px;
  z-index: 1;
  margin: 0 -24px;
  padding: 14px 24px 6px;
  background: linear-gradient(var(--surface) 75%, transparent);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.paper {
  padding: 12px 0 13px;
  border-bottom: 1px solid var(--line);
}

.paper-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.vtag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 21px;
  padding: 0 7px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--c) 11%, var(--surface));
  color: color-mix(in oklab, var(--c) 82%, var(--text));
  font-size: 11.5px;
  font-weight: 650;
  white-space: nowrap;
}

.first-tag {
  display: inline-flex;
  align-items: center;
  height: 21px;
  padding: 0 7px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 11.5px;
  font-weight: 650;
}

.paper-title {
  display: inline;
  margin-top: 6px;
  color: var(--text);
  font-size: 14px;
  font-weight: 550;
  line-height: 1.5;
  text-decoration: none;
}

.paper-title-wrap {
  margin-top: 6px;
}

.paper-title:hover {
  color: var(--accent);
  text-decoration: underline;
}

.paper-title .icon {
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-left: 4px;
  vertical-align: -1px;
  color: var(--text-3);
}

.paper-authors {
  margin-top: 4px;
  color: var(--text-3);
  font-size: 12.5px;
  line-height: 1.55;
}

.paper-authors b {
  color: var(--text-2);
  font-weight: 600;
}

.more-btn {
  width: 100%;
  margin-top: 14px;
}

/* Compare */

.compare-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.compare-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 6px 0 10px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--cc) 10%, var(--surface));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cc) 30%, transparent);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.compare-chip i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cc);
}

.compare-chip button {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-3);
}

.compare-chip button:hover {
  background: var(--surface-3);
  color: var(--text);
}

.compare-chip .icon {
  width: 13px;
  height: 13px;
}

.compare-chart {
  position: relative;
  height: 250px;
}

.compare-chart svg {
  display: block;
  overflow: visible;
}

.cmp-line {
  fill: none;
  stroke: var(--cc);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cmp-dot {
  fill: var(--surface);
  stroke: var(--cc);
  stroke-width: 2;
}

.cmp-end {
  fill: var(--cc);
  font-size: 12px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.cmp-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.cmp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.cmp-table th,
.cmp-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.cmp-table tr:last-child th,
.cmp-table tr:last-child td {
  border-bottom: 0;
}

.cmp-table thead th {
  background: var(--surface-2);
  color: var(--text);
  font-weight: 650;
}

.cmp-table thead th span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.cmp-table thead th i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cc);
}

.cmp-table tbody th {
  color: var(--text-2);
  font-weight: 500;
  text-align: left;
}

.cmp-table th:first-child {
  text-align: left;
}

.cmp-table td.is-best {
  color: var(--accent-ink);
  font-weight: 700;
}

.cmp-table .sw {
  margin-right: 7px;
}

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

.pair-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13.5px;
}

.pair-list li b {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}

.pair-dots {
  display: inline-flex;
}

.pair-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cc);
  box-shadow: 0 0 0 2px var(--surface);
}

.pair-dots i + i {
  margin-left: -3px;
}

.muted-copy {
  margin: 0;
  color: var(--text-3);
  font-size: 13px;
}

/* Compare tray, toasts, back to top */

.compare-tray {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 32px);
  padding: 8px 8px 8px 16px;
  border-radius: 14px;
  background: var(--text);
  color: var(--bg);
  box-shadow: var(--shadow-2);
  transform: translateX(-50%);
  animation: tray-in 0.32s var(--ease-out);
}

.compare-tray[hidden] {
  display: none;
}

@keyframes tray-in {
  from {
    opacity: 0;
    transform: translate(-50%, 16px);
  }
}

.tray-count {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.tray-items {
  display: flex;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: none;
}

.tray-items li {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 0 4px 0 10px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg) 14%, transparent);
  font-size: 12.5px;
  white-space: nowrap;
}

.tray-items button {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: inherit;
  opacity: 0.7;
}

.tray-items button:hover {
  opacity: 1;
  background: color-mix(in srgb, var(--bg) 18%, transparent);
}

.tray-items .icon {
  width: 13px;
  height: 13px;
}

.tray-hint {
  color: color-mix(in srgb, var(--bg) 70%, transparent);
  font-size: 12.5px;
  white-space: nowrap;
}

.compare-tray .btn-quiet {
  color: inherit;
  opacity: 0.8;
}

.compare-tray .btn-quiet:hover {
  background: color-mix(in srgb, var(--bg) 14%, transparent);
  opacity: 1;
}

.compare-tray .btn-primary:disabled {
  opacity: 0.45;
}

.toast-region {
  position: fixed;
  left: 50%;
  bottom: 88px;
  z-index: 60;
  display: grid;
  justify-items: center;
  gap: 8px;
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  padding: 10px 16px;
  border-radius: 11px;
  background: var(--text);
  color: var(--bg);
  box-shadow: var(--shadow-2);
  font-size: 13px;
  white-space: nowrap;
  animation: toast-in 0.26s var(--ease-out);
}

.toast.is-leaving {
  animation: toast-out 0.2s ease-in forwards;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(4px);
  }
}

.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text-2);
  box-shadow: var(--shadow-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s var(--ease-out), visibility 0.2s, color 0.15s;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  color: var(--accent);
}

.has-tray .to-top {
  bottom: 84px;
}

.flash {
  animation: flash 1.2s var(--ease-out);
}

@keyframes flash {
  0%,
  30% {
    box-shadow: var(--shadow-1), 0 0 0 3px var(--accent-soft-2);
  }
}

/* Responsive */

@media (max-width: 1240px) {
  :root {
    --gutter: 24px;
  }

  .workspace-grid {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .col-action {
    display: none;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  }
}

@media (max-width: 1020px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 360px;
  }

  .hero-title {
    font-size: 40px;
  }

  .workspace-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .filters {
    position: relative;
    top: 0;
    padding: 16px 18px;
  }

  .filters-toggle {
    display: inline-flex;
  }

  .filters-body {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 28px;
  }

  .filters.is-open .filters-body {
    display: grid;
  }

  .filters-body > .btn-block {
    grid-column: 1 / -1;
  }

  .insights {
    grid-template-columns: minmax(0, 1fr);
  }

  .globe-caption {
    display: none;
  }
}

@media (max-width: 760px) {
  :root {
    --gutter: 16px;
    --header-h: 58px;
  }

  .main-nav,
  .header-divider {
    display: none;
  }

  .brand-word {
    font-size: 19px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .hero-copy {
    padding-block: 28px 4px;
  }

  .hero-title {
    font-size: 32px;
  }

  :lang(en) .hero-title {
    font-size: 30px;
  }

  .hero-lede {
    font-size: 15px;
  }

  .hero-visual {
    min-height: 250px;
    margin-inline: calc(-1 * var(--gutter));
  }

  .hero-visual::before {
    width: 340px;
    height: 340px;
  }

  .globe-canvas {
    left: 0;
    right: 0;
    top: -8px;
    bottom: -8px;
    width: 100%;
    height: calc(100% + 16px);
  }

  .workspace {
    margin-top: 6px;
  }

  .view-tabs {
    display: grid;
    width: 100%;
  }

  .view-tabs [role="tab"] {
    flex: 1;
    justify-content: center;
    gap: 6px;
    height: 42px;
    padding: 0 8px;
    font-size: 14.5px;
  }

  .filters-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .board-head {
    padding: 16px 16px 14px;
  }

  .board-title-group {
    flex-wrap: wrap;
    gap: 10px;
  }

  .board-actions {
    width: 100%;
  }

  .board-actions .btn {
    flex: 1;
  }

  .stat-strip {
    margin: 0 16px;
  }

  .stat {
    padding: 12px;
  }

  .stat-icon,
  .stat-note {
    display: none;
  }

  .stat-value {
    font-size: 21px;
  }

  .rank-table {
    min-width: 0;
  }

  .col-venues,
  .col-trend {
    display: none;
  }

  .col-count {
    width: 132px;
  }

  .bar {
    display: none;
  }

  .rank-table th:first-child,
  .rank-table td:first-child {
    padding-left: 16px;
  }

  .rank-table th:last-child,
  .rank-table td:last-child {
    padding-right: 16px;
  }

  .col-rank {
    width: 52px;
  }

  .board-foot {
    padding: 14px 16px;
  }

  .foot-note {
    width: 100%;
  }

  .pager {
    width: 100%;
    justify-content: center;
  }

  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kpi:nth-child(3) {
    border-left: 0;
  }

  .kpi:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .people,
  .venue-rows {
    grid-template-columns: minmax(0, 1fr);
  }

  .sheet-head {
    padding: 18px 16px 14px;
  }

  .sheet-body {
    padding: 16px 16px 32px;
  }

  .paper-year {
    margin: 0 -16px;
    padding-inline: 16px;
  }

  .sheet-foot {
    padding: 12px 16px;
  }

  .compare-tray {
    left: 16px;
    right: 16px;
    bottom: 16px;
    transform: none;
    animation: none;
  }

  .tray-items {
    display: none;
  }

  .compare-tray .tray-count {
    margin-right: auto;
  }

  .to-top {
    right: 16px;
    bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .hero-visual,
  .filters,
  .board-actions,
  .pager,
  .to-top,
  .compare-tray {
    display: none !important;
  }

  .workspace-grid,
  .insights {
    grid-template-columns: 1fr;
  }
}
