:root {
  --ink-950: #06101d;
  --ink-900: #0a1728;
  --ink-800: #12233a;
  --ink-700: #263a52;
  --ink-600: #465a70;
  --ink-500: #66788b;
  --ink-300: #b8c3cf;
  --ink-200: #d8e0e8;
  --ink-100: #edf2f6;
  --paper: #f7f9fb;
  --white: #ffffff;
  --mint: #42d6ae;
  --mint-dark: #159b7c;
  --mint-pale: #dbf8ef;
  --violet: #7b70f5;
  --violet-pale: #eceaff;
  --blue: #3d8cff;
  --orange: #ff9d58;
  --green: #35c58b;
  --danger: #dc4e5c;
  --danger-pale: #ffeaed;
  --warning: #d98b2b;
  --shadow-sm: 0 8px 24px rgba(7, 19, 34, .07);
  --shadow-md: 0 22px 60px rgba(7, 19, 34, .13);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shell: 1180px;
  --header-h: 76px;
  --transition: 180ms ease;
}

* { box-sizing: border-box; }

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink-900);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.nav-open { overflow: hidden; }

button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img, svg, canvas { display: block; max-width: 100%; }
button { color: inherit; }

::selection { background: rgba(66, 214, 174, .28); }

:focus-visible {
  outline: 3px solid rgba(61, 140, 255, .55);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--white);
  background: var(--ink-950);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.shell {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}

.shell--reading { max-width: 1000px; }
.shell--form { max-width: 940px; }

.read-only-label { color: var(--ink-600); font-size: 12px; }
body[data-read-only="1"] .paper-actions button:disabled { opacity: .4; cursor: not-allowed; background: transparent; color: var(--ink-600); }
body[data-read-only="1"] .import-panel :disabled { opacity: .58; cursor: not-allowed; }
body[data-read-only="1"] .drop-zone[aria-disabled="true"] { cursor: not-allowed; border-color: var(--ink-200); background: var(--ink-100); }

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

[hidden] { display: none !important; }

/* Header */
.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--header-h);
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  color: var(--white);
  background: rgba(6, 16, 29, .93);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.brand-mark { width: 40px; height: 40px; }
.brand-mark circle { fill: rgba(66, 214, 174, .08); stroke: rgba(66, 214, 174, .35); }
.brand-mark path { fill: none; stroke: var(--mint); stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.brand-copy { display: grid; line-height: 1.08; }
.brand-copy strong { font-size: 18px; letter-spacing: -.02em; }
.brand-copy small { margin-top: 5px; color: var(--ink-300); font-size: 10px; letter-spacing: .16em; }

.primary-nav { display: flex; align-items: center; gap: 6px; }
.primary-nav a {
  position: relative;
  padding: 10px 13px;
  border-radius: 9px;
  color: var(--ink-300);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition: color var(--transition), background var(--transition);
}
.primary-nav a:hover { color: var(--white); background: rgba(255, 255, 255, .06); }
.primary-nav a[aria-current="page"] { color: var(--white); }
.primary-nav a[aria-current="page"]::after {
  position: absolute;
  right: 13px;
  bottom: 3px;
  left: 13px;
  height: 2px;
  border-radius: 999px;
  background: var(--mint);
  content: "";
}

.icon-button {
  display: inline-grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--ink-200);
  border-radius: 10px;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.nav-toggle { display: none; border-color: rgba(255, 255, 255, .16); }
.nav-toggle span { display: block; width: 18px; height: 2px; margin: 2px 0; border-radius: 2px; background: currentColor; }

/* Type and shared controls */
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.18; letter-spacing: -.035em; }
h1 { font-size: clamp(2.65rem, 5vw, 5.2rem); }
h2 { margin-bottom: 12px; font-size: clamp(1.7rem, 3vw, 2.55rem); }
h3 { margin-bottom: 8px; font-size: 1.12rem; }

.eyebrow {
  margin-bottom: 14px;
  color: var(--mint-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 5px rgba(66, 214, 174, .11);
}

.gradient-text {
  color: transparent;
  background: linear-gradient(105deg, var(--mint) 10%, #72d9ef 53%, #a39bff 95%);
  -webkit-background-clip: text;
  background-clip: text;
}

.button {
  display: inline-flex;
  min-height: 46px;
  padding: 11px 18px;
  gap: 9px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 11px;
  font-weight: 760;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
}

.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { opacity: .58; cursor: not-allowed; }
.button--primary { color: var(--ink-950); background: var(--mint); box-shadow: 0 9px 26px rgba(66, 214, 174, .19); }
.button--primary:hover:not(:disabled) { background: #5ce1bd; box-shadow: 0 12px 30px rgba(66, 214, 174, .27); }
.button--secondary { color: var(--white); background: var(--ink-900); }
.button--secondary:hover:not(:disabled) { background: var(--ink-800); }
.button--ghost { color: var(--ink-900); border-color: var(--ink-200); background: rgba(255, 255, 255, .82); }
.hero .button--ghost { color: var(--white); border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .05); }
.button--quiet { color: var(--ink-700); border-color: var(--ink-200); background: transparent; }
.button--quiet:hover:not(:disabled) { border-color: var(--ink-300); background: var(--ink-100); }
.button--light { color: var(--ink-950); background: var(--white); }
.button--danger { color: var(--white); background: var(--danger); }
.button--compact { min-height: 38px; padding: 8px 13px; border-radius: 9px; font-size: 13px; }

.text-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--ink-900);
  font-weight: 760;
  text-decoration: none;
}
.text-link:hover { color: var(--mint-dark); }

label, legend { color: var(--ink-700); font-size: 13px; font-weight: 730; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--ink-200);
  border-radius: 10px;
  color: var(--ink-900);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
input, select { min-height: 44px; padding: 9px 12px; }
textarea { padding: 12px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(61, 140, 255, .13); }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--danger); }

.field { display: grid; gap: 7px; }
.field small { min-height: 18px; color: var(--ink-500); font-weight: 500; }
.field small.error, [data-field-error]:not(:empty) { color: var(--danger); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 78% 35%, rgba(84, 75, 190, .28), transparent 31%),
    radial-gradient(circle at 28% 12%, rgba(30, 149, 131, .15), transparent 29%),
    var(--ink-950);
}

.hero::before {
  position: absolute;
  inset: 0;
  opacity: .16;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
  content: "";
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 610px;
  padding-block: 82px 112px;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: 70px;
  align-items: center;
}

.hero-copy h1 { max-width: 750px; margin-bottom: 24px; }
.hero-copy .eyebrow { color: var(--mint); }
.hero-lead { max-width: 650px; margin-bottom: 30px; color: var(--ink-300); font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.trust-list { display: flex; padding: 0; margin: 30px 0 0; gap: 26px; color: var(--ink-300); font-size: 12px; list-style: none; }
.trust-list li::before { margin-right: 7px; color: var(--mint); content: "✓"; }

.hero-visual { position: relative; min-height: 440px; }
.pulse-orbit { position: absolute; border: 1px solid rgba(124, 113, 244, .22); border-radius: 50%; }
.pulse-orbit--one { inset: 30px 35px 20px 25px; animation: orbit 18s linear infinite; }
.pulse-orbit--two { inset: 70px 78px 60px 72px; border-color: rgba(66, 214, 174, .17); animation: orbit 13s linear infinite reverse; }
.pulse-orbit::after { position: absolute; top: 12%; left: 8%; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 18px var(--mint); content: ""; }

.hero-card { border: 1px solid rgba(255, 255, 255, .13); border-radius: 22px; background: rgba(17, 35, 58, .72); box-shadow: 0 24px 70px rgba(0,0,0,.28); backdrop-filter: blur(14px); }
.hero-card--main { position: absolute; z-index: 2; inset: 70px 28px 48px 44px; padding: 27px; }
.hero-card--main strong { display: block; margin: 16px 0 0; font-size: 64px; line-height: 1; letter-spacing: -.06em; }
.hero-card--main svg { position: absolute; right: 24px; bottom: 25px; left: 24px; width: calc(100% - 48px); height: 80px; }
.hero-card-label { color: var(--ink-300); font-size: 10px; font-weight: 800; letter-spacing: .17em; }
.hero-card-keyword { display: block; margin-top: 6px; color: var(--mint); font-weight: 700; }
.hero-card-keyword { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-sparkline { position: absolute; right: 27px; bottom: 22px; left: 27px; }
.hero-sparkline > span { color: var(--ink-300); font-size: 11px; }
.hero-card--main .hero-sparkline svg { position: static; width: 100%; height: 74px; margin-top: 5px; }
.hero-card--float { position: absolute; z-index: 3; display: grid; padding: 13px 16px; line-height: 1.2; }
.hero-card--float span { color: var(--ink-300); font-size: 10px; font-weight: 760; letter-spacing: .1em; text-transform: uppercase; }
.hero-card--float strong { font-size: 21px; }
.hero-card--cvpr { top: 21px; right: 0; transform: rotate(3deg); }
.hero-card--papers { right: 2px; bottom: 30px; transform: rotate(-2deg); }

@keyframes orbit { to { transform: rotate(360deg); } }

/* Shared section and panels */
.section { padding-block: 94px; }
.section--page { min-height: 540px; padding-top: 52px; }
.section--flush-top { position: relative; padding-top: 60px; margin-top: 0; padding-bottom: 0; }
.section-heading { max-width: 720px; margin-bottom: 38px; }
.section-heading p:not(.eyebrow) { color: var(--ink-600); }
.section-heading--split { display: flex; max-width: none; gap: 32px; align-items: end; justify-content: space-between; }
.section-heading--split > div:first-child { max-width: 700px; }

.panel {
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.panel-heading { display: flex; gap: 20px; align-items: flex-start; justify-content: space-between; }
.panel-heading h2 { font-size: 1.65rem; }
.panel-intro { color: var(--ink-600); }
.data-chip { flex: 0 0 auto; padding: 6px 10px; border-radius: 999px; color: var(--mint-dark); background: var(--mint-pale); font-size: 11px; font-weight: 800; }

.filter-bar {
  display: flex;
  padding: 10px;
  gap: 8px;
  align-items: end;
  border: 1px solid var(--ink-200);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.filter-bar label { display: grid; gap: 3px; }
.filter-bar select { min-width: 130px; min-height: 38px; border: 0; background-color: var(--ink-100); }
.filter-draft-note { margin: -16px 0 24px; color: var(--ink-600); font-size: 14px; }

.metric-strip {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .66);
  border-radius: 19px;
  background: var(--white);
  box-shadow: var(--shadow-md);
  grid-template-columns: repeat(4, 1fr);
}
.metric-strip article { position: relative; display: grid; min-height: 135px; padding: 24px 26px; align-content: center; }
.metric-strip article + article::before { position: absolute; top: 25px; bottom: 25px; left: 0; width: 1px; background: var(--ink-100); content: ""; }
.metric-strip span { color: var(--ink-600); font-size: 12px; font-weight: 730; }
.metric-strip strong { margin: 4px 0; font-size: 30px; line-height: 1.1; letter-spacing: -.04em; }
.metric-strip small { color: var(--ink-500); }
.metric-strip .metric-status { display: flex; align-items: center; gap: 8px; font-size: 21px; }
.metric-status i { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(53, 197, 139, .12); }

.insight-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .75fr); gap: 24px; align-items: stretch; }
.panel--hot, .panel--method { padding: 34px; }
.panel--method { color: var(--white); background: linear-gradient(155deg, var(--ink-900), #162d49); }
.panel--method .eyebrow { color: var(--mint); }
.panel--method p { color: var(--ink-300); }
.panel--method .text-link { color: var(--mint); }
.method-icon { display: grid; width: 48px; height: 48px; margin-bottom: 28px; place-items: center; border: 1px solid rgba(66, 214, 174, .28); border-radius: 14px; color: var(--mint); background: rgba(66, 214, 174, .08); font-size: 22px; font-weight: 800; }
.formula-card { display: grid; padding: 18px; margin: 25px 0; gap: 6px; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: rgba(255,255,255,.05); }
.formula-card span { color: var(--ink-300); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; }
.formula-card strong { color: var(--white); }

.ranking-list { padding: 0; margin: 28px 0 0; list-style: none; counter-reset: rank; }
.ranking-item {
  display: grid;
  padding: 13px 0;
  grid-template-columns: 36px minmax(120px, .65fr) minmax(160px, 1fr) 68px;
  gap: 13px;
  align-items: center;
  border-top: 1px solid var(--ink-100);
  counter-increment: rank;
}
.ranking-item::before { color: var(--ink-500); font-size: 12px; font-weight: 800; content: counter(rank, decimal-leading-zero); }
.ranking-item:nth-child(-n+3)::before { color: var(--violet); }
.ranking-item[role="button"] { cursor: pointer; transition: background-color .18s ease, box-shadow .18s ease; }
.ranking-item[role="button"]:hover, .ranking-item[role="button"]:focus-visible, .ranking-item.is-active { background: var(--mint-pale); box-shadow: 0 0 0 6px var(--mint-pale); outline: none; }
.ranking-name { overflow: hidden; font-weight: 760; text-overflow: ellipsis; white-space: nowrap; }
.ranking-bar { position: relative; overflow: hidden; height: 9px; border-radius: 99px; background: var(--ink-100); }
.ranking-bar i { position: absolute; inset: 0 auto 0 0; width: var(--value, 0%); border-radius: inherit; background: linear-gradient(90deg, var(--mint), var(--violet)); transform-origin: left; animation: growBar .65s ease both; }
.ranking-score { text-align: right; }
.ranking-score strong { display: block; line-height: 1.1; }
.ranking-score small { color: var(--ink-500); }
@keyframes growBar { from { transform: scaleX(0); } }

.section--graph { background: var(--white); }
.graph-legend { display: flex; padding-bottom: 8px; gap: 18px; color: var(--ink-500); font-size: 12px; }
.graph-legend span { display: flex; gap: 7px; align-items: center; }
.legend-node { width: 11px; height: 11px; border: 3px solid var(--violet); border-radius: 50%; }
.legend-edge { width: 21px; height: 1px; background: var(--ink-300); }
.graph-layout { display: grid; overflow: hidden; height: 600px; min-height: 0; border: 1px solid var(--ink-200); border-radius: var(--radius-lg); background: #f3f6fa; grid-template-columns: minmax(0, 1fr) 340px; scroll-margin-top: calc(var(--header-h) + 20px); }
.graph-stage { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: radial-gradient(circle at 50% 45%, #fff 0, #f1f4fa 80%); }
.graph-stage::before { position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(#c9d2e0 .8px, transparent .8px); background-size: 22px 22px; opacity: .3; content: ""; }
.graph-viewport { position: relative; height: 100%; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: thin; }
.keyword-graph { position: relative; width: 100%; min-width: 700px; height: 100%; }
.graph-pan-hint { display: none; position: absolute; top: 26px; left: 18px; color: var(--ink-500); font-size: 11px; pointer-events: none; }
.is-pannable .graph-pan-hint { display: block; }
.graph-table-keyword { padding: 5px 0; border: 0; color: var(--mint-dark); background: none; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.graph-edge { stroke: #b4bfd5; stroke-linecap: round; opacity: .45; transition: stroke .2s, opacity .2s; }
.graph-edge.is-active { stroke: #23b292; opacity: .9; }
.graph-edge.is-muted { opacity: .13; }
.graph-node { cursor: pointer; touch-action: none; outline: none; transition: opacity .2s; }
.graph-node circle { fill: #eae7ff; stroke: #9385f5; stroke-width: 1.8; transition: fill .2s, stroke-width .2s, r .24s ease; }
.graph-node text { fill: var(--ink-700); font-size: 11px; font-weight: 650; text-anchor: middle; pointer-events: none; paint-order: stroke; stroke: #f7f9fc; stroke-width: 4px; stroke-linejoin: round; }
.graph-node:hover circle, .graph-node:focus-visible circle { fill: #d8f8ee; stroke: var(--mint-dark); stroke-width: 2.5; }
.graph-node:focus-visible circle { stroke-dasharray: 4 3; }
.graph-node.is-active circle { fill: #bef1e1; stroke: var(--mint-dark); stroke-width: 3; filter: drop-shadow(0 5px 9px #159b7c30); }
.graph-node.is-active text { fill: #08735e; font-size: 13px; font-weight: 800; }
.graph-node.is-muted { opacity: .48; }
.graph-tools { position: absolute; top: 16px; right: 16px; display: flex; gap: 8px; }
.graph-tools .icon-button { background: rgba(255,255,255,.88); box-shadow: var(--shadow-sm); }
.graph-motion-button { padding: 8px 13px; border: 1px solid var(--ink-200); border-radius: 10px; background: #ffffffeb; color: var(--ink-700); font-size: 12px; font-weight: 700; cursor: pointer; box-shadow: var(--shadow-sm); }
.graph-motion-button:disabled { cursor: default; opacity: .65; }
.graph-status { position: absolute; right: 18px; bottom: 16px; left: 18px; width: fit-content; max-width: calc(100% - 36px); padding: 5px 11px; border: 1px solid #dfe6ef; border-radius: 20px; background: #ffffffdb; color: var(--ink-500); font-size: 11px; pointer-events: none; }
.related-panel { display: flex; flex-direction: column; overflow: hidden; min-width: 0; min-height: 0; padding: 26px 0 0; border-left: 1px solid var(--ink-200); background: var(--white); }
.related-empty { display: grid; height: 100%; padding: 0 24px 26px; align-content: center; text-align: center; }
.related-empty p { color: var(--ink-500); }
.related-empty .eyebrow { margin-top: 20px; color: var(--mint-dark); font-size: 9px; }
.related-hint { color: var(--ink-500); font-size: 12px; }
.related-glyph { color: var(--violet); font-size: 44px; }
.related-header { flex: 0 0 auto; padding: 0 24px 20px; border-bottom: 1px solid var(--ink-100); }
.related-header h3 { margin: 0 0 8px; overflow-wrap: anywhere; font-size: 24px; line-height: 1.25; }
.related-header span { color: var(--ink-500); font-size: 13px; }
.related-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 0 20px 22px 24px; overscroll-behavior-y: contain; scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: #b8c3d9 transparent; }
.related-list { padding: 0; margin: 0; list-style: none; }
.related-list li { padding: 18px 0; border-bottom: 1px solid var(--ink-100); }
.related-list a { display: block; overflow-wrap: anywhere; font-size: 14px; font-weight: 650; line-height: 1.5; text-decoration: none; }
.related-list a:hover { color: var(--mint-dark); }
.related-list small { display: block; margin-top: 7px; color: var(--ink-500); font-size: 11px; }
.related-more { width: 100%; margin-top: 15px; }

.accessible-data { margin-top: 18px; border: 1px solid var(--ink-200); border-radius: 13px; background: var(--white); }
.accessible-data summary { padding: 14px 18px; font-weight: 730; cursor: pointer; }
.accessible-data[open] summary { border-bottom: 1px solid var(--ink-100); }
.table-wrap { max-width: 100%; overflow: auto; }
.table-wrap table { width: 100%; border-collapse: collapse; }
.table-wrap th, .table-wrap td { padding: 12px 16px; border-bottom: 1px solid var(--ink-100); text-align: left; }
.table-wrap th { color: var(--ink-600); background: #fafbfd; font-size: 12px; }

.section--cta { padding-top: 32px; }
.cta-card { position: relative; display: flex; overflow: hidden; min-height: 270px; padding: 50px; align-items: center; justify-content: space-between; border-radius: var(--radius-lg); color: var(--white); background: linear-gradient(120deg, #152942, #242356 62%, #145b54); }
.cta-card::after { position: absolute; right: 18%; bottom: -100px; width: 270px; height: 270px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; box-shadow: 0 0 0 60px rgba(255,255,255,.025), 0 0 0 120px rgba(255,255,255,.018); content: ""; }
.cta-card > * { position: relative; z-index: 1; }
.cta-card h2 { margin-bottom: 0; }
.cta-card .eyebrow { color: var(--mint); }

/* Page hero */
.page-hero { position: relative; overflow: hidden; color: var(--white); background: var(--ink-950); }
.page-hero::after { position: absolute; inset: auto -10% -120px 40%; height: 240px; border-radius: 50%; background: radial-gradient(ellipse, rgba(123,112,245,.28), transparent 66%); content: ""; }
.page-hero-inner { position: relative; z-index: 1; display: flex; min-height: 260px; padding-block: 54px; gap: 36px; align-items: center; justify-content: space-between; }
.page-hero h1 { margin-bottom: 14px; font-size: clamp(2.45rem, 5vw, 4rem); }
.page-hero p:not(.eyebrow) { max-width: 680px; margin-bottom: 0; color: var(--ink-300); }
.page-hero .eyebrow { color: var(--mint); }

/* Papers */
.search-panel { display: grid; padding: 14px; gap: 10px; align-items: end; border: 1px solid var(--ink-200); border-radius: 16px; background: var(--white); box-shadow: var(--shadow-sm); grid-template-columns: minmax(260px, 1fr) 160px 115px 105px auto auto; }
.search-panel > label { display: grid; gap: 4px; }
.search-field { position: relative; align-self: end; }
.search-field svg { position: absolute; top: 13px; left: 13px; width: 18px; height: 18px; fill: none; stroke: var(--ink-500); stroke-width: 2; }
.search-field input { padding-left: 42px; }
.list-toolbar { display: flex; min-height: 68px; gap: 20px; align-items: center; justify-content: space-between; }
.list-toolbar p { margin: 0; color: var(--ink-600); }

.paper-table-wrap { overflow: hidden; border: 1px solid var(--ink-200); border-radius: 16px; background: var(--white); box-shadow: var(--shadow-sm); }
.paper-table { width: 100%; border-collapse: collapse; }
.paper-table th { padding: 13px 16px; color: var(--ink-500); background: #f9fbfc; font-size: 11px; letter-spacing: .07em; text-align: left; text-transform: uppercase; }
.paper-table td { padding: 17px 16px; border-top: 1px solid var(--ink-100); vertical-align: middle; }
.paper-table tbody tr { transition: background var(--transition); }
.paper-table tbody tr:hover { background: #fbfcfd; }
.paper-id { color: var(--ink-500); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; }
.paper-title-link { display: -webkit-box; overflow: hidden; color: var(--ink-900); font-weight: 760; line-height: 1.35; text-decoration: none; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.paper-title-link:hover { color: var(--mint-dark); }
.paper-authors-inline { overflow: hidden; max-width: 400px; margin-top: 5px; color: var(--ink-500); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.paper-venue { display: flex; gap: 6px; align-items: center; white-space: nowrap; }
.conference-badge { display: inline-flex; padding: 4px 8px; border-radius: 6px; color: #246d5e; background: var(--mint-pale); font-size: 11px; font-weight: 800; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; }
.tag { display: inline-flex; padding: 4px 8px; border-radius: 7px; color: var(--ink-700); background: var(--ink-100); font-size: 11px; line-height: 1.35; text-decoration: none; }
a.tag:hover { color: var(--violet); background: var(--violet-pale); }
.paper-actions { display: flex; gap: 4px; justify-content: flex-end; }
.paper-actions button, .paper-actions a { display: grid; width: 35px; height: 35px; padding: 0; place-items: center; border: 0; border-radius: 8px; color: var(--ink-600); background: transparent; text-decoration: none; cursor: pointer; }
.paper-actions button:hover, .paper-actions a:hover { color: var(--ink-900); background: var(--ink-100); }
.paper-actions .delete-action:hover { color: var(--danger); background: var(--danger-pale); }
.pagination { display: flex; padding-top: 24px; gap: 18px; align-items: center; justify-content: center; color: var(--ink-600); font-size: 13px; }

.network-fallback { display: grid; padding: 25px; margin-top: 20px; gap: 20px; align-items: center; border: 1px solid #d9d6ff; border-radius: 16px; background: var(--violet-pale); grid-template-columns: auto 1fr auto; }
.network-fallback h2 { margin-bottom: 6px; font-size: 1.3rem; }
.network-fallback p { margin: 0; color: var(--ink-600); }
.network-icon { display: grid; width: 45px; height: 45px; place-items: center; border-radius: 12px; color: var(--violet); background: var(--white); font-size: 24px; }
.network-card { display: grid; padding: 22px; margin-top: 16px; gap: 16px; border: 1px solid var(--ink-200); border-radius: 16px; background: var(--white); box-shadow: var(--shadow-sm); grid-template-columns: 1fr auto; }
.network-card h3 { margin-bottom: 8px; }
.network-card p { color: var(--ink-600); }

/* State, toast, modal */
.state-box { display: flex; min-height: 110px; padding: 20px; gap: 13px; align-items: center; justify-content: center; color: var(--ink-600); text-align: center; }
.state-box p { margin: 0; }
.state-box--large { min-height: 260px; border: 1px dashed var(--ink-200); border-radius: 16px; background: rgba(255,255,255,.55); }
.state-box--overlay { position: absolute; z-index: 5; inset: 0; min-height: 100%; background: rgba(247,249,251,.8); backdrop-filter: blur(3px); }
.state-box.is-error { display: grid; color: var(--danger); }
.state-box.is-empty { display: grid; color: var(--ink-600); }
.state-glyph { display: block; margin-bottom: 8px; color: var(--ink-300); font-size: 40px; }
.state-box .button { margin-top: 12px; }
.spinner { width: 20px; height: 20px; border: 2px solid var(--ink-200); border-top-color: var(--violet); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.toast-region { position: fixed; z-index: 1000; top: calc(var(--header-h) + 18px); right: 18px; display: grid; width: min(380px, calc(100% - 36px)); gap: 9px; pointer-events: none; }
.toast { display: grid; padding: 14px 16px; gap: 4px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; color: var(--white); background: rgba(10,23,40,.96); box-shadow: var(--shadow-md); animation: toastIn .25s ease both; pointer-events: auto; grid-template-columns: 24px 1fr auto; }
.toast strong { font-size: 14px; }
.toast p { margin: 0; color: var(--ink-300); font-size: 12px; }
.toast button { border: 0; color: var(--ink-300); background: transparent; cursor: pointer; }
.toast--success > span { color: var(--mint); }
.toast--error > span { color: #ff8f9a; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } }

.modal { width: min(720px, calc(100% - 30px)); max-height: calc(100vh - 36px); padding: 0; overflow: auto; border: 0; border-radius: 20px; background: transparent; box-shadow: var(--shadow-md); }
.modal::backdrop { background: rgba(4, 12, 22, .68); backdrop-filter: blur(4px); }
.modal-card { padding: 28px; border-radius: 20px; background: var(--white); }
.modal-heading { display: flex; margin-bottom: 24px; gap: 20px; align-items: flex-start; justify-content: space-between; }
.modal-heading h2 { margin: 0; }
.modal--small { width: min(470px, calc(100% - 30px)); text-align: center; }
.modal--small .modal-actions { justify-content: center; }
.danger-icon { display: grid; width: 54px; height: 54px; margin: 0 auto 17px; place-items: center; border-radius: 50%; color: var(--danger); background: var(--danger-pale); font-size: 23px; font-weight: 900; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.field--wide { grid-column: 1 / -1; }
.modal-actions { display: flex; padding-top: 24px; gap: 10px; justify-content: flex-end; }

/* Detail */
.detail-section { padding-top: 42px; }
.back-link { display: inline-flex; margin-bottom: 34px; color: var(--ink-600); font-weight: 730; text-decoration: none; }
.back-link:hover { color: var(--mint-dark); }
.paper-detail-header { padding: 48px; border-radius: var(--radius-lg); color: var(--white); background: linear-gradient(135deg, #0b1b2e, #172d49 60%, #28305f); box-shadow: var(--shadow-md); }
.paper-detail-header h1 { max-width: 900px; margin: 25px 0 18px; font-size: clamp(2rem, 4vw, 3.5rem); }
.paper-detail-meta { display: flex; gap: 10px; align-items: center; color: var(--ink-300); font-size: 12px; }
.paper-authors { color: var(--ink-300); }
.paper-detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.detail-grid { display: grid; padding-top: 52px; grid-template-columns: minmax(0, 1fr) 280px; gap: 60px; }
.detail-main { display: grid; gap: 52px; }
.detail-main h2, .detail-aside h2 { font-size: 1.55rem; }
.abstract-text { color: var(--ink-700); font-size: 17px; line-height: 1.85; white-space: pre-wrap; }
.detail-aside { align-self: start; padding: 24px; border: 1px solid var(--ink-200); border-radius: 16px; background: var(--white); box-shadow: var(--shadow-sm); }
.detail-aside dl { margin: 0 0 20px; }
.detail-aside dl div { padding: 13px 0; border-bottom: 1px solid var(--ink-100); }
.detail-aside dt { color: var(--ink-500); font-size: 11px; font-weight: 750; }
.detail-aside dd { overflow-wrap: anywhere; margin: 3px 0 0; font-size: 13px; }

/* Import */
.source-pill { display: grid; padding: 14px 18px; border: 1px solid rgba(255,255,255,.13); border-radius: 14px; background: rgba(255,255,255,.05); grid-template-columns: auto 1fr; gap: 1px 9px; }
.source-pill i { width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(53,197,139,.12); grid-row: 1 / 3; }
.source-pill span { font-size: 12px; font-weight: 750; }
.source-pill strong { color: var(--ink-300); font-size: 10px; font-weight: 500; }
.tab-list { display: flex; width: fit-content; padding: 5px; margin-bottom: 20px; border: 1px solid var(--ink-200); border-radius: 13px; background: var(--white); }
.tab-list button { min-width: 130px; padding: 10px 15px; border: 0; border-radius: 9px; color: var(--ink-600); background: transparent; font-weight: 760; cursor: pointer; }
.tab-list button[aria-selected="true"] { color: var(--white); background: var(--ink-900); box-shadow: var(--shadow-sm); }
.import-panel { padding: 38px; border: 1px solid var(--ink-200); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-sm); }
.import-panel-copy { max-width: 690px; margin-bottom: 30px; }
.import-panel-copy p:not(.eyebrow) { color: var(--ink-600); }
.lookup-form { padding: 22px; border-radius: 16px; background: var(--ink-100); }
.lookup-form > label { display: block; margin-bottom: 8px; }
.lookup-input-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.lookup-input-row input { min-height: 50px; }
.lookup-form > small { display: block; margin-top: 8px; color: var(--ink-500); }
.retrieval-card { display: grid; padding: 25px; margin-top: 22px; gap: 18px; border: 1px solid var(--ink-200); border-radius: 16px; background: #fbfcfd; grid-template-columns: 1fr auto; }
.retrieval-card h3 { font-size: 1.35rem; }
.retrieval-card p { color: var(--ink-600); }
.retrieval-meta { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; color: var(--ink-500); font-size: 12px; }
.retrieval-actions { display: flex; flex-direction: column; gap: 9px; align-items: stretch; justify-content: center; }
.drop-zone { display: grid; min-height: 190px; padding: 28px; place-items: center; align-content: center; border: 2px dashed var(--ink-200); border-radius: 16px; background: #fafbfd; text-align: center; cursor: pointer; transition: border-color var(--transition), background var(--transition); }
.drop-zone:hover, .drop-zone.is-dragging { border-color: var(--violet); background: var(--violet-pale); }
.drop-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop-zone strong { margin: 8px 0 2px; }
.drop-zone small { color: var(--ink-500); font-weight: 500; }
.drop-icon { color: var(--violet); font-size: 35px; }
.divider { display: flex; margin: 24px 0; align-items: center; color: var(--ink-500); font-size: 11px; }
.divider::before, .divider::after { height: 1px; background: var(--ink-100); content: ""; flex: 1; }
.divider span { padding: 0 13px; }
.import-actions { display: flex; margin-top: 15px; gap: 10px; justify-content: flex-end; }
.privacy-note { display: flex; padding: 18px 20px; margin-top: 18px; gap: 12px; border: 1px solid #d7e8f4; border-radius: 14px; background: #edf7fd; }
.privacy-note span { color: var(--blue); }
.privacy-note p { margin: 0; color: var(--ink-600); font-size: 13px; }
.batch-summary { display: grid; padding: 18px; margin-top: 22px; gap: 10px; border: 1px solid var(--ink-200); border-radius: 14px; background: #fbfcfd; grid-template-columns: repeat(4, 1fr); }
.batch-summary div { padding: 8px 12px; border-right: 1px solid var(--ink-100); }
.batch-summary div:last-child { border: 0; }
.batch-summary strong { display: block; font-size: 23px; }
.batch-summary span { color: var(--ink-500); font-size: 11px; }
.batch-results { margin-top: 14px; border: 1px solid var(--ink-200); border-radius: 14px; overflow: hidden; }
.batch-result-row { display: grid; padding: 13px 16px; gap: 12px; align-items: center; border-top: 1px solid var(--ink-100); grid-template-columns: 85px 1fr; }
.batch-result-row:first-child { border: 0; }
.batch-result-row strong, .batch-result-row small { display: block; }
.batch-result-row small { margin-top: 3px; color: var(--ink-500); line-height: 1.5; }
.result-status { display: inline-flex; width: fit-content; padding: 4px 7px; border-radius: 6px; font-size: 10px; font-weight: 800; }
.result-status--success { color: #18765c; background: var(--mint-pale); }
.result-status--duplicate { color: #665eb8; background: var(--violet-pale); }
.result-status--error { color: var(--danger); background: var(--danger-pale); }

/* Trends */
.page-hero--trends { background: linear-gradient(115deg, var(--ink-950), #17284d); }
.year-display { display: grid; min-width: 180px; padding: 20px 24px; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: rgba(255,255,255,.05); }
.year-display span { color: var(--mint); font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.year-display strong { font-size: 47px; line-height: 1.2; }
.trend-controls { display: grid; padding: 17px; margin-bottom: 24px; gap: 18px; align-items: end; border: 1px solid var(--ink-200); border-radius: 16px; background: var(--white); box-shadow: var(--shadow-sm); grid-template-columns: minmax(190px, .7fr) 1fr auto; }
.trend-controls fieldset { display: flex; min-height: 44px; padding: 8px 12px; margin: 0; gap: 17px; align-items: center; border: 1px solid var(--ink-200); border-radius: 10px; }
.trend-controls legend { padding: 0 4px; font-size: 11px; }
.trend-controls fieldset label { display: flex; gap: 6px; align-items: center; cursor: pointer; }
.trend-controls input[type="checkbox"] { width: 15px; min-height: auto; height: 15px; }
.check-color { width: 7px; height: 7px; border-radius: 50%; }
.check-color--cvpr { background: var(--blue); }
.check-color--iccv { background: var(--orange); }
.check-color--eccv { background: var(--green); }
.trend-workspace { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 20px; }
.trend-chart-panel, .race-panel { padding: 28px; }
.canvas-wrap { position: relative; height: 400px; margin-top: 14px; }
.canvas-wrap canvas { width: 100%; height: 100%; }
.chart-tooltip { position: absolute; z-index: 3; min-width: 150px; padding: 10px 12px; border-radius: 9px; color: var(--white); background: rgba(6,16,29,.93); box-shadow: var(--shadow-sm); font-size: 12px; pointer-events: none; transform: translate(-50%, calc(-100% - 12px)); }
.chart-legend { display: flex; padding-top: 13px; gap: 18px; justify-content: center; }
.chart-legend span { display: flex; gap: 7px; align-items: center; color: var(--ink-600); font-size: 12px; }
.chart-legend i { width: 17px; height: 3px; border-radius: 9px; }
.race-year { color: var(--violet); font-size: 32px; }
.race-bars { display: grid; min-height: 290px; padding-top: 35px; gap: 24px; align-content: center; }
.race-row { display: grid; grid-template-columns: 48px 1fr 54px; gap: 10px; align-items: center; }
.race-row span { font-size: 12px; font-weight: 790; }
.race-track { overflow: hidden; height: 18px; border-radius: 6px; background: var(--ink-100); }
.race-track i { display: block; height: 100%; width: var(--race-width, 0%); border-radius: inherit; transition: width .55s cubic-bezier(.2,.8,.2,1); }
.race-row strong { text-align: right; font-size: 13px; }
.race-row small { grid-column: 2 / 4; margin-top: -20px; color: var(--ink-500); }
.timeline-controls { display: grid; padding-top: 20px; gap: 9px; align-items: center; border-top: 1px solid var(--ink-100); grid-template-columns: auto auto 1fr auto; }
.timeline-range input { min-height: auto; padding: 0; accent-color: var(--violet); }
.method-note { display: flex; padding: 28px; margin-top: 22px; gap: 20px; border: 1px solid #d9d6ff; border-radius: 18px; background: var(--violet-pale); }
.method-note .method-icon { flex: 0 0 auto; margin: 0; color: var(--violet); border-color: rgba(123,112,245,.2); background: var(--white); }
.method-note h2 { font-size: 1.25rem; }
.method-note p { margin: 0; color: var(--ink-600); }

/* About */
.hero--about .hero-grid { min-height: 500px; padding-block: 70px; }
.about-manifesto { display: grid; padding: 30px; border: 1px solid rgba(255,255,255,.1); border-radius: 22px; background: rgba(255,255,255,.04); grid-template-columns: auto 1fr; gap: 18px 22px; }
.about-manifesto span { color: var(--mint); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; }
.about-manifesto p { margin: 0; color: var(--ink-300); font-size: 13px; }
.about-manifesto strong { color: var(--white); font-size: 22px; }
.conference-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.conference-card { position: relative; overflow: hidden; min-height: 250px; padding: 30px; border: 1px solid var(--ink-200); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
.conference-card::after { position: absolute; right: -45px; bottom: -60px; width: 150px; height: 150px; border: 24px solid var(--accent); border-radius: 50%; opacity: .08; content: ""; }
.conference-card > span { display: inline-block; padding: 5px 9px; margin-bottom: 34px; border-radius: 7px; color: var(--white); background: var(--accent); font-size: 11px; font-weight: 800; }
.conference-card h3 { font-size: 1.3rem; }
.conference-card p { color: var(--ink-600); }
.conference-card--cvpr { --accent: var(--blue); }
.conference-card--iccv { --accent: var(--orange); }
.conference-card--eccv { --accent: var(--green); }
.section--method { background: var(--white); }
.method-layout { display: grid; grid-template-columns: minmax(270px, .7fr) minmax(0, 1.3fr); gap: 90px; align-items: start; }
.section-heading--sticky { position: sticky; top: calc(var(--header-h) + 34px); }
.method-steps { padding: 0; margin: 0; list-style: none; }
.method-steps li { display: grid; padding: 28px 0; border-bottom: 1px solid var(--ink-100); grid-template-columns: 55px 1fr; }
.method-steps li > span { color: var(--violet); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; font-weight: 800; }
.method-steps p { margin: 0; color: var(--ink-600); }
.formula-card--wide { margin: 12px 0 0; border-color: var(--ink-200); background: var(--ink-100); }
.formula-card--wide strong { color: var(--ink-900); }
.formula-card--wide small { color: var(--ink-500); }
.flow-diagram { display: grid; padding: 30px; align-items: center; border: 1px solid var(--ink-200); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-sm); grid-template-columns: repeat(4, minmax(110px, 1fr) auto) minmax(110px, 1fr); }
.flow-diagram > div { display: grid; min-height: 140px; padding: 17px; align-content: center; border-radius: 13px; background: var(--ink-100); text-align: center; }
.flow-diagram > div span { color: var(--violet); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; }
.flow-diagram > div strong { margin: 7px 0; }
.flow-diagram > div small { color: var(--ink-500); }
.flow-diagram > i { padding: 0 8px; color: var(--ink-300); font-style: normal; }
.section--limitations { color: var(--white); background: var(--ink-900); }
.limitations-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 80px; }
.limitations-grid .eyebrow { color: var(--mint); }
.limitations-grid ul { padding: 0; margin: 0; list-style: none; }
.limitations-grid li { padding: 18px 0; color: var(--ink-300); border-top: 1px solid rgba(255,255,255,.08); }
.limitations-grid strong { color: var(--white); }

/* Footer and reveal */
.site-footer { padding-block: 48px; color: var(--ink-300); background: var(--ink-950); }
.footer-grid { display: flex; gap: 35px; align-items: end; justify-content: space-between; }
.brand--footer { color: var(--white); font-size: 21px; font-weight: 800; }
.site-footer p { margin: 9px 0 0; font-size: 13px; }
.footer-meta { display: grid; gap: 4px; text-align: right; font-size: 11px; }
.reveal { animation: reveal .65s ease both; }
.reveal--delay { animation-delay: .12s; }
@keyframes reveal { from { opacity: 0; transform: translateY(18px); } }

/* Responsive */
@media (max-width: 1040px) {
  .primary-nav a { padding-inline: 9px; }
  .hero-grid { grid-template-columns: 1fr .8fr; gap: 30px; }
  .search-panel { grid-template-columns: minmax(240px, 1fr) 150px 110px 100px; }
  .search-panel .button { width: 100%; }
  .trend-workspace { grid-template-columns: 1fr; }
  .race-bars { min-height: 210px; }
  .flow-diagram { grid-template-columns: 1fr; gap: 7px; }
  .flow-diagram > div { min-height: auto; }
  .flow-diagram > i { transform: rotate(90deg); text-align: center; }
}

@media (max-width: 840px) {
  :root { --header-h: 68px; }
  .shell { width: min(calc(100% - 32px), var(--shell)); }
  .nav-toggle { display: grid; align-content: center; }
  .primary-nav { position: fixed; z-index: 99; top: var(--header-h); right: 0; bottom: 0; left: 0; display: grid; padding: 20px 18px; align-content: start; background: rgba(6,16,29,.985); transform: translateX(100%); transition: transform .25s ease; }
  .primary-nav.is-open { transform: translateX(0); }
  .primary-nav a { padding: 15px; font-size: 16px; }
  .primary-nav a[aria-current="page"]::after { right: auto; bottom: 10px; left: 15px; width: 30px; }
  .hero-grid { min-height: auto; padding-block: 65px 85px; grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-copy { max-width: 700px; }
  .section { padding-block: 70px; }
  .section--flush-top { padding-top: 48px; }
  .section-heading--split { display: block; }
  .filter-bar { width: 100%; margin-top: 22px; }
  .metric-strip { grid-template-columns: repeat(2, 1fr); }
  .metric-strip article:nth-child(3)::before { display: none; }
  .metric-strip article:nth-child(n+3) { border-top: 1px solid var(--ink-100); }
  .insight-grid { grid-template-columns: 1fr; }
  .graph-layout { height: 860px; grid-template-columns: 1fr; grid-template-rows: 500px 360px; }
  .related-panel { min-height: 0; padding-top: 20px; border-top: 1px solid var(--ink-200); border-left: 0; }
  .related-empty { min-height: 0; }
  .cta-card { padding: 38px; gap: 30px; }
  .search-panel { grid-template-columns: 1fr 1fr; }
  .search-field { grid-column: 1 / -1; }
  .paper-table th:nth-child(1), .paper-table td:nth-child(1), .paper-table th:nth-child(4), .paper-table td:nth-child(4) { display: none; }
  .detail-grid { grid-template-columns: 1fr; gap: 35px; }
  .detail-aside { position: static; }
  .conference-grid { grid-template-columns: 1fr; }
  .conference-card { min-height: auto; }
  .conference-card > span { margin-bottom: 20px; }
  .method-layout, .limitations-grid { grid-template-columns: 1fr; gap: 35px; }
  .section-heading--sticky { position: static; }
  .trend-controls { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .shell { width: min(calc(100% - 24px), var(--shell)); }
  .brand-copy small { display: none; }
  .hero-grid { padding-block: 52px 76px; }
  .hero h1 { font-size: clamp(2.45rem, 13vw, 3.6rem); }
  .hero-lead { font-size: 16px; }
  .hero-actions { display: grid; }
  .hero-actions .button { width: 100%; }
  .trust-list { flex-wrap: wrap; gap: 8px 17px; }
  .section { padding-block: 56px; }
  .section-heading { margin-bottom: 27px; }
  .filter-bar { display: grid; grid-template-columns: 1fr 1fr; }
  .filter-bar label { min-width: 0; }
  .filter-bar select { min-width: 0; }
  .filter-bar button { grid-column: 1 / -1; }
  .metric-strip { grid-template-columns: 1fr 1fr; }
  .metric-strip article { min-height: 118px; padding: 19px; }
  .metric-strip strong { font-size: 25px; }
  .panel--hot, .panel--method { padding: 24px; }
  .panel-heading { display: block; }
  .panel-heading .data-chip { display: inline-flex; margin-bottom: 12px; }
  .ranking-item { grid-template-columns: 29px minmax(0, 1fr) 54px; }
  .ranking-bar { grid-column: 2 / 4; grid-row: 2; }
  .graph-legend { display: none; }
  .graph-layout { height: 862px; grid-template-rows: 500px 360px; }
  .graph-stage { min-height: 0; height: 500px; }
  .cta-card { display: grid; min-height: 330px; padding: 30px 25px; align-content: center; }
  .cta-card .button { width: 100%; }
  .page-hero-inner { display: grid; min-height: 230px; padding-block: 42px; }
  .page-hero .button { width: 100%; }
  .search-panel { grid-template-columns: 1fr; }
  .search-field { grid-column: auto; }
  .list-toolbar { display: grid; padding-block: 18px; gap: 7px; }
  .paper-table, .paper-table tbody, .paper-table tr, .paper-table td { display: block; width: 100%; }
  .paper-table thead { display: none; }
  .paper-table tr { position: relative; padding: 17px; border-top: 1px solid var(--ink-100); }
  .paper-table tr:first-child { border: 0; }
  .paper-table td { display: block !important; padding: 5px 0; border: 0; }
  .paper-table td:first-child { display: none !important; }
  .paper-table td:last-child { position: absolute; top: 12px; right: 10px; width: auto; }
  .paper-table td:nth-child(2) { padding-right: 86px; }
  .paper-table td:nth-child(4) { padding-right: 80px; }
  .network-fallback { grid-template-columns: 1fr; }
  .network-card, .retrieval-card { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .field--wide { grid-column: auto; }
  .modal-card { padding: 22px 18px; }
  .paper-detail-header { padding: 30px 23px; }
  .paper-detail-actions .button { width: 100%; }
  .import-panel { padding: 25px 18px; }
  .tab-list { display: grid; width: 100%; grid-template-columns: 1fr 1fr; }
  .tab-list button { min-width: 0; }
  .lookup-input-row { grid-template-columns: 1fr; }
  .batch-summary { grid-template-columns: 1fr 1fr; }
  .batch-summary div:nth-child(2) { border-right: 0; }
  .batch-summary div:nth-child(n+3) { border-top: 1px solid var(--ink-100); }
  .source-pill, .year-display { display: none; }
  .trend-controls fieldset { flex-wrap: wrap; }
  .trend-chart-panel, .race-panel { padding: 21px 15px; }
  .canvas-wrap { height: 320px; }
  .timeline-controls { grid-template-columns: 1fr 1fr; }
  .timeline-range { grid-column: 1 / -1; grid-row: 2; }
  .method-note { display: grid; }
  .about-manifesto { padding: 23px; }
  .footer-grid { display: grid; }
  .footer-meta { text-align: left; }
}

@media (max-width: 390px) {
  h2 { font-size: 1.65rem; }
  .metric-strip { grid-template-columns: 1fr; }
  .metric-strip article { min-height: 102px; }
  .metric-strip article + article::before { display: none; }
  .metric-strip article:nth-child(n+2) { border-top: 1px solid var(--ink-100); }
  .filter-bar { grid-template-columns: 1fr; }
  .filter-bar button { grid-column: auto; }
  .paper-actions { gap: 0; }
  .batch-summary { grid-template-columns: 1fr; }
  .batch-summary div { border-right: 0; border-top: 1px solid var(--ink-100); }
  .batch-summary div:first-child { border-top: 0; }
  .race-row { grid-template-columns: 42px 1fr 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
