@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/roboto-latin.woff2") format("woff2");
  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: "Roboto";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/roboto-latin-ext.woff2") format("woff2");
  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;
}

:root {
  --bg: #f6f8fb;
  --panel: #ffffff;
  --ink: #122033;
  --muted: #607086;
  --line: #d9e1ea;
  --line-strong: #c7d2df;
  --teal: #074b7a;
  --teal-dark: #032642;
  --teal-soft: #dff4f3;
  --amber: #b98216;
  --red: #b42318;
  --green: #087443;
  --shadow: 0 12px 35px rgba(18, 32, 51, .08);
  --font-sans: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { min-width: 320px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.5 var(--font-sans);
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
button,
input,
select,
textarea {
  font-family: var(--font-sans);
}
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(160px, 1fr);
  align-items: center;
  gap: 20px;
  min-height: 64px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 760;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid var(--teal);
  border-radius: 8px;
  color: var(--teal);
  font-size: 22px;
}
.topbar nav {
  display: flex;
  align-self: stretch;
}
.topbar nav a {
  display: grid;
  place-items: center;
  min-width: 92px;
  border-bottom: 3px solid transparent;
  color: var(--ink);
  font-weight: 650;
}
.topbar nav a:first-child { border-bottom-color: var(--teal); color: var(--teal-dark); }
.site-link { justify-self: end; color: var(--muted); font-size: 13px; }

.app-shell {
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr) 315px;
  gap: 14px;
  padding: 14px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.filters, .right-rail { align-self: start; position: sticky; top: 78px; }
.filters { padding: 18px; }
.right-rail { display: grid; gap: 14px; }
.right-rail .panel { padding: 0; }
.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 20px; line-height: 1.2; margin-bottom: 0; }
h2 { font-size: 17px; line-height: 1.2; margin-bottom: 16px; }
h3 { font-size: 14px; line-height: 1.35; margin-bottom: 8px; }
.panel-title h2 { margin: 0; }
.panel-title a { font-size: 12px; font-weight: 700; }
.field { display: grid; gap: 8px; margin-bottom: 16px; }
.field span, legend {
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
}
fieldset {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}
label { color: var(--ink); }
fieldset label {
  display: flex;
  align-items: center;
  gap: 9px;
}
.accordion {
  overflow: hidden;
}
.accordion > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 780;
  list-style: none;
  cursor: pointer;
}
.accordion > summary::-webkit-details-marker { display: none; }
.accordion > summary:after {
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform .16s ease;
  content: "";
}
.accordion[open] > summary {
  border-bottom: 1px solid var(--line);
}
.accordion[open] > summary:after {
  transform: rotate(225deg);
}
.accordion-body {
  padding: 14px;
}
.filter-advanced {
  margin: 0 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfd;
}
.filter-advanced > summary {
  min-height: 38px;
  padding: 0 10px;
  font-size: 12px;
}
.filter-advanced .accordion-body {
  padding: 12px 10px 2px;
}
small {
  margin-left: auto;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
}
input, select, button, textarea {
  font: inherit;
}
input[type="search"], input[type="email"], input[type="text"], input[type="password"], input[type="date"], input[type="number"], select {
  width: 100%;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  outline: 0;
}
input:focus, select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(7,75,122,.12);
}
input[type="checkbox"], input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--teal);
}
.date-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
button, .icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  font-weight: 750;
  cursor: pointer;
}
button svg, a svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  stroke-width: 2.2;
}
.iconed {
  gap: 8px;
}
.iconed span {
  display: inline-flex;
  align-items: center;
}
button[aria-busy="true"] {
  cursor: wait;
  opacity: .78;
}
.primary {
  width: 100%;
  border-color: var(--teal);
  background: linear-gradient(180deg, var(--teal), var(--teal-dark));
  color: #fff;
}
.copy-citation,
.copy-bibtex {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--teal);
  font-size: 12px;
  font-weight: 750;
}
.secondary {
  width: 100%;
  border-color: var(--teal);
  color: var(--teal-dark);
}
.export-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 12px;
}
.export-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  place-items: center;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fbfd;
  font-size: 12px;
  font-weight: 750;
}
.results {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}
.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, .75fr);
  gap: 10px;
  align-items: start;
  min-width: 0;
}
.overview-grid > *,
.latest-panel,
.summary,
.paper-panel,
.paper,
.paper-main,
.paper-meta {
  min-width: 0;
}
.latest-panel { padding: 14px; }
.latest-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}
.latest-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.latest-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}
.latest-nav {
  width: 30px;
  height: 30px;
  min-height: 30px;
  border-radius: 999px;
}
.latest-nav:disabled {
  cursor: not-allowed;
  opacity: .38;
}
.latest-status {
  display: grid;
  justify-items: end;
  gap: 5px;
  min-width: 240px;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}
.latest-status strong { color: var(--ink); }
.public-refresh-form {
  margin: 0;
}
.inline-action {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--teal-dark);
  font-size: 12px;
  background: #fff;
}
.update-check {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fbfd;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(7,75,122,.18);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}
.update-check.is-pending .status-dot { background: var(--amber); }
.update-check.is-error .status-dot { background: var(--red); }
.update-check.is-done { color: var(--green); }
.update-check.is-pending { color: #75520d; background: #fff8e8; border-color: rgba(185,130,22,.28); }
.update-check.is-error { color: var(--red); background: #fff1f0; border-color: rgba(180,35,24,.28); }
@keyframes spin { to { transform: rotate(360deg); } }
.latest-list {
  display: grid;
  grid-auto-columns: minmax(220px, 32%);
  grid-auto-flow: column;
  grid-template-columns: none;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.latest-list.is-loading {
  opacity: .72;
}
.latest-paper {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  height: 146px;
  padding: 10px 12px;
  border-right: 1px solid var(--line);
  border-bottom: 0;
  background: linear-gradient(180deg, #fff, #fbfdff);
  overflow: hidden;
  scroll-snap-align: start;
}
.latest-paper:last-child { border-right: 0; }
.latest-paper h3 {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 4px;
  font-size: 13px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.latest-paper h3 a { color: var(--teal-dark); }
.latest-paper h3,
.paper h3,
.abstract,
.paper-meta span,
.paper-meta strong,
.links a {
  overflow-wrap: anywhere;
}
.latest-paper p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
}
.latest-authors {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
.latest-paper .links {
  max-height: 20px;
  overflow: hidden;
  gap: 8px 12px;
}
.latest-paper .links a {
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.latest-paper .tags {
  max-height: 25px;
  overflow: hidden;
}
.latest-paper .tags span:nth-child(n + 4) {
  display: none;
}
.state-compact { min-height: 150px; }
.state-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.state-actions .primary,
.state-actions .secondary {
  width: auto;
  min-width: 150px;
  min-height: 40px;
}

.state-actions .secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border: 1px solid rgba(7,75,122,.2);
  border-radius: 6px;
  background: #fff;
  color: var(--teal-dark);
  font-weight: 800;
}

.state-actions .secondary:hover,
.state-actions .secondary:focus-visible {
  border-color: rgba(7,75,122,.42);
  background: #e8f6fb;
  text-decoration: none;
}
.summary { padding: 14px; }
.summary-head {
  display: grid;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
}
.auto {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal-dark);
  font-weight: 750;
}
.auto:after {
  width: 30px;
  height: 16px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: inset 14px 0 0 rgba(255,255,255,.9);
  content: "";
}
.metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.overview-grid .metrics div:first-child { grid-column: 1 / -1; }
.metrics div {
  min-height: 68px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f8fbfd);
}
.metrics strong { display: block; font-size: 22px; letter-spacing: 0; }
.metrics span { color: var(--muted); font-size: 12px; font-weight: 680; }
.paper-panel { overflow: hidden; }
.result-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.pager {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}
.icon-btn {
  width: 36px;
  height: 36px;
  min-height: 36px;
  font-size: 24px;
  line-height: 1;
}
.icon-btn.disabled {
  pointer-events: none;
  opacity: .38;
}
.paper-list { display: grid; }
.paper {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 240px 160px;
  gap: 18px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.paper:last-child { border-bottom: 0; }
.paper h3 a { color: var(--teal-dark); }
.abstract {
  margin-bottom: 10px;
  color: #2e3d4f;
  font-size: 13px;
}
.links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  font-size: 12px;
  font-weight: 700;
}
.links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.paper-meta {
  display: grid;
  align-content: start;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
}
.paper-meta strong { color: var(--ink); font-size: 13px; }
.tags {
  display: flex;
  align-content: start;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 7px;
}
.tags span {
  padding: 5px 8px;
  border-radius: 6px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 750;
}
.tags .soft {
  background: #e8eef5;
  color: #35506d;
}
.tags .source-badge {
  border-color: rgba(6, 43, 73, .16);
  background: #e7f0f8;
  color: var(--navy-2);
}
.tags .status-badge {
  border-color: rgba(6, 43, 73, .14);
  background: #f1f6fb;
  color: #233d57;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.tags .status-preprint {
  border-color: rgba(176, 98, 0, .28);
  background: #fff4df;
  color: #8a4e00;
}
.tags .status-clinical-trial {
  border-color: rgba(0, 105, 143, .22);
  background: #e6f7fc;
  color: #005b7e;
}
.tags .status-protocol {
  border-color: rgba(89, 77, 160, .22);
  background: #f0eefb;
  color: #4f468d;
}
.tags .status-review {
  border-color: rgba(30, 119, 82, .22);
  background: #eaf7f1;
  color: #1e6c4d;
}
.notice {
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 700;
}
.notice.success { border: 1px solid rgba(8,116,67,.28); background: #edf8f2; color: var(--green); }
.notice.error { border: 1px solid rgba(180,35,24,.28); background: #fff1f0; color: var(--red); }
.state {
  display: grid;
  place-items: center;
  min-height: 320px;
  padding: 42px;
  color: var(--muted);
  text-align: center;
}
.state strong { color: var(--ink); font-size: 18px; }
.state code {
  padding: 2px 5px;
  border-radius: 4px;
  background: #edf2f7;
  color: var(--ink);
}
.alert-form .primary { margin-top: 2px; }
.digest pre {
  overflow: auto;
  max-height: 320px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fbfd;
  color: #27364a;
  white-space: pre-wrap;
  font: 12px/1.5 var(--font-mono);
}
.admin h3 {
  margin: 18px 0 8px;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--muted);
}
.debug-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 12px;
}
.debug-list li {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.debug-list.errors { color: var(--red); }
.analytics h3 {
  margin: 16px 0 8px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}
.timeline-card {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}
.timeline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.timeline-head h3 {
  margin: 0;
}
.timeline-controls {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fbfd;
}
.timeline-controls button {
  min-height: 26px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
}
.timeline-controls button.is-active {
  background: var(--teal);
  color: #fff;
}
#publication-timeline {
  width: 100%;
  height: 220px;
  max-height: 220px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.mini-bars {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  align-items: end;
  gap: 5px;
  min-height: 100px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfd;
}
.mini-bars span {
  display: grid;
  justify-items: center;
  align-items: end;
  gap: 5px;
  min-width: 0;
}
.mini-bars i {
  display: block;
  width: 100%;
  max-width: 18px;
  border-radius: 4px 4px 0 0;
  background: var(--teal);
}
.mini-bars small {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 9px;
  transform: rotate(-35deg);
}
.rank-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rank-list li {
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.rank-filter-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  margin: -6px -8px 0;
  border-radius: 7px;
  color: inherit;
  text-decoration: none;
}
.rank-filter-link:hover,
.rank-filter-link:focus-visible {
  background: rgba(26, 107, 84, .1);
  color: var(--forest);
  text-decoration: none;
}
.hero-net {
  display: block;
  opacity: .52;
  mix-blend-mode: screen;
}
.rank-list span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rank-list strong { color: var(--ink); }
.curation-form {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.curation-form label:not(.field) {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}
.footer {
  padding: 14px 20px 24px;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 1180px) {
  .app-shell { grid-template-columns: 260px minmax(0, 1fr); }
  .right-rail { grid-column: 1 / -1; position: static; grid-template-columns: repeat(3, 1fr); }
  .overview-grid { grid-template-columns: 1fr; }
  .overview-grid .metrics { grid-template-columns: repeat(5, 1fr); }
  .overview-grid .metrics div:first-child { grid-column: auto; }
  .paper { grid-template-columns: minmax(0, 1fr) 220px; }
  .tags { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .topbar { grid-template-columns: 1fr; gap: 8px; padding: 12px 14px; }
  .topbar nav { order: 3; overflow-x: auto; }
  .topbar nav a { min-height: 38px; min-width: 78px; }
  .site-link { justify-self: start; }
  .app-shell { grid-template-columns: 1fr; padding: 10px; }
  .filters { order: 2; position: static; }
  .results { order: 1; }
  .right-rail { order: 3; grid-template-columns: 1fr; }
  .overview-grid .metrics {
    display: flex;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .overview-grid .metrics div,
  .overview-grid .metrics div:first-child {
    flex: 0 0 112px;
    grid-column: auto;
  }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .latest-head { flex-direction: column; }
  .latest-status { justify-items: start; min-width: 0; text-align: left; }
  .latest-list {
    grid-auto-columns: minmax(280px, 86%);
    grid-auto-flow: column;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }
  .latest-paper {
    grid-template-columns: 1fr;
    min-height: 150px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
    scroll-snap-align: start;
  }
  .latest-paper:nth-child(2n) { border-right: 1px solid var(--line); }
  .latest-paper:last-child { border-right: 0; }
  #publication-timeline {
    height: 190px;
    max-height: 190px;
  }
  .paper { grid-template-columns: 1fr; gap: 10px; }
  .result-bar, .summary-head { align-items: flex-start; flex-direction: column; }
}

/* 2026 brand refresh: self-contained research dashboard, no external UI assets. */
:root {
  --bg: #eef3f8;
  --panel: #ffffff;
  --ink: #172337;
  --muted: #5d6f88;
  --line: #d5e0eb;
  --line-strong: #bdcbd9;
  --navy: #0b3c5d;
  --navy-2: #092f49;
  --teal: #074b7a;
  --teal-dark: #032642;
  --teal-soft: #e1f3f3;
  --amber: #b98216;
  --red: #b42318;
  --green: #087443;
  --shadow: 0 18px 45px rgba(20, 42, 67, .08);
  --shadow-soft: 0 8px 22px rgba(20, 42, 67, .07);
}

html {
  scroll-behavior: auto;
}

body {
  background:
    radial-gradient(circle at 12% -6%, rgba(7, 75, 122, .12), transparent 34%),
    linear-gradient(180deg, #f7fafc 0, var(--bg) 360px, #edf3f7 100%);
  color: var(--ink);
}

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

.topbar {
  grid-template-columns: minmax(250px, 1fr) auto minmax(190px, 1fr);
  min-height: 70px;
  padding: 0 24px;
  border-bottom: 0;
  border-bottom-right-radius: 16px;
  border-bottom-left-radius: 16px;
  background: linear-gradient(180deg, var(--navy), var(--navy-2));
  box-shadow: 0 12px 28px rgba(6, 28, 46, .18);
}

.brand {
  color: #fff;
  gap: 11px;
}

.brand:hover,
.site-link:hover {
  text-decoration: none;
}

.brand-logo {
  width: 38px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}

.brand span {
  display: grid;
  gap: 2px;
}

.brand strong {
  font-size: 18px;
  line-height: 1;
}

.brand small {
  margin: 0;
  padding: 0;
  border: 0;
  color: rgba(255, 255, 255, .72);
  font-size: 11px;
  font-weight: 650;
}

.topbar nav {
  gap: 3px;
}

.topbar nav a {
  min-width: 92px;
  border: 0;
  border-radius: 999px;
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
}

.topbar nav a:first-child,
.topbar nav a:hover {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  text-decoration: none;
}

.site-link {
  color: rgba(255, 255, 255, .72);
}

.hero-band {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .55fr);
  gap: 22px;
  max-width: 1480px;
  margin: 18px auto 0;
  padding: 0 14px;
}

.hero-copy {
  min-width: 0;
  padding: 24px;
  border: 1px solid rgba(11, 60, 93, .13);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(11, 60, 93, .96), rgba(7, 75, 122, .88)),
    var(--navy);
  color: #fff;
  box-shadow: var(--shadow);
}

.hero-copy h1 {
  max-width: 780px;
  margin-bottom: 8px;
  color: #fff;
  font-size: 30px;
  line-height: 1.08;
}

.hero-copy p {
  max-width: 770px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, .82);
  font-size: 15px;
}

.hero-search {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  max-width: 820px;
  min-height: 52px;
  padding: 7px 8px 7px 16px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 10px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 10px 24px rgba(5, 30, 45, .18);
}

.hero-search .svg-icon {
  color: var(--teal);
}

.hero-search input {
  min-height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
  font-size: 15px;
}

.hero-search button {
  min-height: 38px;
  padding: 0 17px;
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.hero-meta span {
  display: inline-flex;
  gap: 5px;
  min-height: 30px;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .82);
  font-size: 12px;
  font-weight: 700;
}

.hero-meta strong {
  color: #fff;
}

.hero-media {
  display: grid;
  grid-template-rows: 230px auto auto;
  gap: 10px;
  min-width: 0;
}

.hero-image,
.hero-strip {
  display: block;
  width: 100%;
  border: 1px solid rgba(11, 60, 93, .12);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.hero-image {
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.hero-strip {
  height: 54px;
  padding: 8px;
  object-fit: contain;
}

.audio-player {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(11, 60, 93, .96), rgba(7, 75, 122, .9));
  box-shadow: var(--shadow-soft);
}

.audio-toggle {
  width: 44px;
  height: 44px;
  min-height: 44px;
  border-color: rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--teal-dark);
  box-shadow: 0 8px 18px rgba(5, 30, 45, .16);
}

.audio-toggle[aria-pressed="true"] {
  background: #fff;
  color: var(--navy);
}

.audio-main {
  min-width: 0;
}

.audio-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, .82);
  font-size: 11px;
  font-weight: 700;
}

.audio-row strong {
  overflow: hidden;
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audio-row span {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
}

#audio-visualizer {
  display: block;
  width: 100%;
  height: 44px;
  border-radius: 8px;
  background: rgba(5, 30, 45, .23);
}

.app-shell {
  grid-template-columns: 300px minmax(0, 1fr) 320px;
  gap: 16px;
  max-width: 1480px;
  margin: 0 auto;
  padding: 16px 14px;
}

.panel {
  border-color: rgba(11, 60, 93, .13);
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
}

.filters,
.right-rail {
  top: 86px;
}

.filters {
  padding: 16px;
}

.panel-title {
  margin-bottom: 18px;
}

.panel-title h2,
.result-bar h1,
.latest-head h1 {
  color: var(--navy-2);
}

input[type="search"],
input[type="email"],
input[type="text"],
input[type="password"],
input[type="date"],
input[type="number"],
select {
  border-color: var(--line-strong);
  border-radius: 7px;
  background: #fbfdff;
}

button,
.icon-btn,
.export-links a {
  border-radius: 7px;
}

.primary {
  border-color: var(--teal);
  background: var(--teal);
  box-shadow: 0 8px 16px rgba(7, 75, 122, .16);
}

.secondary:hover,
.inline-action:hover,
.export-links a:hover {
  border-color: rgba(7, 75, 122, .45);
  background: var(--teal-soft);
  text-decoration: none;
}

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

.latest-panel {
  padding: 16px;
}

.latest-head {
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.latest-list {
  margin-top: 12px;
  border-radius: 9px;
}

.latest-paper {
  height: 164px;
  background: #fff;
}

.summary {
  padding: 16px;
}

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

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

.overview-grid .metrics div:first-child {
  grid-column: auto;
}

.metrics div {
  min-height: 82px;
  border-radius: 9px;
  background: linear-gradient(180deg, #fff, #f4f8fb);
}

.metrics strong {
  color: var(--navy);
}

.paper-panel {
  border-radius: 10px;
}

.paper {
  grid-template-columns: minmax(0, 1.45fr) 245px 172px;
  padding: 17px 18px;
  background: #fff;
}

.paper:hover,
.latest-paper:hover {
  background: #fbfdff;
}

.paper h3,
.latest-paper h3 {
  font-weight: 760;
}

.paper h3 a,
.latest-paper h3 a {
  color: #006f78;
}

.abstract {
  color: #334255;
}

.tags span {
  border: 1px solid rgba(7, 75, 122, .12);
  border-radius: 999px;
  background: var(--teal-soft);
}

.tags .soft {
  border-color: rgba(11, 60, 93, .09);
  background: #edf2f7;
}

.accordion > summary {
  min-height: 46px;
  color: var(--navy-2);
}

.accordion-body {
  padding: 14px;
}

.timeline-card {
  gap: 11px;
}

.timeline-head h3 {
  color: var(--navy-2);
}

.timeline-controls {
  border-radius: 8px;
}

.timeline-controls button {
  border-radius: 6px;
}

.timeline-chart {
  width: 100%;
  height: 220px;
  max-height: 220px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.timeline-chart svg {
  display: block;
  width: 100%;
  height: 100%;
}

.chart-grid {
  stroke: #dfe7ef;
  stroke-width: 1;
}

.chart-bar {
  fill: rgba(7, 75, 122, .24);
  stroke: rgba(7, 75, 122, .75);
  stroke-width: 1;
}

.chart-line {
  fill: none;
  stroke: var(--amber);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-point {
  fill: #fff;
  stroke: var(--amber);
  stroke-width: 2;
}

.chart-x,
.chart-y {
  fill: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.empty-chart {
  display: grid;
  height: 100%;
  place-items: center;
  margin: 0;
  color: var(--muted);
}

.mini-bars {
  border-radius: 8px;
}

.rank-list li {
  min-width: 0;
}

.svg-icon,
i[data-icon] svg {
  display: inline-flex;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

i[data-icon] svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

button .svg-icon,
a .svg-icon {
  pointer-events: none;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 1480px;
  margin: 0 auto;
  padding: 10px 14px 26px;
}

.footer img {
  width: 52px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
}

@media (max-width: 1220px) {
  .app-shell {
    grid-template-columns: 285px minmax(0, 1fr);
  }

  .right-rail {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

@media (max-width: 900px) {
  .topbar {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 14px;
    position: static;
  }

  .topbar nav {
    width: 100%;
    overflow-x: auto;
  }

  .topbar nav a {
    min-height: 38px;
    min-width: 86px;
  }

  .site-link {
    justify-self: start;
  }

  .hero-band {
    grid-template-columns: 1fr;
    margin-top: 10px;
    padding: 0 10px;
  }

  .hero-copy {
    padding: 46px 18px 18px;
  }

  .hero-copy h1 {
    font-size: 25px;
  }

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

  .hero-image {
    max-height: 180px;
  }

  .app-shell {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .filters,
  .right-rail {
    position: static;
  }

  .right-rail {
    grid-template-columns: 1fr;
  }

  .latest-head {
    align-items: flex-start;
  }

  .latest-status {
    justify-items: start;
    text-align: left;
  }

  .metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  .paper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .brand strong {
    font-size: 16px;
  }

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

  .hero-search button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .hero-meta {
    display: grid;
  }

  .hero-media {
    grid-template-rows: auto;
  }

  .hero-image,
  .hero-strip {
    display: none;
  }

  .latest-list {
    grid-auto-columns: minmax(274px, 88%);
  }

  .metrics {
    grid-template-columns: 1fr 1fr;
  }

  .timeline-chart {
    height: 190px;
    max-height: 190px;
  }

  .footer {
    align-items: flex-start;
    justify-content: flex-start;
  }
}

/* Mockup fidelity pass: compact white research dashboard. */
:root {
  --mock-bg: #f4f7fb;
  --mock-navy: #062b49;
  --mock-navy-2: #021c33;
  --mock-blue: #0a4775;
  --mock-cyan: #074b7a;
  --mock-border: #cfdbe8;
  --mock-border-strong: #b9c9d9;
  --mock-text: #0e2742;
  --mock-muted: #60738b;
  --mock-green: #15a66b;
  --mock-shadow: 0 1px 2px rgba(15, 39, 66, .05);
}

body {
  background: var(--mock-bg);
  color: var(--mock-text);
  font-size: 13px;
}

.topbar {
  grid-template-columns: minmax(360px, 1fr) auto minmax(120px, 1fr);
  min-height: 68px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(7, 75, 122, .35);
  border-radius: 0;
  background: linear-gradient(180deg, var(--mock-navy), var(--mock-navy-2));
  box-shadow: 0 2px 8px rgba(0, 22, 42, .18);
}

.brand {
  gap: 12px;
  color: #fff;
  font-size: 14px;
  letter-spacing: .02em;
}

.brand-image {
  width: 330px;
  max-width: 100%;
}

.brand-image img {
  display: block;
  width: 320px;
  height: auto;
  object-fit: contain;
}

.topbar nav {
  gap: 28px;
}

.topbar nav a {
  min-width: 0;
  min-height: 68px;
  padding: 0 3px;
  border-radius: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, .86);
  font-size: 12px;
  font-weight: 760;
}

.topbar nav a:first-child,
.topbar nav a:hover {
  border-bottom-color: var(--mock-cyan);
  background: transparent;
  color: #fff;
}

.admin-link {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--mock-cyan);
  border-radius: 5px;
  color: #fff;
  font-size: 12px;
  font-weight: 760;
}

.admin-link:hover {
  background: rgba(7, 75, 122, .12);
  text-decoration: none;
}

.top-actions {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.install-app,
.push-app {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(7, 75, 122, .72);
  border-radius: 5px;
  background: rgba(7, 75, 122, .08);
  color: #fff;
  font-size: 12px;
  font-weight: 760;
}

.install-app:hover,
.push-app:hover,
.push-app.is-enabled {
  background: rgba(7, 75, 122, .16);
}

.push-app.is-enabled {
  border-color: rgba(255, 255, 255, .36);
  color: rgba(255, 255, 255, .9);
}

.install-app[hidden],
.push-app[hidden] {
  display: none;
}

.hero-band,
.metric-strip,
.app-shell,
.footer {
  max-width: none;
  width: 100%;
}

.hero-band {
  display: block;
  margin: 0;
  padding: 14px 8px 0;
}

.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 26px;
  padding: 12px 18px;
  border: 1px solid var(--mock-border);
  border-radius: 4px;
  background: #fff;
  box-shadow: var(--mock-shadow);
}

.topbar nav a,
.topbar nav a:first-child,
.topbar nav a:hover {
  color: rgba(255,255,255,.92);
}

.topbar nav a:first-child {
  border-bottom-color: #22c3d6;
  background: rgba(255,255,255,.08);
}

.hero-copy {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--mock-text);
  box-shadow: none;
}

.hero-copy h1 {
  margin: 0 0 4px;
  color: var(--mock-text);
  font-size: 29px;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy p {
  margin: 0 0 12px;
  color: var(--mock-muted);
  font-size: 13px;
}

.hero-search {
  grid-template-columns: 18px minmax(0, 1fr) 92px 102px;
  gap: 8px;
  max-width: 900px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hero-search > i {
  z-index: 1;
  grid-column: 1;
  grid-row: 1;
  margin-left: 13px;
  color: var(--mock-muted);
}

.hero-search input {
  grid-column: 1 / 3;
  grid-row: 1;
  min-height: 42px;
  padding: 0 12px 0 42px;
  border: 1px solid var(--mock-border-strong);
  border-radius: 3px;
  background: #fff;
  color: var(--mock-text);
  font-size: 13px;
}

.hero-search button,
.advanced-jump {
  min-height: 42px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 760;
}

.hero-search button {
  grid-column: 3;
  padding: 0 18px;
  border-color: var(--mock-navy);
  background: var(--mock-navy);
  color: #fff;
}

.advanced-jump {
  display: inline-flex;
  grid-column: 4;
  align-items: center;
  justify-content: center;
  border: 1px solid #1398ad;
  color: var(--mock-blue);
}

.advanced-jump:hover {
  background: #edf4f9;
  text-decoration: none;
}

.hero-meta {
  gap: 24px;
  margin-top: 10px;
}

.hero-meta span {
  min-height: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--mock-muted);
  font-size: 12px;
  font-weight: 650;
}

.hero-meta strong {
  color: var(--mock-text);
}

.hero-meta .status-dot {
  width: 10px;
  height: 10px;
  background: var(--mock-green);
}

.hero-media {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 3px;
}

.hero-image {
  width: 100%;
  height: 145px;
  border: 1px solid #aebfd0;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: none;
}

.hero-net {
  position: absolute;
  inset: 1px;
  z-index: 2;
  overflow: hidden;
  border-radius: 3px;
  opacity: .42;
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-net .network-canvas {
  opacity: .95;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  padding: 12px 8px 10px;
}

.metric-strip div {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  min-height: 72px;
  padding: 12px 18px;
  border: 1px solid var(--mock-border);
  border-radius: 5px;
  background: #fff;
  box-shadow: var(--mock-shadow);
}

.metric-strip i {
  grid-row: 1 / 3;
  color: var(--mock-text);
}

.metric-strip i svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.7;
}

.metric-strip strong {
  color: var(--mock-text);
  font-size: 25px;
  line-height: 1;
  font-weight: 820;
}

.metric-strip span {
  color: var(--mock-muted);
  font-size: 11px;
}

.app-shell {
  grid-template-columns: 275px minmax(0, 1fr) 310px;
  gap: 10px;
  padding: 0 8px 10px;
}

.panel {
  border: 1px solid var(--mock-border);
  border-radius: 5px;
  box-shadow: var(--mock-shadow);
}

.filters,
.right-rail {
  top: 80px;
}

.filters {
  padding: 12px 14px;
}

.panel-title {
  min-height: 30px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--mock-border);
}

.panel-title h2,
.accordion > summary,
.latest-head h1,
.result-bar h1 {
  color: var(--mock-text);
  font-size: 15px;
}

.panel-title h2:before {
  margin-right: 7px;
  color: var(--mock-blue);
  content: "▽";
}

.field {
  gap: 5px;
  margin-bottom: 11px;
}

.field span,
legend {
  color: var(--mock-text);
  font-size: 11px;
}

fieldset {
  gap: 7px;
  margin-bottom: 13px;
}

fieldset label {
  gap: 7px;
  font-size: 12px;
}

small {
  font-size: 10px;
}

input[type="search"],
input[type="email"],
input[type="text"],
input[type="password"],
input[type="date"],
input[type="number"],
select {
  min-height: 34px;
  border-color: var(--mock-border-strong);
  border-radius: 3px;
  background: #fff;
  font-size: 12px;
}

select[multiple] {
  min-height: 96px;
  padding: 4px;
  line-height: 1.35;
}

select[multiple] option {
  padding: 5px 7px;
  border-radius: 3px;
}

select[multiple] option:checked {
  background: linear-gradient(180deg, var(--mock-blue), var(--mock-blue));
  color: #fff;
}

.evidence-status {
  padding: 9px;
  border: 1px solid rgba(184, 204, 220, .72);
  border-radius: 4px;
  background: linear-gradient(180deg, #fff, #f7fbfd);
}

.evidence-status label {
  min-height: 24px;
}

button,
.icon-btn,
.export-links a {
  min-height: 34px;
  border-color: var(--mock-border-strong);
  border-radius: 3px;
}

.primary {
  min-height: 38px;
  border-color: var(--mock-navy);
  background: var(--mock-navy);
  box-shadow: none;
}

.export-links { display: none; }

.save-search {
  width: 100%;
  margin-top: 12px;
  border-color: var(--mock-blue);
  background: #fff;
  color: var(--mock-blue);
  font-size: 12px;
}

.save-search:hover {
  background: #f1fbfd;
}

.results {
  gap: 10px;
}

.overview-grid {
  display: block;
}

.latest-panel {
  padding: 0;
}

.latest-head,
.result-bar {
  min-height: 50px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--mock-border);
}

.latest-head h1,
.result-bar h1 {
  margin: 0;
  font-size: 16px;
}

.latest-head h1:before {
  margin-right: 8px;
  color: var(--mock-blue);
  content: "☷";
}

.latest-head p {
  display: none;
}

.latest-controls {
  margin-top: 0;
}

.latest-status {
  min-width: 0;
  gap: 6px;
  font-size: 11px;
}

.update-check,
.inline-action {
  min-height: 28px;
  border-radius: 3px;
  background: #fff;
}

.latest-list {
  display: grid;
  grid-auto-flow: row;
  grid-auto-columns: initial;
  grid-template-columns: 1fr;
  margin: 0;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

.publication-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--mock-border);
  background: #fff;
}

.publication-exports {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 10px;
}

.publication-exports a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--mock-border-strong);
  border-radius: 3px;
  background: #fff;
  color: var(--mock-blue);
  font-size: 11px;
  font-weight: 760;
}

.publication-exports a:hover {
  border-color: #1398ad;
  background: #edf4f9;
  text-decoration: none;
}

.publication-controls {
  display: inline-flex;
  gap: 10px;
}

.publication-controls select {
  min-width: 150px;
  min-height: 34px;
}

.latest-paper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 14px;
  height: auto;
  min-height: 106px;
  padding: 14px 18px;
  border-right: 0;
  border-bottom: 1px solid var(--mock-border);
  background: #fff;
}

.latest-paper:last-child {
  border-bottom: 0;
}

.latest-paper h3 {
  margin-bottom: 5px;
  font-size: 15px;
  -webkit-line-clamp: 2;
}

.latest-paper h3 a,
.paper h3 a {
  color: #05294a;
}

.latest-paper p {
  color: var(--mock-muted);
  font-size: 12px;
}

.latest-paper .links {
  max-height: none;
}

.latest-paper .tags {
  max-height: none;
  justify-content: flex-start;
}

.latest-paper .tags span:nth-child(n + 4) {
  display: inline-flex;
}

.paper-panel {
  display: block;
}

.paper {
  grid-template-columns: 96px minmax(0, 1fr) 245px;
  gap: 16px;
  padding: 15px 18px;
}

.abstract {
  font-size: 12px;
}

.tags span {
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 10px;
}

.right-rail {
  gap: 10px;
}

.right-rail .analytics {
  order: -3;
}

.right-rail #alerts {
  order: -2;
}

.right-rail #admin {
  order: -1;
}

.accordion > summary {
  min-height: 42px;
  padding: 0 14px;
  font-size: 14px;
}

.accordion-body {
  padding: 12px 14px;
}

.analytics h3 {
  margin: 12px 0 8px;
  font-size: 11px;
}

.timeline-chart {
  height: 160px;
  max-height: 160px;
  padding: 8px;
  border-radius: 3px;
}

.mini-bars {
  min-height: 78px;
  padding: 8px;
  border-radius: 3px;
}

.rank-list li {
  gap: 6px;
  padding-bottom: 5px;
  font-size: 11px;
}

.alert-form .primary {
  min-height: 34px;
}

.debug-list {
  font-size: 11px;
}

.footer {
  justify-content: space-between;
  padding: 10px 24px 12px;
  border-top: 1px solid var(--mock-border);
  background: #fff;
  font-size: 11px;
}

.footer img {
  display: none;
}

@media (max-width: 1180px) {
  .metric-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .right-rail {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .topbar {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px 14px;
    position: static;
  }

  .topbar nav {
    gap: 18px;
    width: 100%;
    overflow-x: auto;
  }

  .topbar nav a {
    min-height: 38px;
  }

  .admin-link {
    justify-self: start;
  }

  .top-actions {
    justify-self: start;
  }

  .hero-card {
    grid-template-columns: 1fr;
  }

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

  .advanced-jump {
    display: none;
  }

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

  .app-shell {
    grid-template-columns: 1fr;
  }

  .filters,
  .right-rail {
    position: static;
  }

  .right-rail {
    grid-template-columns: 1fr;
  }

  .latest-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .publication-toolbar {
    grid-template-columns: 1fr;
  }

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

  .publication-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .publication-controls select {
    min-width: 0;
  }

  .latest-status {
    justify-items: start;
    text-align: left;
  }

  .latest-paper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .brand strong {
    font-size: 14px;
  }

  .brand-image img {
    width: 255px;
  }

  .hero-copy h1 {
    font-size: 24px;
  }

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

  .hero-search button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .hero-image {
    display: block;
    height: 132px;
  }

  .hero-net {
    display: block;
  }

  .metric-strip {
    grid-template-columns: 1fr;
  }
}

/* Professional UX polish: localized GSAP motion, clearer hero net, compact audio transport. */
body {
  background:
    linear-gradient(180deg, rgba(230, 241, 250, .74), rgba(244, 247, 251, 0) 310px),
    var(--mock-bg);
}

.topbar {
  isolation: isolate;
}

.topbar:after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(83, 229, 241, .88), transparent);
  content: "";
}

.topbar nav a,
.admin-link,
.hero-search button,
.advanced-jump,
.primary,
.save-search,
.publication-exports a,
.icon-btn,
.inline-action,
.audio-toggle,
.scroll-top {
  transition: border-color .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.hero-card,
.panel,
.metric-strip div {
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.hero-card:hover,
.panel:hover,
.metric-strip div:hover {
  border-color: #b8ccdc;
  box-shadow: 0 8px 24px rgba(15, 39, 66, .075);
}

.hero-media {
  display: grid;
  grid-template-rows: auto auto;
  gap: 8px;
  overflow: visible;
}

.hero-visual {
  position: relative;
  overflow: hidden;
  height: 145px;
  border: 1px solid #aebfd0;
  border-radius: 3px;
  background: #062b49;
}

.hero-visual:after {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), inset 0 -22px 35px rgba(0, 20, 40, .2);
  pointer-events: none;
  content: "";
}

.hero-image {
  display: block;
  height: 100%;
  border: 0;
}

.hero-net {
  inset: 0;
  right: 50%;
  opacity: .52;
  filter: saturate(1.08) brightness(1.08) contrast(1.08);
  mix-blend-mode: screen;
  pointer-events: auto;
}

.hero-net .network-canvas {
  opacity: 1;
}

.audio-player {
  display: block;
  min-height: 40px;
  padding: 5px 6px;
  border: 1px solid rgba(184, 204, 220, .9);
  border-radius: 3px;
  background: rgba(248, 252, 255, .72);
  box-shadow: 0 1px 2px rgba(15, 39, 66, .045);
}

#audio-visualizer {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 4;
  display: block;
  width: 100%;
  height: 42px;
  background: transparent;
  pointer-events: none;
}

#transport-audio {
  width: 100%;
  min-width: 0;
  height: 32px;
  accent-color: var(--mock-cyan);
}

.metric-strip div:hover i,
.publication-exports a:hover i,
.admin-link:hover i {
  color: var(--mock-cyan);
}

.latest-paper,
.paper {
  position: relative;
}

.latest-paper:before,
.paper:before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--mock-cyan), rgba(7, 75, 122, 0));
  opacity: 0;
  content: "";
  transition: opacity .2s ease;
}

.latest-paper:hover,
.paper:hover {
  background: linear-gradient(90deg, #f9fdff, #fff 44%);
}

.latest-paper:hover:before,
.paper:hover:before {
  opacity: 1;
}

.latest-list.is-loading {
  opacity: .68;
}

.timeline-chart {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(245, 250, 253, .95)),
    radial-gradient(circle at 80% 16%, rgba(7, 75, 122, .16), transparent 36%);
}

.chart-line {
  filter: drop-shadow(0 2px 2px rgba(7, 75, 122, .18));
}

.timeline-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  align-items: flex-start;
  min-width: 0;
  max-width: 100%;
}

.timeline-summary {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: calc(100% - 2px);
  color: var(--mock-muted);
  font-size: 10px;
  font-weight: 760;
  line-height: 1.35;
  text-align: left;
  overflow-wrap: anywhere;
  white-space: normal;
}

.timeline-card {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.timeline-card > *,
.timeline-controls,
.timeline-head {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.timeline-controls {
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--mock-border);
  border-radius: 4px;
  background: #f8fbfd;
}

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

.timeline-presets button,
.timeline-custom button {
  min-height: 28px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 820;
}

.timeline-presets button {
  border: 1px solid var(--mock-border-strong);
  background: #fff;
  color: var(--mock-blue);
}

.timeline-presets button.is-active {
  border-color: #074b7a;
  background: #06395f;
  color: #fff;
}

.timeline-custom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  align-items: end;
}

.timeline-custom label {
  display: grid;
  gap: 3px;
  color: var(--mock-muted);
  font-size: 10px;
  font-weight: 760;
}

.timeline-custom input {
  min-height: 30px;
  padding: 0 6px;
  font-size: 11px;
}

.timeline-custom button {
  padding: 0 8px;
  width: 100%;
}

.timeline-open {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.timeline-open button {
  min-height: 28px;
  border: 1px solid var(--mock-border-strong);
  border-radius: 3px;
  background: #fff;
  color: var(--mock-blue);
  font-size: 10px;
  font-weight: 820;
}

.timeline-open button:hover,
.timeline-open button:focus-visible {
  border-color: #074b7a;
  background: #edf4f9;
}

.timeline-bucket {
  cursor: pointer;
  outline: none;
}

.timeline-bucket:hover,
.timeline-bucket:focus-visible {
  filter: brightness(1.12) saturate(1.25);
  stroke: #062b49;
  stroke-width: 2;
}

.app-toast {
  position: fixed;
  right: 18px;
  bottom: 72px;
  z-index: 35;
  width: min(340px, calc(100vw - 28px));
  padding: 12px 14px;
  border: 1px solid rgba(7, 75, 122, .38);
  border-radius: 8px;
  background: rgba(248, 252, 255, .96);
  color: var(--mock-navy);
  box-shadow: 0 18px 42px rgba(0, 24, 45, .18);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease;
  backdrop-filter: blur(10px);
}

.app-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border: 1px solid rgba(7, 75, 122, .62);
  border-radius: 50%;
  background: linear-gradient(180deg, var(--mock-navy), var(--mock-navy-2));
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 24, 45, .22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top:hover,
.scroll-top:focus-visible {
  border-color: var(--mock-cyan);
  box-shadow: 0 14px 32px rgba(0, 24, 45, .28), 0 0 0 3px rgba(7, 75, 122, .16);
}

.scroll-top svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.1;
}

.scroll-progress {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 29;
  height: 5px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: rgba(3, 38, 66, .14);
  box-shadow: 0 -4px 14px rgba(3, 38, 66, .09), inset 0 1px 0 rgba(255, 255, 255, .18);
  pointer-events: none;
  backdrop-filter: blur(10px);
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(7, 75, 122, .78), rgba(7, 75, 122, .68));
  box-shadow: 0 0 14px rgba(7, 75, 122, .28);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

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

@media (max-width: 860px) {
  .hero-media {
    max-width: 420px;
  }
}

@media (max-width: 520px) {
  .audio-player {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    height: 132px;
  }

  #transport-audio {
    height: 34px;
  }

  .timeline-custom {
    grid-template-columns: 1fr 1fr;
  }

  .timeline-custom button {
    width: 100%;
  }

  .scroll-top {
    right: 14px;
    bottom: 14px;
  }
}

.alert-manage-shell {
  width: min(760px, calc(100% - 28px));
  margin: 22px auto 48px;
}

.alert-manage-card {
  padding: 24px;
}

.alert-manage-card h1 {
  margin: 0 0 10px;
  color: var(--mock-text);
  font-size: 26px;
  line-height: 1.16;
}

.alert-manage-card .state {
  min-height: 0;
  padding: 22px;
}

.alert-manage-intro {
  margin: 0 0 18px;
  color: var(--mock-muted);
  font-size: 14px;
  line-height: 1.5;
}

.alert-manage-form {
  display: grid;
  gap: 2px;
}

.alert-unsubscribe-form {
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--mock-border);
}

.consent-check {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  margin: 8px 0 12px;
  color: var(--mock-muted);
  font-size: 11px;
  line-height: 1.45;
}

.consent-check input {
  margin-top: 2px;
}

.privacy-note {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #cfe0eb;
  border-radius: 4px;
  background: #f6fbff;
  color: var(--mock-muted);
  font-size: 12px;
  line-height: 1.55;
}

.privacy-note.compact {
  margin-top: 10px;
  padding: 9px 10px;
  font-size: 11px;
}

.alert-manage-page {
  padding-left: 0 !important;
  background:
    linear-gradient(180deg, #f4f8fb 0%, #eef4f8 46%, #f8fbfd 100%);
}

.alert-manage-page .topbar {
  position: static !important;
  top: auto;
  left: auto;
  display: flex;
  width: auto;
  height: auto;
  min-height: 76px;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px clamp(18px, 4vw, 42px);
  border-right: 0;
  border-bottom: 1px solid #cbd9e5;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 12px 32px rgba(30, 48, 66, .08);
  overflow: visible;
}

.alert-manage-page .brand-image {
  width: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.alert-manage-page .brand-image img {
  width: min(300px, 62vw);
  height: auto;
  object-fit: contain;
}

.alert-manage-page .topbar nav {
  display: flex;
  flex: 0 1 auto;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-height: 0;
  overflow: visible;
}

.alert-manage-page .topbar nav a {
  width: auto;
  min-height: 34px;
  padding: 8px 11px;
  border-radius: 4px;
  white-space: nowrap;
}

.alert-manage-status {
  display: grid;
  grid-template-columns: .72fr 1fr 1.42fr;
  gap: 10px;
  margin: 16px 0 14px;
}

.alert-manage-status div {
  min-width: 0;
  padding: 12px;
  border: 1px solid #d5e1eb;
  border-radius: 4px;
  background: #f8fbfd;
}

.alert-manage-status span {
  display: block;
  margin-bottom: 5px;
  color: #536a83;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.alert-manage-status strong {
  display: block;
  color: #0e2742;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.notice.warning {
  border: 1px solid rgba(167, 112, 18, .28);
  background: #fff8e8;
  color: #68470b;
}

.alert-management-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #d8e4ef;
}

.alert-management-actions form {
  margin: 0;
}

.alert-management-actions button {
  width: auto;
  min-height: 38px;
}

html body .alert-management-actions .danger {
  border-color: rgba(180, 35, 24, .32) !important;
  background: #fff1f0 !important;
  color: #9d1f16 !important;
  font-weight: 850;
}

html body .alert-management-actions .danger:hover,
html body .alert-management-actions .danger:focus-visible {
  background: #f8d7d4 !important;
  color: #78150f !important;
}

@media (max-width: 760px) {
  .alert-manage-shell {
    width: min(100% - 20px, 760px);
    margin-top: 14px;
  }

  .alert-manage-page .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 12px 14px;
  }

  .alert-manage-page .topbar nav {
    justify-content: flex-start;
  }

  .alert-manage-status {
    grid-template-columns: 1fr;
  }

  .alert-management-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .alert-management-actions form,
  .alert-management-actions button {
    width: 100%;
  }
}

.alert-intro {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid #cfe0eb;
  border-radius: 4px;
  background: linear-gradient(180deg, #f8fcff, #eef8fb);
}

.alert-intro strong {
  color: var(--mock-text);
  font-size: 13px;
}

.alert-intro span {
  color: var(--mock-muted);
  font-size: 11px;
  line-height: 1.45;
}

.alert-mode,
.frequency-options {
  padding: 0;
  border: 0;
}

.alert-mode label {
  align-items: flex-start;
  padding: 8px 9px;
  border: 1px solid var(--mock-border);
  border-radius: 4px;
  background: #fff;
  line-height: 1.35;
}

.alert-mode label:has(input:checked) {
  border-color: #074b7a;
  background: #edf4f9;
  color: var(--mock-text);
}

.alert-targeting {
  margin: 2px 0 12px;
  border: 1px solid var(--mock-border);
  border-radius: 4px;
  background: #fff;
}

.alert-targeting > summary {
  min-height: 36px;
  padding: 0 10px;
  color: var(--mock-blue);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.alert-targeting .accordion-body {
  padding: 10px;
  border-top: 1px solid var(--mock-border);
  background: #fbfdff;
}

.alert-targeting input:disabled,
.alert-targeting select:disabled {
  opacity: .62;
}

.field-note {
  margin: -4px 0 10px;
  color: var(--mock-muted);
  font-size: 11px;
  line-height: 1.45;
}

/* Final cohesion pass: native controls inherit the research-blue theme. */
:root {
  --control-accent: var(--mock-cyan);
  --control-accent-dark: #087d9d;
  color-scheme: light;
}

html.is-loading,
html.is-loading body {
  overflow: hidden;
}

.app-preloader {
  display: none;
}

.js .app-preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(3, 35, 61, .96), rgba(2, 22, 40, .98)),
    var(--mock-navy-2);
  color: #fff;
}

.app-preloader.is-hidden {
  pointer-events: none;
}

.preloader-shell {
  display: grid;
  justify-items: center;
  gap: 14px;
  width: min(360px, 100%);
  padding: 22px 26px;
  border: 1px solid rgba(7, 75, 122, .34);
  border-radius: 6px;
  background: rgba(255, 255, 255, .035);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .34);
}

.preloader-shell img {
  display: block;
  width: min(260px, 100%);
  height: auto;
}

.preloader-title {
  color: rgba(255, 255, 255, .82);
  font-size: 12px;
  font-weight: 760;
}

.preloader-meter {
  overflow: hidden;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
}

.preloader-meter span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, var(--mock-cyan), #fff, var(--mock-cyan), transparent);
  animation: preloader-scan 1.15s ease-in-out infinite;
}

@keyframes preloader-scan {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(260%); }
}

input,
select,
textarea,
button,
summary {
  accent-color: var(--control-accent);
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--control-accent);
}

input[type="range"],
progress {
  accent-color: var(--control-accent);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 2px solid rgba(7, 75, 122, .72);
  outline-offset: 2px;
}

input[type="search"]:focus,
input[type="email"]:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
  border-color: var(--control-accent-dark);
  box-shadow: 0 0 0 3px rgba(7, 75, 122, .13);
}

.hero-meta {
  align-items: center;
}

.hero-refresh-form {
  display: inline-flex;
  margin: 0;
}

.hero-refresh-form button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(10, 71, 117, .2);
  border-radius: 4px;
  background: #edf4f9;
  color: var(--mock-blue);
  font-size: 12px;
  font-weight: 760;
}

.hero-refresh-form button:hover {
  border-color: rgba(7, 75, 122, .72);
  background: #e8f0f7;
}

.hero-refresh-form button svg {
  width: 14px;
  height: 14px;
}

.hero-notice {
  margin-top: 10px;
  max-width: 900px;
  padding: 9px 11px;
  border-radius: 4px;
  font-size: 12px;
}

.hero-net {
  right: 50%;
  opacity: .38;
  pointer-events: auto;
}

.notice.success {
  border-color: rgba(7, 75, 122, .38);
  background: #edf4f9;
  color: var(--mock-blue);
}

@media (prefers-reduced-motion: reduce) {
  .preloader-meter span {
    animation: none;
    transform: none;
    width: 100%;
  }
}

/* Research-grade visual refinement: dense, calm, legible, and biologically themed. */
:root {
  --rx-bg: #f3f7fb;
  --rx-bg-2: #eaf2f8;
  --rx-surface: #ffffff;
  --rx-surface-soft: #f8fbfd;
  --rx-ink: #08233f;
  --rx-ink-2: #183a58;
  --rx-muted: #5d7189;
  --rx-border: #c8d8e6;
  --rx-border-soft: #dde8f1;
  --rx-cyan: #074b7a;
  --rx-cyan-2: #074b7a;
  --rx-blue: #074b7a;
  --rx-navy: #032642;
  --rx-shadow-soft: 0 1px 2px rgba(9, 38, 66, .045), 0 10px 28px rgba(9, 38, 66, .045);
  --rx-shadow-lift: 0 2px 3px rgba(9, 38, 66, .05), 0 16px 40px rgba(9, 38, 66, .09);
}

body {
  background:
    linear-gradient(180deg, rgba(225, 238, 248, .78) 0, rgba(243, 247, 251, .92) 235px, var(--rx-bg) 560px),
    repeating-linear-gradient(60deg, rgba(8, 75, 122, .035) 0 1px, transparent 1px 38px),
    repeating-linear-gradient(120deg, rgba(7, 75, 122, .028) 0 1px, transparent 1px 42px),
    var(--rx-bg);
  color: var(--rx-ink);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body:before {
  position: fixed;
  inset: 68px 0 auto;
  z-index: -1;
  height: 260px;
  background:
    linear-gradient(90deg, rgba(3, 38, 66, .06), transparent 45%, rgba(7, 75, 122, .045)),
    radial-gradient(ellipse at 14% 8%, rgba(7, 75, 122, .11), transparent 38%);
  pointer-events: none;
  content: "";
}

a {
  text-underline-offset: 3px;
}

.topbar {
  border-bottom-color: rgba(7, 75, 122, .34);
  background:
    linear-gradient(180deg, rgba(4, 42, 72, .98), rgba(2, 28, 51, .98)),
    var(--rx-navy);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 8px 24px rgba(0, 20, 38, .18);
}

.topbar nav a {
  position: relative;
  color: rgba(232, 246, 250, .86);
}

.topbar nav a:after {
  position: absolute;
  right: 10%;
  bottom: -3px;
  left: 10%;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: var(--rx-cyan);
  opacity: 0;
  transform: scaleX(.48);
  transition: opacity .18s ease, transform .18s ease;
  content: "";
}

.topbar nav a:first-child:after,
.topbar nav a:hover:after,
.topbar nav a:focus-visible:after {
  opacity: 1;
  transform: scaleX(1);
}

.admin-link,
.install-app,
.push-app {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .045) inset;
}

.hero-card,
.metric-strip div,
.panel {
  border-color: var(--rx-border);
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--rx-shadow-soft);
}

.hero-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255,255,255,.98), rgba(255,255,255,.94)),
    linear-gradient(135deg, rgba(7, 75, 122, .065), transparent 42%);
}

.hero-card:before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--rx-cyan), rgba(7, 75, 122, 0));
  content: "";
}

.hero-copy h1 {
  color: var(--rx-ink);
  font-weight: 820;
  text-wrap: balance;
}

.hero-copy p,
.latest-head p,
.abstract,
.paper-meta,
.timeline-summary,
.footer {
  color: var(--rx-muted);
}

.hero-search input,
input[type="search"],
input[type="email"],
input[type="text"],
input[type="password"],
input[type="date"],
input[type="number"],
select,
textarea {
  border-color: var(--rx-border);
  background:
    linear-gradient(180deg, #fff, #fbfdff);
  color: var(--rx-ink);
}

.hero-search input:hover,
input:hover,
select:hover,
textarea:hover {
  border-color: #aebfd0;
}

.hero-search button,
.primary {
  border-color: #042c4e;
  background: linear-gradient(180deg, #073d68, #032642);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 6px 14px rgba(3, 38, 66, .12);
}

.hero-search button:hover,
.primary:hover {
  background: linear-gradient(180deg, #084b7a, #032c4d);
  transform: translateY(-1px);
}

.advanced-jump,
.save-search,
.publication-exports a,
.timeline-open button,
.timeline-presets button {
  background: linear-gradient(180deg, #fff, #f7fbfd);
}

.advanced-jump:hover,
.save-search:hover,
.publication-exports a:hover,
.timeline-open button:hover,
.timeline-presets button:hover {
  border-color: var(--rx-cyan-2);
  background: #edf4f9;
  color: var(--rx-blue);
}

.hero-visual {
  border-color: #9fb5c9;
  box-shadow: 0 1px 0 rgba(255,255,255,.65) inset, 0 10px 22px rgba(9, 38, 66, .12);
}

.hero-visual:before {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(90deg, rgba(4, 36, 62, .08), transparent 44%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 1px, transparent 1px 11px);
  mix-blend-mode: screen;
  opacity: .24;
  pointer-events: none;
  content: "";
}

#audio-visualizer {
  filter: drop-shadow(0 -1px 4px rgba(7, 75, 122, .18));
}

.audio-player {
  border-color: var(--rx-border-soft);
  background: rgba(248, 252, 255, .82);
}

.metric-strip div {
  position: relative;
  overflow: hidden;
}

.metric-strip div:before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, rgba(7, 75, 122, .86), rgba(7, 75, 122, .08));
  opacity: .72;
  content: "";
}

.metric-strip div:hover,
.panel:hover,
.hero-card:hover {
  border-color: #adc4d8;
  box-shadow: var(--rx-shadow-lift);
}

.metric-strip i {
  color: var(--rx-blue);
}

.metric-strip strong {
  color: var(--rx-ink);
  font-variant-numeric: tabular-nums;
}

.panel-title,
.latest-head,
.result-bar,
.publication-toolbar,
.accordion > summary {
  background:
    linear-gradient(180deg, rgba(250, 253, 255, .95), rgba(244, 249, 252, .95));
}

.panel-title h2,
.latest-head h1,
.result-bar h1,
.accordion > summary {
  color: var(--rx-ink);
  letter-spacing: 0;
}

.panel-title h2:before,
.latest-head h1:before {
  color: var(--rx-cyan-2);
}

fieldset label,
.alert-mode label,
.frequency-options label {
  border-radius: 4px;
}

fieldset label:hover,
.alert-mode label:hover,
.frequency-options label:hover {
  color: var(--rx-ink);
}

.evidence-status {
  border-color: var(--rx-border-soft);
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,251,253,.98)),
    repeating-linear-gradient(135deg, rgba(7, 75, 122, .035) 0 1px, transparent 1px 18px);
}

.latest-paper,
.paper {
  background:
    linear-gradient(90deg, rgba(255,255,255,1), rgba(251,253,255,.98));
}

.latest-paper {
  border-bottom-color: var(--rx-border-soft);
}

.latest-paper:before,
.paper:before {
  background: linear-gradient(180deg, var(--rx-cyan), rgba(7, 75, 122, 0));
}

.latest-paper:hover,
.paper:hover {
  background:
    linear-gradient(90deg, rgba(242, 251, 253, .92), #fff 42%);
}

.latest-paper h3 a,
.paper h3 a {
  color: var(--rx-ink);
}

.latest-paper h3 a:hover,
.paper h3 a:hover {
  color: var(--rx-blue);
}

.links a,
.copy-citation,
.copy-bibtex {
  color: #047d91;
}

.links a:hover,
.copy-citation:hover,
.copy-bibtex:hover {
  color: var(--rx-blue);
}

.tags {
  gap: 6px;
}

.tags span {
  border: 1px solid rgba(8, 75, 122, .08);
  background: #e9f7f8;
  color: #056979;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.58);
}

.tags .source-badge {
  background: #e8f0f7;
  color: var(--rx-blue);
}

.tags .status-badge {
  background: #f4f8fb;
  color: var(--rx-ink-2);
  letter-spacing: .035em;
}

.timeline-controls,
.timeline-chart,
.mini-bars,
.alert-targeting,
.privacy-note,
.field-note {
  border-color: var(--rx-border-soft);
}

.timeline-chart {
  background:
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(247,251,253,.96)),
    repeating-linear-gradient(90deg, rgba(8,75,122,.045) 0 1px, transparent 1px 54px),
    repeating-linear-gradient(0deg, rgba(8,75,122,.035) 0 1px, transparent 1px 34px);
}

.chart-grid {
  stroke: rgba(8, 75, 122, .12);
}

.chart-bar {
  fill: rgba(7, 75, 122, .32);
}

.chart-line {
  stroke: var(--rx-blue);
  stroke-width: 2.2;
}

.chart-point {
  fill: #fff;
  stroke: var(--rx-cyan-2);
  stroke-width: 2;
}

.rank-list li {
  border-bottom-color: var(--rx-border-soft);
}

.rank-list li:before {
  color: var(--rx-cyan-2);
}

.notice,
.app-toast {
  box-shadow: 0 10px 24px rgba(9, 38, 66, .08);
}

.scroll-top {
  background: linear-gradient(180deg, #073d68, #032642);
}

@media (max-width: 860px) {
  body:before {
    inset: 150px 0 auto;
    height: 180px;
  }

  .hero-card {
    padding: 12px 18px 14px;
  }

  .metric-strip div {
    min-height: 70px;
  }
}

@media (max-width: 520px) {
  .hero-copy h1 {
    text-wrap: balance;
  }

  .publication-exports a,
  .publication-controls select {
    font-size: 11px;
  }
}

/* Second-pass scientific graphics and citation-context micro styling. */
.hero-image {
  object-position: 50% 50%;
}

.hero-visual:after {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .12),
    inset 34px 0 70px rgba(0, 16, 34, .2),
    inset 0 -20px 30px rgba(0, 20, 40, .24);
}

.hero-net {
  opacity: .34;
  filter: saturate(1.02) brightness(1.04) contrast(1.02);
}

.latest-paper h3,
.paper h3 {
  letter-spacing: 0;
}

.latest-paper .links,
.paper .links {
  align-items: center;
}

.latest-paper:after,
.paper:after {
  position: absolute;
  right: 12px;
  bottom: 10px;
  width: 42px;
  height: 18px;
  background:
    radial-gradient(circle at 12% 48%, rgba(7, 75, 122, .22) 0 2px, transparent 2.5px),
    radial-gradient(circle at 48% 20%, rgba(8, 75, 122, .2) 0 2px, transparent 2.5px),
    radial-gradient(circle at 84% 58%, rgba(7, 75, 122, .18) 0 2px, transparent 2.5px),
    linear-gradient(24deg, transparent 0 20%, rgba(7, 75, 122, .16) 20% 23%, transparent 23% 100%),
    linear-gradient(150deg, transparent 0 36%, rgba(8, 75, 122, .12) 36% 39%, transparent 39% 100%);
  opacity: .55;
  pointer-events: none;
  content: "";
}

.latest-paper:hover:after,
.paper:hover:after {
  opacity: .9;
}

.publication-exports a,
.timeline-open button,
.timeline-presets button,
.save-search,
.advanced-jump {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.76);
}

.timeline-card h3,
.analytics h3 {
  letter-spacing: .045em;
}

/* Low-motion interaction layer plus generated panel/footer graphics. */
.topbar nav a,
.admin-link,
.install-app,
.push-app,
.hero-search button,
.advanced-jump,
.primary,
.save-search,
.publication-exports a,
.icon-btn,
.inline-action,
.links a,
.copy-citation,
.copy-bibtex,
.latest-paper,
.paper,
.panel,
.metric-strip div {
  transition: border-color .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease, opacity .18s ease, filter .18s ease;
}

.hero-search button:hover,
.primary:hover,
.metric-strip div:hover,
.panel:hover,
.hero-card:hover {
  transform: none;
}

.hero-search button:hover,
.primary:hover {
  filter: brightness(1.05) saturate(1.04);
}

.metric-strip div:hover,
.panel:hover,
.latest-paper:hover,
.paper:hover {
  mix-blend-mode: normal;
}

.latest-paper:hover,
.paper:hover {
  box-shadow: inset 0 0 0 1px rgba(7, 75, 122, .18);
}

.latest-paper:active,
.paper:active,
button:active,
.publication-exports a:active {
  filter: brightness(.98) saturate(1.04);
}

.right-rail #analytics,
.right-rail #alerts {
  position: relative;
  isolation: isolate;
}

.right-rail #analytics:before,
.right-rail #alerts:before {
  position: absolute;
  top: 42px;
  right: 0;
  z-index: -1;
  width: 155px;
  height: 110px;
  border-radius: 0 4px 0 16px;
  background-position: center;
  background-size: cover;
  opacity: .11;
  mix-blend-mode: multiply;
  pointer-events: none;
  content: "";
}

.right-rail #analytics:before {
  background-image: url("natural-panel-analytics-2026-07-01.webp");
}

.right-rail #alerts:before {
  background-image: url("natural-panel-alerts-2026-07-01.webp");
}

.footer {
  position: relative;
  overflow: hidden;
  min-height: 96px;
  border-top: 1px solid rgba(7, 75, 122, .28);
  background: linear-gradient(90deg, rgba(3, 38, 66, .96), rgba(3, 38, 66, .86)), var(--rx-navy);
  color: rgba(239, 249, 252, .82);
}

.footer:before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 75, 122, .18), transparent 34%, rgba(7, 75, 122, .1)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.045) 0 1px, transparent 1px 18px);
  opacity: .42;
  mix-blend-mode: screen;
  pointer-events: none;
  content: "";
}

.footer > * {
  position: relative;
  z-index: 1;
}

/* Dark-blue control accent and restrained neumorphic depth pass. */
:root {
  --control-accent: var(--rx-blue);
  --control-accent-dark: var(--rx-navy);
  --control-ring: rgba(7, 75, 122, .18);
  --neu-shadow: 7px 7px 18px rgba(9, 38, 66, .10), -5px -5px 16px rgba(255, 255, 255, .82);
  --neu-shadow-soft: 4px 4px 12px rgba(9, 38, 66, .075), -4px -4px 12px rgba(255, 255, 255, .76);
  --neu-inset: inset 2px 2px 5px rgba(9, 38, 66, .075), inset -2px -2px 5px rgba(255, 255, 255, .9);
}

.hero-card,
.metric-strip div,
.panel {
  box-shadow: var(--neu-shadow-soft);
}

.hero-card:hover,
.metric-strip div:hover,
.panel:hover {
  box-shadow: var(--neu-shadow);
}

button,
.icon-btn,
.admin-link,
.install-app,
.push-app,
.advanced-jump,
.save-search,
.publication-exports a,
.timeline-open button,
.timeline-presets button,
.inline-action,
input[type="search"],
input[type="email"],
input[type="text"],
input[type="password"],
input[type="date"],
input[type="number"],
select,
textarea {
  border-color: rgba(7, 75, 122, .26);
}

input[type="search"],
input[type="email"],
input[type="text"],
input[type="password"],
input[type="date"],
input[type="number"],
select,
textarea,
.timeline-controls,
.timeline-chart,
.mini-bars {
  box-shadow: var(--neu-inset);
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--rx-blue);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline-color: rgba(7, 75, 122, .72);
}

input[type="search"]:focus,
input[type="email"]:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
  border-color: var(--rx-blue);
  box-shadow: 0 0 0 3px var(--control-ring), var(--neu-inset);
}

.hero-search input:focus {
  box-shadow: 0 0 0 3px var(--control-ring), var(--neu-inset);
}

.hero-search button,
.primary,
.scroll-top {
  border-color: var(--rx-navy);
  background: linear-gradient(180deg, #0a4775, #032642);
}

.timeline-presets button.is-active,
.alert-mode label:has(input:checked) {
  border-color: var(--rx-blue);
  background: linear-gradient(180deg, #edf6fb, #dcebf5);
  color: var(--rx-navy);
  box-shadow: var(--neu-inset);
}

.alert-mode label:has(input:checked) input,
.consent-check input:checked,
fieldset label input:checked {
  accent-color: var(--rx-blue);
}

.advanced-jump,
.save-search,
.publication-exports a,
.timeline-open button,
.timeline-presets button,
.inline-action,
.hero-refresh-form button {
  color: var(--rx-blue);
}

.advanced-jump:hover,
.save-search:hover,
.publication-exports a:hover,
.timeline-open button:hover,
.timeline-presets button:hover,
.inline-action:hover,
.hero-refresh-form button:hover {
  border-color: rgba(7, 75, 122, .54);
  background: #edf6fb;
  color: var(--rx-navy);
}

.metric-strip div:before,
.hero-card:before,
.latest-paper:before,
.paper:before {
  background: linear-gradient(180deg, var(--rx-blue), rgba(7, 75, 122, 0));
}

.panel-title h2:before,
.latest-head h1:before,
.rank-list li:before {
  color: var(--rx-blue);
}

.right-rail #analytics:before,
.right-rail #alerts:before {
  opacity: .14;
  filter: saturate(.92) hue-rotate(2deg);
}

.hero-visual {
  background:
    linear-gradient(90deg, rgba(3, 38, 66, .12), transparent 52%),
    url("natural-hero-forest-only-2026-07-01.webp") center/cover no-repeat,
    #062b49;
}

.hero-net {
  right: 50%;
}

@media (max-width: 520px) {
  .hero-card,
  .metric-strip div,
  .panel {
    box-shadow: 3px 3px 10px rgba(9, 38, 66, .08), -3px -3px 10px rgba(255, 255, 255, .72);
  }
}

/* Final accent consolidation: keep native controls and micro-interactions on brand blue. */
:root {
  --teal: var(--rx-blue);
  --teal-dark: var(--rx-navy);
  --teal-soft: #e8f0f7;
  --mock-cyan: var(--rx-blue);
  --rx-cyan: var(--rx-blue);
  --rx-cyan-2: var(--rx-blue);
  --control-accent: var(--rx-blue);
  --control-accent-dark: var(--rx-navy);
  --control-ring: rgba(7, 75, 122, .16);
}

input,
select,
textarea,
button,
summary {
  accent-color: var(--rx-blue);
}

input[type="checkbox"],
input[type="radio"],
input[type="range"],
progress,
meter {
  accent-color: var(--rx-blue);
}

::selection {
  background: rgba(7, 75, 122, .2);
  color: var(--rx-navy);
}

a,
.links a,
.latest-paper h3 a,
.paper h3 a,
.panel-title h2:before,
.latest-head h1:before,
.rank-list li:before,
.copy-citation,
.copy-bibtex,
.install-app,
.push-app,
.advanced-jump,
.save-search,
.publication-exports a,
.timeline-open button,
.timeline-presets button,
.inline-action,
.hero-refresh-form button {
  color: var(--rx-blue);
}

.topbar nav a:first-child,
.topbar nav a:hover,
.topbar nav a:focus-visible,
.publication-exports a:hover,
.timeline-open button:hover,
.timeline-presets button:hover,
.advanced-jump:hover,
.save-search:hover,
.inline-action:hover,
.hero-refresh-form button:hover,
.admin-link:hover,
.install-app:hover,
.push-app:hover {
  border-color: rgba(7, 75, 122, .58);
  color: var(--rx-navy);
}

.hero-search button,
.primary,
.scroll-top,
.manual-refresh button,
.apply-filters,
.create-alert,
.timeline-presets button.is-active,
.alert-mode label:has(input:checked),
.push-app.is-enabled {
  border-color: var(--rx-navy);
  background: linear-gradient(180deg, #0a4775, #032642);
  color: #fff;
}

.advanced-jump:hover,
.save-search:hover,
.publication-exports a:hover,
.timeline-open button:hover,
.timeline-presets button:hover,
.inline-action:hover,
.hero-refresh-form button:hover,
.copy-citation:hover,
.copy-bibtex:hover {
  background: #edf4f9;
}

.tags span,
.topic-tag,
.publication-status,
.notice.success {
  border-color: rgba(7, 75, 122, .22);
  background: #edf4f9;
  color: var(--rx-blue);
}

.metric-strip div:before,
.hero-card:before,
.latest-paper:before,
.paper:before,
.panel:before,
.preloader-progress span {
  background: linear-gradient(180deg, var(--rx-blue), rgba(7, 75, 122, 0));
}

.chart-point,
.timeline-svg circle,
.timeline-svg path,
.sparkline path {
  stroke: var(--rx-blue);
}

.chart-bar,
.timeline-svg rect {
  fill: rgba(7, 75, 122, .18);
  stroke: rgba(7, 75, 122, .54);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline-color: rgba(7, 75, 122, .72);
}

input[type="search"]:focus,
input[type="email"]:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
  border-color: var(--rx-blue);
  box-shadow: 0 0 0 3px rgba(7, 75, 122, .16), var(--neu-inset);
}

/* 2026 app IA polish: image-rich research surface and lower-cognitive-load search flow. */
:root {
  --ux-bg: #f5f8fb;
  --ux-ink: #10243b;
  --ux-muted: #52677f;
  --ux-navy: #062b49;
  --ux-teal: #087487;
  --ux-cyan: #d8f7fb;
  --ux-amber: #b9831f;
  --ux-line: rgba(8, 45, 73, .15);
  --ux-shadow: 0 14px 34px rgba(12, 38, 62, .09);
}

body {
  background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(245,248,251,.94) 380px), var(--ux-bg);
  color: var(--ux-ink);
}

.hero-card {
  min-height: 280px;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: 22px;
  padding: 18px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255,255,255,.98), rgba(245,250,253,.92));
}

.hero-copy h1 {
  max-width: 880px;
  color: #081f35;
  font-size: clamp(30px, 3.2vw, 48px);
  line-height: 1.02;
}

.hero-copy p {
  max-width: 860px;
  color: #213b55;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.48;
  text-shadow: 0 1px 0 rgba(255,255,255,.82);
}

.hero-visual {
  position: relative;
  min-height: 248px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 8px;
  background: linear-gradient(135deg, #061e35, #073d68);
  box-shadow: 0 22px 42px rgba(2, 22, 37, .22);
  cursor: pointer;
}

.hero-visual .hero-image {
  width: 100%;
  height: 100%;
  min-height: 248px;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  opacity: .9;
  mix-blend-mode: screen;
}

.hero-net {
  position: absolute;
  inset: 0 auto 0 0;
  width: 55%;
  pointer-events: none;
}

.hero-visual #audio-visualizer {
  position: absolute;
  right: 16px;
  bottom: 14px;
  left: 16px;
  z-index: 3;
  width: calc(100% - 32px);
  height: 44px;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  pointer-events: none;
}

.hero-fullscreen {
  position: absolute;
  z-index: 4;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  background: rgba(3, 24, 42, .66);
  color: #fff;
  font-size: 12px;
  backdrop-filter: blur(10px);
}

.hero-fullscreen {
  top: 12px;
  right: 12px;
}

.hero-fullscreen:hover {
  background: rgba(255,255,255,.94);
  color: var(--ux-navy);
  text-decoration: none;
}

.hero-visual:fullscreen {
  display: grid;
  place-items: stretch;
  width: 100vw;
  height: 100vh;
  border-radius: 0;
}

.hero-visual:fullscreen .hero-image {
  min-height: 100vh;
}

.audio-player {
  border-radius: 8px;
}

.visual-brief {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(220px, .75fr));
  gap: 12px;
  padding: 12px 8px 0;
}

.visual-card {
  position: relative;
  min-height: 172px;
  overflow: hidden;
  border: 1px solid var(--ux-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--ux-shadow);
}

.visual-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 172px;
  object-fit: cover;
  filter: saturate(1.04) contrast(1.03);
}

.visual-card div {
  position: absolute;
  inset: auto 0 0;
  padding: 38px 16px 14px;
  background: linear-gradient(180deg, transparent, rgba(4, 25, 43, .9));
  color: #fff;
}

.visual-card h2 {
  margin: 0 0 5px;
  color: #fff;
  font-size: 16px;
  line-height: 1.16;
}

.visual-card p {
  margin: 0;
  color: rgba(255,255,255,.84);
  font-size: 12px;
  line-height: 1.35;
}

.visual-card-wide h2 {
  font-size: 20px;
}

.app-shell {
  grid-template-columns: 285px minmax(0, 1fr) 315px;
  align-items: start;
  gap: 14px;
  padding-top: 12px;
}

.filters {
  position: sticky;
  top: 76px;
  z-index: 12;
  grid-column: auto;
  display: block;
  padding: 16px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,.97), rgba(250,253,255,.95));
  box-shadow: 0 10px 26px rgba(12, 38, 62, .1);
  backdrop-filter: blur(10px);
}

.filters .panel-title {
  grid-column: 1 / -1;
  margin: 0;
}

.filter-command {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.filter-command a,
.filter-command-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid rgba(7,75,122,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  color: var(--ux-navy);
  font-size: 12px;
  font-weight: 780;
}

.filter-command a:hover,
.filter-command-button:hover {
  border-color: rgba(7,75,122,.38);
  background: var(--ux-cyan);
  text-decoration: none;
}

.filters > .field,
.filters > fieldset,
.filters > details,
.filters > button,
.filters > .export-links {
  margin-bottom: 16px;
}

.filters > fieldset {
  display: grid;
  gap: 10px;
  min-height: 0;
}

.filters > fieldset legend {
  margin-bottom: 2px;
}

.filters .primary,
.filters .save-search {
  width: 100%;
  min-width: 0;
}

.filters .export-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 0;
}

.filter-advanced {
  grid-column: 1 / -1;
  background: rgba(247,251,253,.9);
}

.filter-advanced .accordion-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.filter-help,
.filter-advanced .evidence-status,
.filter-advanced .date-grid {
  grid-column: 1 / -1;
}

.filter-help {
  margin: 0;
  color: var(--ux-muted);
  font-size: 12px;
}

.filter-advanced .evidence-status {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.results {
  grid-column: 2;
  scroll-margin-top: 84px;
}

.results.has-search .search-context {
  order: 0;
}

.results.has-search .paper-panel {
  order: 1;
}

.results.has-search .overview-grid {
  order: 2;
  display: none;
}

.right-rail {
  grid-column: 3;
}

.latest-list {
  grid-auto-columns: minmax(270px, 24%);
}

.paper {
  grid-template-columns: minmax(0, 1fr) minmax(190px, 240px);
}

.paper .tags {
  grid-column: 1 / -1;
}

.panel-visual {
  position: relative;
  overflow: hidden;
  margin: 0 0 12px;
  border: 1px solid rgba(7,75,122,.13);
  border-radius: 8px;
  aspect-ratio: 16 / 7;
  background: #eef5f8;
}

.panel-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.panel-visual:after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(5,27,46,.2));
  content: "";
  pointer-events: none;
}

.analytics,
#alerts {
  overflow: hidden;
}

.accordion[open] > summary {
  background: linear-gradient(90deg, rgba(216,247,251,.48), transparent);
}

.paper,
.latest-paper,
.visual-card,
.metric-strip div,
.panel {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
}

.paper:hover,
.latest-paper:hover,
.visual-card:hover,
.metric-strip div:hover {
  transform: translateY(-1px);
  border-color: rgba(7,75,122,.28);
  box-shadow: 0 16px 32px rgba(12,38,62,.12);
}

.footer {
  position: relative;
  min-height: 142px;
  overflow: hidden;
  width: auto;
  margin: 10px 0 20px;
  padding: 22px 24px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 8px;
  background: #072a46;
  color: rgba(255,255,255,.88);
  box-shadow: var(--ux-shadow);
}

.footer-media {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 24, 42, .92), rgba(4, 24, 42, .58));
  pointer-events: none;
}

.footer img,
.footer span {
  position: relative;
  z-index: 1;
}

.footer span {
  max-width: 980px;
  color: rgba(255,255,255,.88);
  font-weight: 650;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .right-rail,
  .results {
    grid-column: 1;
  }

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

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

  .filter-advanced .accordion-body,
  .filter-advanced .evidence-status {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .visual-brief {
    grid-template-columns: 1fr 1fr;
  }

  .visual-card-wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  body {
    background-attachment: scroll;
  }

  .hero-card {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: 30px;
  }

  .hero-copy p {
    font-size: 15px;
  }

  .visual-brief,
  .right-rail,
  .filters,
  .filter-advanced .accordion-body,
  .filter-advanced .evidence-status {
    grid-template-columns: 1fr;
  }

  .filters {
    order: 0;
    padding: 12px;
  }

  .results {
    order: 1;
  }

  .right-rail {
    order: 2;
  }

  .latest-list {
    grid-auto-columns: minmax(282px, 88%);
  }

  .hero-fullscreen span {
    display: none;
  }
}

@media (max-width: 520px) {
  .hero-card {
    gap: 14px;
    min-height: 0;
    padding: 54px 18px 18px;
  }

  .hero-copy h1 {
    font-size: 27px;
  }

  .hero-copy p {
    font-size: 14px;
  }

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

  .advanced-jump {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    grid-column: 1 / -1;
    width: 100%;
  }

  .hero-visual,
  .hero-visual .hero-image {
    min-height: 180px;
  }

  .hero-media .audio-player {
    display: none;
  }

  .visual-brief {
    display: none;
  }

  .visual-card {
    min-height: 150px;
  }

  .visual-card img {
    min-height: 150px;
  }

  .filter-command a,
  .filter-command-button {
    flex: 1 1 145px;
    justify-content: center;
  }
}

.topbar nav a,
.topbar nav a:first-child,
.topbar nav a:hover,
.topbar nav a:focus-visible {
  color: rgba(255,255,255,.94);
}

.topbar nav a:first-child {
  border-bottom-color: #22c3d6;
  background: rgba(255,255,255,.08);
}

.footer-stats-trigger {
  display: inline;
  max-width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, .94);
  font: inherit;
  font-weight: 800;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .34);
  text-underline-offset: 3px;
  white-space: normal;
  overflow-wrap: anywhere;
  box-shadow: none;
  cursor: pointer;
}

.footer span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.footer-stats-trigger:hover,
.footer-stats-trigger:focus-visible {
  background: transparent;
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, .82);
}

.source-stats-modal {
  width: min(620px, calc(100vw - 28px));
  max-height: min(760px, calc(100vh - 36px));
  padding: 0;
  border: 1px solid rgba(182, 207, 225, .88);
  border-radius: 8px;
  background: transparent;
  color: var(--rx-ink);
  box-shadow: 0 28px 80px rgba(2, 24, 43, .34);
}

.source-stats-modal::backdrop {
  background: rgba(2, 24, 43, .46);
  backdrop-filter: blur(8px);
}

.source-stats-card {
  overflow: hidden;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(245,250,253,.98)),
    var(--rx-surface);
}

.source-stats-card header {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--rx-border-soft);
  background:
    linear-gradient(135deg, rgba(7, 75, 122, .08), rgba(255,255,255,.92) 52%),
    #fff;
}

.source-stats-card header form {
  position: absolute;
  top: 16px;
  right: 16px;
  margin: 0;
}

.source-stats-card h2 {
  margin: 0 0 5px;
  color: var(--rx-ink);
  font-size: 20px;
}

.source-stats-card p {
  margin: 0;
  color: var(--rx-muted);
}

.source-stats-close {
  position: relative;
  z-index: 2;
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 50%;
  color: var(--rx-blue);
}

.source-stats-close svg {
  transform: rotate(-90deg);
}

.source-stats-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 14px 18px;
}

.source-stats-summary div {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(7, 75, 122, .16);
  border-radius: 6px;
  background: #f8fbfd;
  box-shadow: var(--neu-inset);
}

.source-stats-summary strong {
  display: block;
  color: var(--rx-ink);
  font-size: 22px;
  line-height: 1;
}

.source-stats-summary span {
  display: block;
  margin-top: 5px;
  color: var(--rx-muted);
  font-size: 11px;
  font-weight: 760;
  text-transform: uppercase;
}

.source-stats-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0 18px 16px;
  list-style: none;
}

.source-stats-list li {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.source-stats-list li > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.source-stats-list strong {
  overflow: hidden;
  color: var(--rx-ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-stats-list span {
  flex: 0 0 auto;
  color: var(--rx-muted);
  font-size: 12px;
  font-weight: 760;
}

.source-stats-list i {
  display: block;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(7, 75, 122, .11);
  box-shadow: inset 1px 1px 3px rgba(9, 38, 66, .12), inset -1px -1px 3px rgba(255,255,255,.9);
}

.source-stats-list i:before {
  display: block;
  width: var(--source-share);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #073d68, #0a6f91);
  content: "";
}

.source-stats-note {
  padding: 0 18px 18px;
  font-size: 12px;
  line-height: 1.5;
}

.app-preloader,
.scroll-progress,
.scroll-top {
  display: none !important;
}

@media (max-width: 520px) {
  .source-stats-summary {
    grid-template-columns: 1fr;
  }

  .source-stats-list li > div {
    display: grid;
    gap: 3px;
  }

  .source-stats-list span {
    flex: initial;
  }
}

/* Candidate mockup implementation: researcher-first dashboard shell. */
@media (min-width: 1181px) {
  body {
    background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(245,248,251,.96) 420px), #f3f7fb;
  }

  .topbar {
    border-radius: 0;
  }

  .hero-band,
  .metric-strip,
  .visual-brief,
  .app-shell,
  .footer {
    margin-left: 312px;
    width: calc(100vw - 326px);
    box-sizing: border-box;
  }

  .sidebar-collapsed .hero-band,
  .sidebar-collapsed .metric-strip,
  .sidebar-collapsed .visual-brief,
  .sidebar-collapsed .app-shell,
  .sidebar-collapsed .footer {
    margin-left: 88px;
    width: calc(100vw - 102px);
  }

  .hero-band,
  .metric-strip,
  .app-shell {
    max-width: none;
  }

  .hero-band {
    margin-top: 14px;
    padding: 0 14px 0 0;
  }

  .hero-card {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 520px);
    min-height: 270px;
    padding: 18px;
    border-color: rgba(7,75,122,.16);
    background: linear-gradient(90deg, rgba(255,255,255,.98), rgba(247,251,253,.94) 70%, rgba(239,247,251,.9));
  }

  .hero-copy {
    align-content: start;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .hero-copy h1 {
    max-width: 820px;
    font-size: clamp(34px, 3.2vw, 48px);
  }

  .hero-copy p {
    max-width: 790px;
    margin-bottom: 18px;
    font-size: 16px;
  }

  .hero-search {
    max-width: 840px;
    border-color: rgba(7,75,122,.2);
    background: rgba(255,255,255,.96);
  }

  .hero-media {
    align-self: stretch;
  }

  .hero-visual,
  .hero-visual .hero-image {
    min-height: 214px;
  }

  .metric-strip {
    grid-template-columns: repeat(6, minmax(120px, 1fr));
    gap: 12px;
    padding: 12px 14px 0 0;
  }

  .metric-strip div {
    min-height: 72px;
    border: 1px solid rgba(7,75,122,.16);
    background: rgba(255,255,255,.96);
    box-shadow: 0 10px 24px rgba(12,38,62,.08);
  }

  .metric-strip strong {
    font-size: 26px;
  }

  .visual-brief {
    display: none;
  }

  .app-shell {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 14px;
    padding: 14px 14px 18px 0;
  }

  .filters {
    position: fixed;
    inset: 132px auto 14px 14px;
    z-index: 14;
    width: 284px;
    overflow: auto;
    padding: 54px 18px 18px;
    border: 1px solid rgba(160, 215, 236, .2);
    background: linear-gradient(180deg, rgba(5,35,58,.96), rgba(3,25,43,.98));
    color: rgba(255,255,255,.9);
    box-shadow: 0 20px 42px rgba(2, 19, 33, .22);
    scrollbar-color: rgba(171, 231, 244, .45) rgba(255,255,255,.08);
    transform: none !important;
  }

  .filters.is-collapsed {
    width: 58px;
    padding: 12px 8px;
  }

  .filters.is-collapsed .filters-body {
    display: none;
  }

  .filters.is-collapsed .sidebar-toggle {
    writing-mode: vertical-rl;
    min-height: 130px;
    width: 100%;
    padding: 10px 0;
  }

  .filters .panel-title h2,
  .filters legend,
  .filters .field span,
  .filters label {
    color: rgba(255,255,255,.94);
  }

  .filters .panel-title a,
  .filters .filter-help,
  .filters small {
    color: rgba(211, 233, 242, .72);
  }

  .filters .panel-title {
    display: none;
  }

  .filter-command a,
  .filter-command-button,
  .filters input[type="search"],
  .filters input[type="text"],
  .filters input[type="date"],
  .filters select {
    border-color: rgba(180, 221, 236, .24);
    background: rgba(255,255,255,.12);
    color: #fff;
  }

  .filters input::placeholder {
    color: rgba(231, 244, 249, .58);
  }

  .filters select option {
    color: #102338;
  }

  .filter-command a,
  .filter-command-button {
    min-height: 36px;
    border-radius: 8px;
    color: rgba(255,255,255,.9);
  }

  .filter-command a:hover,
  .filter-command-button:hover {
    background: rgba(73, 192, 211, .2);
    color: #fff;
  }

  .filters .primary {
    border-color: rgba(79, 213, 231, .5);
    background: linear-gradient(180deg, #0b82a1, #075778);
  }

  .filters .save-search,
  .filters .export-links a {
    border-color: rgba(180, 221, 236, .24);
    background: rgba(255,255,255,.1);
    color: rgba(255,255,255,.9);
  }

  .filter-advanced {
    border-color: rgba(180, 221, 236, .2);
    background: rgba(255,255,255,.07);
  }

  .accordion[open].filter-advanced > summary {
    background: rgba(73, 192, 211, .14);
  }

  .results {
    grid-column: 1;
    gap: 14px;
  }

  .right-rail {
    grid-column: 2;
    position: sticky;
    top: 84px;
  }

  .right-rail .analytics {
    order: 1;
  }

  .right-rail #alerts {
    order: 2;
  }

  .right-rail .digest {
    order: 3;
  }

  .right-rail #admin {
    order: 4;
  }

  .latest-panel,
  .paper-panel,
  .right-rail .panel {
    border-color: rgba(7,75,122,.14);
    box-shadow: 0 12px 28px rgba(12,38,62,.08);
  }

  .latest-list {
    grid-auto-flow: row;
    grid-auto-columns: initial;
    grid-template-columns: 1fr;
    overflow: visible;
    scroll-snap-type: none;
  }

  .latest-paper {
    grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
    height: auto;
    min-height: 118px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .latest-paper:last-child {
    border-bottom: 0;
  }

  .latest-paper h3 {
    -webkit-line-clamp: 2;
    font-size: 14px;
  }

  .paper {
    grid-template-columns: minmax(0, 1fr) minmax(170px, 230px);
    padding: 18px;
  }

  .paper .tags {
    padding-top: 2px;
  }

  .publication-toolbar {
    border-color: rgba(7,75,122,.12);
    background: #f8fbfd;
  }

  #publication-timeline {
    height: 190px;
    max-height: 190px;
  }
}

.advanced-filter-trigger {
  width: 100%;
  margin-bottom: 16px;
  border-color: rgba(7,75,122,.2);
  color: var(--teal-dark);
}

.sidebar-toggle {
  width: 100%;
  gap: 8px;
  margin-bottom: 14px;
  border-color: rgba(7,75,122,.22);
  background: #fff;
  color: var(--teal-dark);
}

.search-context {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 14px;
  padding: 14px 16px;
  border-color: rgba(7,75,122,.2);
  background: rgba(255,255,255,.97);
}

.search-context span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.search-context strong {
  display: block;
  margin-top: 2px;
  overflow-wrap: anywhere;
  color: var(--teal-dark);
  font-size: 16px;
  line-height: 1.25;
}

.search-context em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.search-context > .svg-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #e8f6fb;
  color: var(--teal);
}

.search-context.is-executed {
  border-color: rgba(7, 111, 145, .42);
  background: linear-gradient(180deg, #fff, #f2fbfd);
  box-shadow: 0 12px 30px rgba(7, 75, 122, .1);
}

.search-context.is-executed > .svg-icon {
  background: linear-gradient(180deg, #0a6f91, #053b63);
  color: #fff;
}

.search-context-reset {
  align-self: center;
  padding: 8px 11px;
  border: 1px solid rgba(7,75,122,.2);
  border-radius: 8px;
  background: #fff;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
}

.search-context-reset:hover,
.search-context-reset:focus-visible {
  border-color: rgba(7,75,122,.42);
  background: #e8f6fb;
  text-decoration: none;
}

.result-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.result-accordion-toggle {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--academic-navy-2);
  font: inherit;
  text-align: left;
}

.result-accordion-toggle:hover,
.result-accordion-toggle:focus-visible {
  color: var(--academic-teal);
  text-decoration: none;
}

.result-accordion-toggle .svg-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  transition: transform .18s ease;
}

.result-accordion-toggle span {
  overflow: hidden;
  font-size: 18px;
  font-weight: 880;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.paper-panel .matching-results-body {
  display: grid;
  gap: 12px;
}

.paper-panel .matching-results-body[hidden] {
  display: none !important;
}

.paper-panel.is-collapsed {
  padding-bottom: 0;
}

.paper-panel.is-collapsed .result-accordion-toggle .svg-icon {
  transform: rotate(180deg);
}

.results:focus {
  outline: none;
}

.results.is-search-arrival .search-context {
  animation: search-arrival-pulse 1.2s ease;
}

@keyframes search-arrival-pulse {
  0% { box-shadow: 0 0 0 0 rgba(10, 111, 145, .34), 0 12px 30px rgba(7, 75, 122, .1); }
  45% { box-shadow: 0 0 0 8px rgba(10, 111, 145, .12), 0 12px 30px rgba(7, 75, 122, .1); }
  100% { box-shadow: 0 0 0 0 rgba(10, 111, 145, 0), 0 12px 30px rgba(7, 75, 122, .1); }
}

.advanced-filter-modal,
.alert-modal {
  width: min(940px, calc(100vw - 24px));
  max-height: min(820px, calc(100vh - 24px));
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(7,75,122,.18);
  border-radius: 8px;
  background: #fff;
  color: #172337;
  box-shadow: 0 28px 80px rgba(4, 24, 42, .28);
}

.alert-modal {
  width: min(720px, calc(100vw - 24px));
}

.advanced-filter-modal::backdrop,
.alert-modal::backdrop {
  background: rgba(3, 24, 42, .58);
  backdrop-filter: blur(5px);
}

.advanced-filter-sheet,
.alert-sheet {
  display: grid;
  max-height: inherit;
  overflow: hidden;
  background: #fff;
  color: #172337;
}

.advanced-filter-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, #fff, #f4f8fb);
  color: #172337;
}

.advanced-filter-head h2 {
  margin: 0 0 5px;
  color: #0a243d;
  font-size: 20px;
}

.advanced-filter-head p {
  max-width: 640px;
  margin: 0;
  color: #44566c;
  font-size: 13px;
}

.advanced-filter-close {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 999px;
  border-color: #b9c8d7;
  background: #fff;
  color: #0a243d;
  font-size: 18px;
  line-height: 1;
}

.advanced-filter-close .svg-icon,
.advanced-filter-close svg {
  width: 18px;
  height: 18px;
}

.advanced-filter-modal .accordion-body,
.alert-modal .alert-form {
  overflow: auto;
  padding: 18px 20px;
  color: #172337;
}

.advanced-filter-modal label,
.advanced-filter-modal legend,
.advanced-filter-modal .field span,
.alert-modal label,
.alert-modal legend,
.alert-modal .field span,
.alert-modal summary,
.alert-modal strong {
  color: #172337;
}

.advanced-filter-modal .filter-help,
.alert-modal .field-note,
.alert-modal .privacy-note,
.alert-modal .alert-intro span {
  color: #44566c;
}

.advanced-filter-modal input,
.advanced-filter-modal select,
.alert-modal input,
.alert-modal select {
  border-color: #aebdca;
  background: #fff;
  color: #102338;
}

.advanced-filter-modal option,
.alert-modal option,
.advanced-filter-modal small,
.alert-modal small {
  background: #fff;
  color: #213a55;
}

.advanced-filter-modal .accordion-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.advanced-filter-modal .filter-help,
.advanced-filter-modal .evidence-status,
.advanced-filter-modal .date-grid {
  grid-column: 1 / -1;
}

.advanced-filter-modal .evidence-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.advanced-filter-actions {
  position: sticky;
  bottom: 0;
  z-index: 4;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid #c5d3df;
  background: #f4f8fb;
  box-shadow: 0 -12px 26px rgba(8, 35, 57, .08);
}

.advanced-filter-actions .primary,
.advanced-filter-actions .secondary {
  width: auto;
  min-width: 150px;
  padding: 0 16px;
}

.advanced-filter-actions .primary {
  min-height: 46px;
  border-color: #063e68;
  background: linear-gradient(180deg, #086f96, #053b63);
  color: #fff;
  box-shadow: 0 12px 26px rgba(5, 59, 99, .34);
  font-weight: 860;
}

.advanced-filter-actions .secondary {
  min-height: 44px;
  background: #fff;
  color: #16324c;
}

.alert-panel .primary {
  margin-top: 12px;
}

.alert-sheet .alert-intro,
.alert-sheet .field,
.alert-sheet fieldset,
.alert-sheet details,
.alert-sheet .consent-check,
.alert-sheet .privacy-note {
  margin-bottom: 14px;
}

@media (max-width: 820px) {
  .advanced-filter-modal,
  .alert-modal {
    width: 100vw;
    max-width: 100vw;
    max-height: 88vh;
    margin: auto 0 0;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 12px 12px 0 0;
  }

  .advanced-filter-modal .accordion-body,
  .advanced-filter-modal .evidence-status,
  .search-context {
    grid-template-columns: 1fr;
  }

  .advanced-filter-head,
  .advanced-filter-actions {
    padding-right: 14px;
    padding-left: 14px;
  }

  .advanced-filter-modal .accordion-body,
  .alert-modal .alert-form {
    padding: 14px;
  }

  .advanced-filter-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .advanced-filter-actions .primary,
  .advanced-filter-actions .secondary {
    width: 100%;
  }
}

@media (min-width: 1181px) {
  .filters .advanced-filter-trigger {
    border-color: rgba(180, 221, 236, .24);
    background: rgba(255,255,255,.1);
    color: rgba(255,255,255,.9);
  }

  .filters .sidebar-toggle {
    border-color: rgba(180, 221, 236, .24);
    background: rgba(255,255,255,.12);
    color: #fff;
  }
}

/* Scroll/layout stability pass: keep the app to the viewport and avoid older
   breakpoint rules pushing references below a full filter panel on laptops. */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

@media (min-width: 1181px) {
  body {
    background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(245,248,251,.96) 420px), #f3f7fb;
  }

  .hero-band,
  .metric-strip,
  .visual-brief,
  .app-shell,
  .footer {
    width: auto;
    margin-right: 14px;
  }

  .sidebar-collapsed .hero-band,
  .sidebar-collapsed .metric-strip,
  .sidebar-collapsed .visual-brief,
  .sidebar-collapsed .app-shell,
  .sidebar-collapsed .footer {
    width: auto;
    margin-right: 14px;
  }

  .filters {
    max-height: calc(100dvh - 146px);
    overscroll-behavior: contain;
  }

  .right-rail {
    position: static;
  }
}

@media (max-width: 1180px) {
  .app-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .results {
    order: 1;
    grid-column: 1;
  }

  .filters {
    order: 2;
    grid-column: 1;
    position: static;
    max-height: none;
    overflow: visible;
  }

  .right-rail {
    order: 3;
    grid-column: 1;
    grid-template-columns: 1fr;
    position: static;
  }

  .visual-brief {
    display: none;
  }

  .publication-toolbar,
  .publication-exports,
  .export-links,
  .filter-command {
    max-width: 100%;
  }
}

.scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 80;
  display: block !important;
  height: 3px;
  overflow: hidden;
  pointer-events: none;
  background: rgba(5, 38, 66, .08);
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, #0a6f91, #31b7c8);
  box-shadow: 0 0 12px rgba(49, 183, 200, .32);
}

.scroll-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: inline-grid !important;
  place-items: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid rgba(176, 206, 225, .7);
  border-radius: 999px;
  background: rgba(3, 38, 66, .94);
  color: #fff;
  box-shadow: 0 14px 32px rgba(3, 24, 42, .28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .18s ease, transform .18s ease, background .18s ease;
}

.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top:hover,
.scroll-top:focus-visible {
  background: #075778;
}

.scroll-top .svg-icon,
.scroll-top svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 640px) {
  .scroll-top {
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    min-height: 42px;
  }
}

/* Fullscreen research header background, layered behind the existing hero/network. */
.app-preloader {
  display: grid !important;
  opacity: 1;
  visibility: visible;
  transition: opacity .24s ease, visibility .24s ease;
}

.app-preloader[hidden],
.app-preloader.is-hidden {
  display: grid !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.hero-band {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(620px, calc(100dvh - 64px), 900px);
  margin: 0 !important;
  padding: clamp(34px, 5vw, 76px) clamp(14px, 3vw, 44px) clamp(28px, 4vw, 64px) !important;
  overflow: hidden;
  background: #031a2d;
}

.hero-band::before {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(2, 17, 31, .82), rgba(2, 24, 42, .52) 42%, rgba(2, 18, 32, .66)),
    linear-gradient(180deg, rgba(2, 18, 32, .16), rgba(2, 18, 32, .86)),
    url("natural-header-forest-2026-07-01.webp") center / cover no-repeat;
  content: "";
}

.hero-band::after {
  position: absolute;
  inset: auto 0 0;
  z-index: -2;
  height: 34%;
  background: linear-gradient(180deg, rgba(3, 26, 45, 0), var(--bg));
  pointer-events: none;
  content: "";
}

.hero-band .hero-card {
  width: min(1480px, 100%);
  margin: 0 auto;
  border-color: rgba(156, 215, 235, .24);
  background: linear-gradient(90deg, rgba(255,255,255,.96), rgba(255,255,255,.88) 58%, rgba(255,255,255,.66));
  box-shadow: 0 30px 90px rgba(0, 18, 34, .32);
  backdrop-filter: blur(8px);
}

.hero-band .hero-media,
.hero-band .hero-visual {
  background: rgba(2, 23, 40, .42);
}

.hero-band .hero-visual::before {
  opacity: .28;
}

@media (min-width: 1181px) {
  .hero-band {
    width: auto !important;
    min-height: calc(100dvh - 64px);
  }

  .hero-band .hero-card {
    justify-self: start;
    width: min(1180px, calc(100vw - 370px)) !important;
    max-width: 1180px;
    margin-right: 14px;
    margin-left: 312px;
    grid-template-columns: minmax(360px, 1fr) minmax(360px, 520px);
  }

  .sidebar-collapsed .hero-band .hero-card {
    width: min(1360px, calc(100vw - 146px)) !important;
    max-width: 1360px;
    margin-left: 88px;
  }
}

@media (max-width: 820px) {
  .hero-band {
    min-height: auto;
    padding-top: 22px !important;
  }

  .hero-band .hero-card {
    background: rgba(255,255,255,.94);
  }
}

/* Final typography system: self-hosted Roboto tuned for dense academic UI. */
body,
button,
input,
select,
textarea {
  font-family: var(--font-sans);
}

body {
  line-height: 1.5;
}

h1,
h2,
h3,
.hero-copy h1,
.latest-paper h3,
.paper h3,
.result-bar h1,
.latest-head h1 {
  letter-spacing: 0;
}

h1,
.hero-copy h1 {
  line-height: 1.12;
  font-weight: 850;
}

h2,
.advanced-filter-head h2 {
  line-height: 1.18;
  font-weight: 780;
}

h3,
.paper h3,
.latest-paper h3 {
  line-height: 1.34;
  font-weight: 760;
}

.paper h3 {
  font-size: 15px;
}

.paper h3 a,
.latest-paper h3 a {
  text-decoration-thickness: .08em;
  text-underline-offset: .16em;
}

.abstract {
  color: #334255;
  font-size: 13.5px;
  line-height: 1.58;
}

.paper-meta {
  gap: 6px;
  font-size: 12.5px;
  line-height: 1.45;
}

.paper-meta strong {
  font-size: 13px;
  line-height: 1.35;
}

.links,
.tags span,
.filter-command a,
.filter-command-button,
.publication-exports a,
.advanced-filter-actions .primary,
.advanced-filter-actions .secondary {
  line-height: 1.25;
}

.field span,
legend,
.search-context span,
.source-stats-summary span {
  letter-spacing: .01em;
}

@media (max-width: 640px) {
  body {
    font-size: 14.5px;
    line-height: 1.52;
  }

  .hero-copy h1 {
    line-height: 1.08;
  }

  .paper h3 {
    font-size: 15.5px;
    line-height: 1.32;
  }

  .abstract {
    font-size: 14px;
    line-height: 1.6;
  }

  .paper-meta {
    font-size: 13px;
  }
}

@media (max-width: 820px) {
  .paper,
  .latest-paper {
    grid-template-columns: minmax(0, 1fr);
  }

  .paper-main,
  .paper-meta,
  .paper .tags {
    min-width: 0;
    width: 100%;
  }

  .paper h3,
  .paper h3 a,
  .abstract {
    overflow-wrap: anywhere;
  }
}

/* Final app-shell polish: integrate the desktop filter rail with the header. */
@media (min-width: 1181px) {
  .topbar {
    grid-template-columns: 298px minmax(0, auto) minmax(170px, 1fr);
    gap: 18px;
    min-height: 70px;
    padding: 0 16px 0 14px;
    border-bottom: 1px solid rgba(112, 196, 223, .22);
    background: linear-gradient(180deg, #073452, #04263f);
    box-shadow: 0 10px 28px rgba(2, 22, 38, .22);
  }

  .topbar .brand-image {
    align-self: stretch;
    width: 284px;
    padding: 7px 12px 7px 4px;
    border-right: 1px solid rgba(171, 231, 244, .16);
    background: linear-gradient(90deg, rgba(255,255,255,.055), rgba(255,255,255,0));
  }

  .topbar nav {
    justify-self: start;
    min-width: 0;
  }

  .topbar nav a {
    min-width: 84px;
    font-weight: 720;
  }

  .top-actions {
    justify-self: end;
  }

  .filters {
    inset: 70px auto 0 0;
    width: 298px;
    max-height: calc(100dvh - 70px);
    padding: 16px 14px 18px;
    border-width: 0 1px 0 0;
    border-color: rgba(112, 196, 223, .2);
    border-radius: 0;
    background:
      linear-gradient(180deg, rgba(4, 38, 63, .99), rgba(3, 28, 48, .995)),
      #04263f;
    box-shadow: 8px 0 24px rgba(2, 21, 36, .18);
    scrollbar-color: rgba(171, 231, 244, .5) rgba(255,255,255,.075);
  }

  .filters .panel-title {
    display: flex;
    align-items: baseline;
    margin: 0 0 14px;
    padding: 0 2px 12px;
    border-bottom: 1px solid rgba(171, 231, 244, .15);
    background: transparent;
  }

  .filters .panel-title h2 {
    color: #fff;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 820;
  }

  .filters .panel-title a {
    color: rgba(208, 237, 247, .78);
    font-size: 11.5px;
  }

  .filters .sidebar-toggle {
    justify-content: flex-start;
    min-height: 38px;
    margin-bottom: 12px;
    padding: 0 12px;
    border-color: rgba(171, 231, 244, .24);
    border-radius: 7px;
    background: rgba(255,255,255,.09);
    color: #fff;
  }

  .filter-command {
    gap: 7px;
    margin-bottom: 14px;
  }

  .filter-command a,
  .filter-command-button,
  .filters .save-search,
  .filters .export-links a,
  .filters .advanced-filter-trigger {
    border-color: rgba(171, 231, 244, .22);
    border-radius: 7px;
    background: rgba(255,255,255,.085);
    color: rgba(244, 251, 253, .94);
    box-shadow: none;
  }

  .filter-command a:hover,
  .filter-command-button:hover,
  .filters .save-search:hover,
  .filters .export-links a:hover,
  .filters .advanced-filter-trigger:hover,
  .filters .sidebar-toggle:hover {
    border-color: rgba(80, 211, 230, .44);
    background: rgba(39, 151, 178, .23);
    color: #fff;
  }

  .filters input[type="search"],
  .filters input[type="text"],
  .filters input[type="date"],
  .filters select {
    min-height: 38px;
    border-color: rgba(187, 223, 237, .28);
    border-radius: 7px;
    background: rgba(255,255,255,.12);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
  }

  .filters input[type="search"]:focus,
  .filters input[type="text"]:focus,
  .filters input[type="date"]:focus,
  .filters select:focus {
    border-color: rgba(80, 211, 230, .68);
    box-shadow: 0 0 0 3px rgba(80, 211, 230, .15);
  }

  .filters fieldset {
    margin-bottom: 15px;
  }

  .filters label,
  .filters legend,
  .filters .field span {
    color: rgba(244, 251, 253, .93);
  }

  .filters small {
    margin-left: auto;
    color: rgba(217, 241, 248, .74);
  }

  .filters.is-collapsed {
    width: 70px;
    padding: 12px 8px;
  }

  .filters.is-collapsed .sidebar-toggle {
    justify-content: center;
    min-height: 124px;
    padding: 10px 0;
  }

  .sidebar-collapsed .hero-band,
  .sidebar-collapsed .metric-strip,
  .sidebar-collapsed .visual-brief,
  .sidebar-collapsed .app-shell,
  .sidebar-collapsed .footer {
    margin-left: 84px;
  }

  .hero-band,
  .metric-strip,
  .visual-brief,
  .app-shell,
  .footer {
    margin-left: 312px;
  }

  .hero-band .hero-card {
    margin-left: 312px;
  }

  .sidebar-collapsed .hero-band .hero-card {
    margin-left: 84px;
  }
}

/* Naturalistic visual pass: forest biology cues with academic contrast. */
:root {
  --forest-ink: #10251f;
  --forest-navy: #062d34;
  --forest-deep: #031f24;
  --forest-moss: #2f624e;
  --forest-mint: #dcefe5;
  --forest-line: #c9d9d1;
}

body {
  background:
    radial-gradient(circle at 14% -8%, rgba(47, 98, 78, .18), transparent 32%),
    linear-gradient(180deg, #f4f8f5 0, #eef5f0 420px, #edf3f1 100%);
}

.topbar {
  background: linear-gradient(180deg, #07383d, #04272d);
  border-bottom-color: rgba(174, 220, 203, .22);
}

.topbar nav a:first-child,
.topbar nav a:hover,
.topbar nav a:focus-visible {
  background: rgba(217, 239, 229, .11);
}

.topbar nav a:first-child:after,
.topbar nav a:hover:after,
.topbar nav a:focus-visible:after {
  background: linear-gradient(90deg, #a9ddbf, #35b5bd);
}

.hero-band::before {
  background:
    linear-gradient(90deg, rgba(2, 18, 20, .82), rgba(2, 28, 31, .48) 48%, rgba(2, 18, 20, .58)),
    linear-gradient(180deg, rgba(2, 18, 20, .1), rgba(2, 18, 20, .76)),
    url("natural-header-forest-2026-07-01.webp") center / cover no-repeat;
}

.hero-band .hero-card {
  border-color: rgba(190, 218, 205, .42);
  background:
    linear-gradient(90deg, rgba(255,255,255,.97), rgba(250,253,250,.9) 58%, rgba(238,247,242,.7));
  box-shadow: 0 32px 90px rgba(4, 31, 35, .34);
}

.hero-copy h1,
.result-bar h1,
.latest-head h1,
.paper h3 a,
.latest-paper h3 a {
  color: #082b35;
}

.hero-copy p {
  color: #24463e;
}

.hero-visual {
  border-color: rgba(205, 230, 217, .48);
}

.hero-image,
.panel-visual img,
.visual-card img {
  filter: saturate(.94) contrast(1.03);
}

.hero-net {
  opacity: .7;
  mix-blend-mode: screen;
}

.metric-strip div,
.paper-panel,
.latest-panel,
.search-context,
.right-rail .panel {
  border-color: rgba(164, 197, 182, .45);
  background: rgba(255, 255, 255, .965);
}

.tags span {
  background: #e3f1e8;
  color: #173e34;
  border-color: rgba(47, 98, 78, .18);
}

.tags .soft {
  background: #edf3ef;
  color: #3d5b53;
}

.search-context.is-executed > .svg-icon,
.hero-search button,
.advanced-filter-actions .primary {
  background: linear-gradient(180deg, #176c62, #073f49);
}

.search-context.is-executed {
  border-color: rgba(23, 108, 98, .42);
  background: linear-gradient(180deg, #fff, #f1faf5);
}

.panel-visual {
  background: #e7f0ea;
}

.panel-visual:after {
  background: linear-gradient(180deg, transparent 38%, rgba(3, 31, 36, .26));
}

@media (min-width: 1181px) {
  .filters {
    border-color: rgba(174, 220, 203, .2);
    background:
      linear-gradient(180deg, rgba(5, 50, 54, .99), rgba(3, 33, 38, .995)),
      #04272d;
    box-shadow: 8px 0 24px rgba(3, 28, 32, .2);
    scrollbar-color: rgba(174, 220, 203, .52) rgba(255,255,255,.075);
  }

  .filters .panel-title {
    border-bottom-color: rgba(174, 220, 203, .16);
  }

  .filter-command a,
  .filter-command-button,
  .filters .save-search,
  .filters .export-links a,
  .filters .advanced-filter-trigger,
  .filters .sidebar-toggle {
    border-color: rgba(174, 220, 203, .22);
    background: rgba(255,255,255,.08);
  }

  .filter-command a:hover,
  .filter-command-button:hover,
  .filters .save-search:hover,
  .filters .export-links a:hover,
  .filters .advanced-filter-trigger:hover,
  .filters .sidebar-toggle:hover {
    border-color: rgba(169, 221, 191, .48);
    background: rgba(47, 98, 78, .3);
  }

  .filters input[type="search"],
  .filters input[type="text"],
  .filters input[type="date"],
  .filters select {
    border-color: rgba(190, 226, 211, .28);
    background: rgba(255,255,255,.115);
  }
}

/* Final visual polish: calm natural palette, stronger scan hierarchy, preserved media controls. */
:root {
  --app-ink: #102923;
  --app-text: #17332d;
  --app-muted: #60756e;
  --app-surface: rgba(255, 255, 255, .975);
  --app-surface-soft: rgba(247, 251, 248, .96);
  --app-line: rgba(121, 158, 141, .34);
  --app-line-strong: rgba(54, 107, 84, .42);
  --app-accent: #176c62;
  --app-accent-deep: #063f45;
  --app-moss: #3f745d;
  --app-cyan: #37b8c4;
}

body {
  color: var(--app-text);
  background:
    radial-gradient(circle at 82% 0%, rgba(55, 184, 196, .12), transparent 26rem),
    radial-gradient(circle at 12% 16%, rgba(63, 116, 93, .16), transparent 24rem),
    linear-gradient(180deg, #f6faf7 0, #eef6f1 34rem, #f7faf8 100%);
}

.topbar {
  border-bottom: 1px solid rgba(176, 218, 202, .22);
  background:
    linear-gradient(90deg, rgba(4, 34, 39, .98), rgba(5, 53, 56, .97) 52%, rgba(4, 34, 39, .98));
  box-shadow: 0 10px 26px rgba(4, 30, 35, .18);
}

.topbar nav a {
  color: rgba(244, 252, 249, .9);
}

.topbar nav a:first-child,
.topbar nav a:hover,
.topbar nav a:focus-visible {
  color: #fff;
  background: rgba(214, 238, 226, .12);
}

.hero-band .hero-card {
  border: 1px solid rgba(190, 218, 205, .58);
  background:
    linear-gradient(90deg, rgba(255,255,255,.99) 0%, rgba(251,253,251,.96) 58%, rgba(237, 247, 241, .9) 100%);
  box-shadow: 0 28px 86px rgba(4, 31, 35, .28);
}

.hero-copy h1,
.result-bar h1,
.latest-head h1,
.paper h3 a,
.latest-paper h3 a,
.panel-title h2 {
  color: var(--app-ink);
}

.hero-copy p,
.visual-card p,
.search-context em,
.paper-meta,
.latest-paper p {
  color: var(--app-muted);
}

.hero-search {
  box-shadow: 0 12px 30px rgba(5, 55, 60, .08);
}

.hero-search input,
.filters input[type="search"],
.filters input[type="text"],
.filters input[type="date"],
.filters select {
  border-color: rgba(121, 158, 141, .42);
}

.hero-search input:focus,
.filters input[type="search"]:focus,
.filters input[type="text"]:focus,
.filters input[type="date"]:focus,
.filters select:focus {
  border-color: rgba(55, 184, 196, .78);
  box-shadow: 0 0 0 3px rgba(55, 184, 196, .16);
}

.hero-search button,
.advanced-filter-actions .primary,
.alert-form .primary,
.primary.iconed {
  background: linear-gradient(180deg, var(--app-accent), var(--app-accent-deep));
  box-shadow: 0 10px 22px rgba(6, 63, 69, .18);
}

.hero-search button:hover,
.advanced-filter-actions .primary:hover,
.alert-form .primary:hover,
.primary.iconed:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.hero-visual {
  overflow: hidden;
  border: 1px solid rgba(186, 213, 200, .62);
  background: #e8f0eb;
}

.hero-visual .hero-image,
.panel-visual img,
.visual-card img {
  filter: saturate(.96) contrast(1.02);
}

.hero-net[data-disable-network="true"] {
  display: none;
}

.audio-player {
  display: block !important;
  padding: 8px;
  border: 1px solid rgba(185, 205, 196, .78);
  border-radius: 8px;
  background: rgba(247, 251, 248, .94);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.82);
}

#transport-audio {
  display: block !important;
  display: block;
  width: 100%;
  height: 36px;
  accent-color: var(--app-accent);
}

.hero-media .audio-player {
  display: block !important;
}

.metric-strip div,
.visual-card,
.paper-panel,
.latest-panel,
.search-context,
.right-rail .panel {
  border-color: var(--app-line);
  background: var(--app-surface);
  box-shadow: 0 18px 46px rgba(17, 49, 42, .08);
}

.paper,
.latest-paper {
  border-color: rgba(121, 158, 141, .28);
}

.paper:hover,
.latest-paper:hover,
.visual-card:hover {
  border-color: var(--app-line-strong);
  box-shadow: 0 18px 44px rgba(17, 49, 42, .11);
}

.search-context.is-executed {
  border-color: rgba(23, 108, 98, .48);
  background: linear-gradient(180deg, #ffffff, #f3faf6);
}

.search-context.is-executed > .svg-icon {
  background: linear-gradient(180deg, var(--app-accent), var(--app-accent-deep));
}

.rank-filter-link:hover,
.rank-filter-link:focus-visible {
  background: rgba(63, 116, 93, .12);
  color: var(--app-accent-deep);
}

.tags span {
  border-color: rgba(63, 116, 93, .18);
  background: #e6f2ea;
  color: #173e34;
}

.tags .soft {
  background: #f0f5f2;
  color: #4b635b;
}

.panel-visual {
  border-color: rgba(121, 158, 141, .28);
  background: #e9f1ec;
}

.panel-visual:after {
  background: linear-gradient(180deg, transparent 46%, rgba(4, 31, 35, .24));
}

@media (min-width: 1181px) {
  .filters {
    border-right: 1px solid rgba(176, 218, 202, .18);
    background:
      linear-gradient(180deg, rgba(5, 48, 52, .985), rgba(3, 31, 36, .995)),
      #04272d;
    box-shadow: 10px 0 30px rgba(3, 28, 32, .22);
  }

  .filters .panel-title {
    border-bottom-color: rgba(214, 238, 226, .16);
  }

  .filters .panel-title h2,
  .filters legend,
  .filters .field span,
  .filters label {
    color: rgba(248, 253, 251, .94);
  }

  .filter-command a,
  .filter-command-button,
  .filters .save-search,
  .filters .export-links a,
  .filters .advanced-filter-trigger,
  .filters .sidebar-toggle {
    border-color: rgba(214, 238, 226, .22);
    background: rgba(255, 255, 255, .085);
  }

  .filter-command a:hover,
  .filter-command-button:hover,
  .filters .save-search:hover,
  .filters .export-links a:hover,
  .filters .advanced-filter-trigger:hover,
  .filters .sidebar-toggle:hover {
    border-color: rgba(169, 221, 191, .54);
    background: rgba(63, 116, 93, .34);
  }
}

/* Green system lock: keep accents, charts, controls, and network aligned with the natural visual identity. */
:root {
  --mock-cyan: #4f8b62;
  --rx-cyan: #4f8b62;
  --rx-cyan-2: #6fb27b;
  --rx-blue: #315f47;
  --ux-cyan: #e7f3ea;
  --teal: #315f47;
  --teal-dark: #173c2d;
  --teal-soft: #e6f2ea;
  --app-accent: #4f8b62;
  --app-accent-deep: #173c2d;
  --app-cyan: #6fb27b;
}

a,
.paper h3 a,
.latest-paper h3 a,
.publication-exports a,
.links a,
.rank-filter-link:hover,
.rank-filter-link:focus-visible {
  color: var(--app-accent-deep);
}

.topbar nav a:first-child:after,
.topbar nav a:hover:after,
.topbar nav a:focus-visible:after,
.scroll-progress span {
  background: linear-gradient(90deg, #9fd3aa, #4f8b62);
}

.hero-search button,
.advanced-filter-actions .primary,
.alert-form .primary,
.primary.iconed,
.filters .primary,
.search-context.is-executed > .svg-icon,
.timeline-controls button.is-active,
.filter-command a:hover,
.filter-command-button:hover {
  background: linear-gradient(180deg, #4f8b62, #173c2d);
}

.hero-search input:focus,
.filters input[type="search"]:focus,
.filters input[type="text"]:focus,
.filters input[type="date"]:focus,
.filters select:focus,
.timeline-controls button:focus-visible,
.rank-filter-link:focus-visible {
  border-color: rgba(111, 178, 123, .82);
  box-shadow: 0 0 0 3px rgba(111, 178, 123, .18);
}

.hero-net {
  opacity: .66;
  mix-blend-mode: screen;
}

.hero-net canvas,
.hero-net .network-canvas {
  animation: networkDrift 11s ease-in-out infinite alternate;
  transform-origin: 50% 50%;
}

@keyframes networkDrift {
  0% { transform: scale(1.015) translate3d(-1.5%, -1%, 0); }
  50% { transform: scale(1.04) translate3d(1.2%, .8%, 0); }
  100% { transform: scale(1.025) translate3d(-.6%, 1.4%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-net canvas,
  .hero-net .network-canvas {
    animation: none;
  }
}

#transport-audio,
input[type="checkbox"],
input[type="radio"],
input[type="range"] {
  accent-color: #4f8b62;
}

.chart-line,
.chart-point {
  stroke: #6fb27b;
}

.timeline-bar,
.mini-bars i {
  background: linear-gradient(180deg, #4f8b62, #173c2d);
}

/* Final green identity pass: logo, preloader, readable hero scale, and all controls. */
:root {
  --brand-bg: #04272d;
  --brand-bg-2: #073f35;
  --brand-green: #4f8b62;
  --brand-green-2: #6fb27b;
  --brand-green-soft: #e7f3ea;
  --brand-focus: rgba(111, 178, 123, .24);
}

.topbar .brand-image,
.mobile-brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 62px;
  padding: 4px 8px;
  border: 1px solid rgba(159, 211, 170, .28);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,0)),
    linear-gradient(135deg, var(--brand-bg), var(--brand-bg-2));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 10px 24px rgba(2, 24, 25, .22);
}

.topbar .brand-image img,
.mobile-brand img,
.preloader-shell img {
  display: block;
  width: min(325px, 100%);
  height: auto;
  border-radius: 7px;
  background: var(--brand-bg);
}

@media (min-width: 1181px) {
  .topbar {
    grid-template-columns: 352px minmax(0, auto) minmax(170px, 1fr);
  }

  .topbar .brand-image {
    width: 338px;
    padding: 5px 7px;
    border-right: 1px solid rgba(159, 211, 170, .24);
  }

  .topbar .brand-image img {
    width: 325px;
  }
}

.js .app-preloader,
.app-preloader {
  background:
    radial-gradient(circle at 28% 18%, rgba(111, 178, 123, .28), transparent 22rem),
    radial-gradient(circle at 72% 88%, rgba(159, 211, 170, .16), transparent 24rem),
    linear-gradient(135deg, #021c20, #04272d 52%, #173c2d);
  color: #f4fff7;
}

html.js body .app-preloader,
html body .app-preloader {
  background:
    linear-gradient(90deg, rgba(2, 28, 32, .86), rgba(2, 28, 32, .46) 48%, rgba(2, 28, 32, .7)),
    radial-gradient(circle at 35% 42%, rgba(111, 178, 123, .18), transparent 25rem),
    url("preloader-mushroom-desktop.webp") center / cover no-repeat,
    linear-gradient(135deg, #021c20, #04272d 52%, #173c2d);
}

.preloader-shell {
  border: 1px solid rgba(159, 211, 170, .28);
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.035)),
    rgba(4, 39, 45, .84);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    0 28px 70px rgba(0, 16, 18, .38);
}

@media (max-width: 700px) {
  html.js body .app-preloader,
  html body .app-preloader {
    background:
      linear-gradient(180deg, rgba(2, 28, 32, .64), rgba(2, 28, 32, .36) 42%, rgba(2, 28, 32, .72)),
      radial-gradient(circle at 50% 42%, rgba(111, 178, 123, .16), transparent 18rem),
      url("preloader-mushroom-mobile.webp") center / cover no-repeat,
      linear-gradient(135deg, #021c20, #04272d 52%, #173c2d);
  }
}

.preloader-title {
  color: #f6fff8;
  font-weight: 820;
  letter-spacing: 0;
}

.preloader-meter {
  background: rgba(229, 246, 235, .16);
}

.preloader-meter span,
.preloader-progress span {
  background: linear-gradient(90deg, #9fd3aa, #4f8b62, #d8f4de);
}

.spinner {
  border-color: rgba(79, 139, 98, .2);
  border-top-color: #4f8b62;
}

.hero-copy h1,
.latest-head h1,
.result-bar h1 {
  font-size: clamp(2.6rem, 2.25vw + 1.7rem, 4.35rem);
  line-height: .98;
  font-weight: 880;
  color: #082b22;
}

.hero-copy p {
  max-width: 690px;
  color: #24483d;
  font-size: clamp(1.08rem, .42vw + .96rem, 1.34rem);
  line-height: 1.56;
  font-weight: 600;
}

input,
select,
textarea,
button {
  accent-color: var(--brand-green);
}

input[type="search"],
input[type="email"],
input[type="text"],
input[type="password"],
input[type="date"],
input[type="number"],
select,
textarea {
  border-color: rgba(79, 139, 98, .42);
  background-color: #fbfefc;
  color: #102923;
}

select option {
  background: #ffffff;
  color: #102923;
}

input[type="search"]:hover,
input[type="email"]:hover,
input[type="text"]:hover,
input[type="password"]:hover,
input[type="date"]:hover,
input[type="number"]:hover,
select:hover,
textarea:hover {
  border-color: rgba(79, 139, 98, .58);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible,
input[type="search"]:focus,
input[type="email"]:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
  border-color: rgba(111, 178, 123, .9) !important;
  outline: 0;
  box-shadow: 0 0 0 3px var(--brand-focus) !important;
}

.hero-search button,
.advanced-filter-actions .primary,
.alert-form .primary,
.primary.iconed,
.filters .primary,
.filter-apply,
.modal-actions .primary,
.sheet-actions .primary,
button[type="submit"] {
  border-color: rgba(23, 60, 45, .24);
  background: linear-gradient(180deg, #5f9a70, #315f47 55%, #173c2d);
  color: #fff;
}

.hero-search button:hover,
.advanced-filter-actions .primary:hover,
.alert-form .primary:hover,
.primary.iconed:hover,
.filters .primary:hover,
.filter-apply:hover,
.modal-actions .primary:hover,
.sheet-actions .primary:hover,
button[type="submit"]:hover {
  background: linear-gradient(180deg, #6fb27b, #3f745d 58%, #173c2d);
}

.alert-mode label:has(input:checked),
.timeline-controls button.is-active,
.rank-filter-link:focus-visible,
.rank-filter-link:hover {
  border-color: rgba(79, 139, 98, .5);
  background: rgba(231, 243, 234, .9);
  color: #173c2d;
}

@media (min-width: 1181px) {
  .filters input[type="search"],
  .filters input[type="text"],
  .filters input[type="date"],
  .filters select {
    border-color: rgba(190, 226, 211, .36);
    background: rgba(255,255,255,.13);
    color: #ffffff;
  }

  .filters input[type="search"]:focus,
  .filters input[type="text"]:focus,
  .filters input[type="date"]:focus,
  .filters select:focus {
    border-color: rgba(159, 211, 170, .88) !important;
    box-shadow: 0 0 0 3px rgba(159, 211, 170, .18) !important;
  }

  .filters select option {
    color: #102923;
    background: #ffffff;
  }
}

@media (max-width: 820px) {
  .hero-copy h1,
  .latest-head h1,
  .result-bar h1 {
    font-size: clamp(2.12rem, 8vw, 3rem);
    line-height: 1.02;
  }

  .hero-copy p {
    font-size: 1.02rem;
    line-height: 1.52;
  }

  .mobile-brand {
    width: 100%;
    min-height: 60px;
  }
}

.source-stats-list i:before {
  background: linear-gradient(90deg, #6fb27b, #4f8b62);
}

/* Academic research interface refresh: evidence-first, low-decoration, data-dense. */
:root {
  --academic-bg: #f4f7fa;
  --academic-panel: #ffffff;
  --academic-ink: #142234;
  --academic-muted: #5d6b7c;
  --academic-line: #d8e1ea;
  --academic-line-strong: #b8c7d6;
  --academic-navy: #12314c;
  --academic-navy-2: #071b2c;
  --academic-teal: #0a6f73;
  --academic-teal-soft: #e7f3f3;
  --academic-violet: #554b8d;
  --academic-amber: #a76000;
  --academic-green: #117544;
  --academic-red: #a8261f;
  --bg: var(--academic-bg);
  --panel: var(--academic-panel);
  --ink: var(--academic-ink);
  --muted: var(--academic-muted);
  --line: var(--academic-line);
  --line-strong: var(--academic-line-strong);
  --teal: var(--academic-teal);
  --teal-dark: var(--academic-navy);
  --teal-soft: var(--academic-teal-soft);
  --amber: var(--academic-amber);
  --green: var(--academic-green);
  --red: var(--academic-red);
  --shadow: 0 10px 24px rgba(20, 34, 52, .07);
  --shadow-soft: 0 5px 15px rgba(20, 34, 52, .055);
}

body {
  background:
    linear-gradient(180deg, #ffffff 0, #f6f8fb 330px, var(--academic-bg) 100%);
  color: var(--academic-ink);
  font-size: 14px;
}

body:before,
body:after,
.hero-band:before,
.hero-band:after,
.right-rail #analytics:before,
.right-rail #analytics:after,
.right-rail #alerts:before,
.right-rail #alerts:after,
.analytics:before,
.analytics:after,
.alert-panel:before,
.alert-panel:after {
  display: none !important;
  background: none !important;
  content: none !important;
}

a {
  color: var(--academic-teal);
}

.topbar {
  min-height: 64px;
  border-bottom: 1px solid #d2dde7;
  border-radius: 0;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 4px 18px rgba(20, 34, 52, .06);
  backdrop-filter: blur(14px);
}

.topbar .brand-image {
  width: min(280px, 100%);
  min-height: 46px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.topbar .brand-image img {
  width: 236px;
  height: auto;
  object-fit: contain;
}

.topbar nav {
  gap: 0;
  justify-content: center;
}

.topbar nav a {
  min-width: 78px;
  min-height: 64px;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: #31455b;
  font-size: 12px;
  font-weight: 760;
}

.topbar nav a:first-child,
.topbar nav a:hover {
  border-bottom-color: var(--academic-teal);
  background: transparent;
  color: var(--academic-navy);
}

.top-actions {
  gap: 8px;
}

.top-actions a,
.top-actions button,
.install-app,
.push-app,
.admin-link {
  min-height: 34px;
  border-color: var(--academic-line);
  border-radius: 6px;
  background: #fff;
  color: #31455b;
  box-shadow: none;
  font-size: 12px;
}

.hero-band,
.metric-strip,
.app-shell,
.footer {
  max-width: 1500px;
}

.hero-band {
  display: block;
  margin-top: 14px;
}

.hero-card,
.hero-band .hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  align-items: start;
  gap: 18px;
  min-height: 0 !important;
  padding: 18px;
  border: 1px solid var(--academic-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.hero-card:before,
.hero-card:after,
.metric-strip div:before,
.panel-visual,
.hero-media,
.hero-visual,
.hero-net,
.audio-player,
.visual-brief,
.footer-media {
  display: none !important;
}

.hero-copy {
  padding: 0;
  min-height: 0 !important;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--academic-ink);
}

.hero-copy h1 {
  max-width: 840px;
  margin-bottom: 8px;
  color: var(--academic-navy-2);
  font-size: 30px;
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 880px;
  margin-bottom: 16px;
  color: var(--academic-muted);
  font-size: 15px;
  line-height: 1.52;
}

.hero-search {
  max-width: 920px;
  min-height: 54px;
  padding: 7px 8px 7px 16px;
  border: 1px solid var(--academic-line-strong);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(20, 34, 52, .08);
}

.hero-search input {
  color: var(--academic-ink);
  font-size: 15px;
}

.hero-search button,
.primary,
.advanced-filter-actions .primary,
.alert-form .primary,
.primary.iconed,
.filters .primary,
.filter-apply,
.modal-actions .primary,
.sheet-actions .primary,
button[type="submit"] {
  border-color: #095f63;
  border-radius: 6px;
  background: #0a6f73;
  color: #fff;
  box-shadow: none;
}

.hero-search button:hover,
.primary:hover,
button[type="submit"]:hover {
  background: #075a5e;
}

.advanced-jump {
  border-color: var(--academic-line-strong) !important;
  background: #f7fafc !important;
  color: var(--academic-navy) !important;
}

.hero-meta {
  gap: 8px;
  margin-top: 14px;
}

.hero-meta span,
.hero-refresh-form button {
  border: 1px solid var(--academic-line);
  border-radius: 6px;
  background: #f8fafc;
  color: #41556b;
  font-size: 12px;
}

.hero-meta strong {
  color: var(--academic-navy);
}

.entry-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.entry-option {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 74px;
  padding: 12px;
  border: 1px solid #c9d9e5;
  border-radius: 8px;
  background: #fff;
  color: var(--academic-ink);
  text-align: left;
  box-shadow: 0 8px 20px rgba(13, 42, 68, .05);
}

.entry-option:hover,
.entry-option:focus-visible,
.entry-option.is-active {
  border-color: #8fc9cf;
  background: #edfafa;
  color: #004f54;
  text-decoration: none;
}

.entry-option > .svg-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 7px;
  border-radius: 8px;
  background: #e8f6fb;
  color: var(--academic-teal);
}

.entry-option strong,
.entry-option em {
  display: block;
  min-width: 0;
}

.entry-option strong {
  color: inherit;
  font-size: 13px;
  font-weight: 880;
  line-height: 1.15;
}

.entry-option em {
  margin-top: 3px;
  color: #53687e;
  font-size: 11px;
  font-style: normal;
  line-height: 1.25;
}

.hero-evidence {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.evidence-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--academic-line);
  border-radius: 8px;
  background: #f9fbfd;
}

.evidence-card-primary {
  grid-column: 1 / -1;
  background: linear-gradient(180deg, #f7fbfc, #eef7f7);
}

.evidence-card span,
.source-ledger > strong {
  display: block;
  margin-bottom: 3px;
  color: #53687e;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.evidence-card strong {
  display: block;
  color: var(--academic-navy-2);
  font-size: 28px;
  font-weight: 880;
  line-height: 1;
}

.evidence-card em {
  display: block;
  margin-top: 6px;
  color: var(--academic-muted);
  font-size: 12px;
  font-style: normal;
}

.source-ledger {
  grid-column: 1 / -1;
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid var(--academic-line);
  border-radius: 8px;
  background: #fff;
}

.source-ledger span {
  display: grid;
  grid-template-columns: minmax(86px, .75fr) minmax(80px, 1fr) auto;
  align-items: center;
  gap: 8px;
  color: var(--academic-muted);
  font-size: 12px;
}

.source-ledger b {
  overflow: hidden;
  color: var(--academic-ink);
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-ledger i {
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6edf4;
}

.source-ledger i:before {
  display: block;
  width: var(--source-share);
  height: 100%;
  border-radius: inherit;
  background: var(--academic-teal);
  content: "";
}

.source-ledger em {
  color: var(--academic-muted);
  font-style: normal;
  font-variant-numeric: tabular-nums;
}

.source-coverage-table {
  grid-template-columns: 1fr !important;
  gap: 6px;
  padding: 10px;
}

.source-coverage-table table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 11px;
  line-height: 1.25;
}

.source-coverage-table th,
.source-coverage-table td {
  overflow: hidden;
  padding: 5px 6px;
  border-top: 1px solid #dbe5ee;
  color: var(--academic-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-coverage-table thead th {
  border-top: 0;
  color: #40566d;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-align: left;
  text-transform: uppercase;
}

.source-coverage-table tbody th {
  color: var(--academic-ink);
  font-weight: 780;
  text-align: left;
}

.source-coverage-table td {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.source-coverage-table th:nth-child(1) {
  width: 42%;
}

.source-coverage-table th:nth-child(2),
.source-coverage-table th:nth-child(3) {
  width: 18%;
}

.source-coverage-table th:nth-child(4) {
  width: 22%;
}

.publication-growth-mini {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #dbe5ee;
}

.publication-growth-head,
.publication-growth-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.publication-growth-head span,
.publication-growth-foot span {
  color: #40566d;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.publication-growth-head strong {
  color: var(--academic-ink);
  font-size: 11px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.publication-growth-chart {
  display: block;
  width: 100%;
  height: 118px;
  overflow: visible;
}

.publication-growth-chart svg {
  display: block;
  width: 100%;
  height: 118px;
}

.publication-growth-chart text {
  fill: #53687e;
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0;
}

.publication-growth-axis {
  stroke: #b9c9d8;
  stroke-width: 1;
}

.publication-growth-grid {
  stroke: #e1e9f0;
  stroke-dasharray: 4 5;
  stroke-width: 1;
}

.publication-growth-bar {
  fill: rgba(11, 126, 132, .32);
}

.publication-growth-line {
  fill: none;
  stroke: #0b7e84;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.8;
}

.publication-growth-point {
  fill: #0b7e84;
  stroke: #fff;
  stroke-width: 2;
}

.publication-growth-foot span:first-child:before,
.publication-growth-foot span:last-child:before {
  display: inline-block;
  width: 14px;
  height: 7px;
  margin-right: 5px;
  border-radius: 2px;
  background: rgba(11, 126, 132, .32);
  vertical-align: 1px;
  content: "";
}

.publication-growth-foot span:last-child:before {
  height: 2px;
  border-radius: 999px;
  background: #0b7e84;
  vertical-align: 3px;
}

.publication-growth-empty {
  margin: 4px 0 0;
  color: var(--academic-muted);
  font-size: 11px;
  line-height: 1.4;
}

.metric-strip {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.metric-strip div {
  min-height: 80px;
  border: 1px solid var(--academic-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  transform: none !important;
}

.metric-strip i {
  color: var(--academic-teal);
}

.metric-strip strong {
  color: var(--academic-navy-2);
  font-size: 24px;
}

.metric-strip span {
  color: #53687e;
  font-size: 11px;
  text-transform: uppercase;
}

.app-shell {
  grid-template-columns: 292px minmax(0, 1fr) 312px;
  gap: 14px;
}

.panel,
.filters,
.latest-panel,
.paper-panel,
.right-rail .panel,
.search-context {
  border: 1px solid var(--academic-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.filters,
.right-rail {
  top: 78px;
}

.filters {
  background: #fff;
  color: var(--academic-ink);
}

.filters input[type="search"],
.filters input[type="text"],
.filters input[type="date"],
.filters select,
input[type="search"],
input[type="email"],
input[type="text"],
input[type="password"],
input[type="date"],
input[type="number"],
select {
  border-color: var(--academic-line-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--academic-ink);
}

.filters select option {
  color: var(--academic-ink);
  background: #fff;
}

.filter-command a,
.filter-command-button,
.export-links a,
.publication-exports a,
.publication-controls select,
.inline-action,
.update-check,
.timeline-controls,
.timeline-custom input,
.timeline-custom button,
.timeline-open button {
  border-radius: 6px;
  background: #f8fafc;
  color: #31455b;
  box-shadow: none;
}

.panel-title h2,
.latest-head h1,
.result-bar h1,
.timeline-head h3 {
  color: var(--academic-navy-2);
  font-size: 18px;
}

.latest-head {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--academic-line);
}

.latest-list {
  display: grid;
  grid-auto-flow: row;
  grid-auto-columns: auto;
  grid-template-columns: 1fr;
  margin-top: 12px;
  overflow: visible;
  border-radius: 8px;
  scroll-snap-type: none;
}

.latest-paper {
  height: auto;
  min-height: 122px;
  grid-template-columns: minmax(0, 1fr);
  border-right: 0;
  border-bottom: 1px solid var(--academic-line);
  background: #fff;
}

.latest-paper:last-child {
  border-bottom: 0;
}

.latest-paper h3,
.paper h3 {
  font-size: 14px;
  font-weight: 780;
  line-height: 1.35;
}

.latest-paper h3 a,
.paper h3 a {
  color: #064e56;
}

.paper {
  grid-template-columns: minmax(0, 1.45fr) 240px 176px;
  padding: 16px 18px;
  background: #fff;
}

.paper:hover,
.latest-paper:hover {
  background: #f9fbfd;
}

.abstract {
  color: #33465a;
  font-size: 13px;
}

.paper-meta {
  color: var(--academic-muted);
}

.tags {
  gap: 6px;
}

.tags span {
  border: 1px solid #d9e6ed;
  border-radius: 4px;
  background: #edf6f6;
  color: #0d5358;
  font-size: 10px;
  font-weight: 820;
  letter-spacing: 0;
  text-transform: none;
}

.tags .source-badge {
  background: #eaf0f6;
  color: var(--academic-navy);
}

.tags .soft {
  background: #f1f4f7;
  color: #435a70;
}

.tags .status-badge {
  background: #eef3f7;
  color: var(--academic-navy);
  text-transform: uppercase;
}

.tags .status-published {
  border-color: rgba(17, 117, 68, .22);
  background: #eaf7f0;
  color: #0d5c34;
}

.tags .status-preprint {
  border-color: rgba(167, 96, 0, .28);
  background: #fff5e6;
  color: #8a4e00;
}

.tags .status-clinical-trial {
  border-color: rgba(10, 111, 115, .24);
  background: #e4f4f5;
  color: #075a5e;
}

.tags .status-protocol {
  border-color: rgba(85, 75, 141, .24);
  background: #f0eef8;
  color: var(--academic-violet);
}

.tags .status-review {
  border-color: rgba(17, 117, 68, .2);
  background: #eef8f2;
  color: #12613b;
}

.analytics h3,
.admin h3 {
  color: #53687e;
  letter-spacing: .04em;
}

.timeline-controls {
  display: grid;
  gap: 8px;
  padding: 8px;
  border-radius: 8px;
}

.timeline-presets,
.timeline-custom,
.timeline-open {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.timeline-controls button.is-active {
  background: var(--academic-teal);
  color: #fff;
}

#publication-timeline,
.timeline-chart,
.mini-bars,
.digest pre {
  border-color: var(--academic-line);
  border-radius: 8px;
  background: #fff;
}

.chart-line,
.chart-point {
  stroke: var(--academic-teal);
}

.chart-bar {
  fill: rgba(10, 111, 115, .18);
  stroke: rgba(10, 111, 115, .62);
}

.alert-intro {
  gap: 5px;
}

.alert-intro strong,
.accordion > summary {
  color: var(--academic-navy-2);
}

.footer {
  border-top: 1px solid var(--academic-line);
  color: var(--academic-muted);
}

.footer img {
  width: 42px;
  height: 36px;
  border-radius: 6px;
}

@media (min-width: 1181px) {
  .filters input[type="search"],
  .filters input[type="text"],
  .filters input[type="date"],
  .filters select {
    border-color: var(--academic-line-strong);
    background: #fff;
    color: var(--academic-ink);
  }

  .filters input[type="search"]:focus,
  .filters input[type="text"]:focus,
  .filters input[type="date"]:focus,
  .filters select:focus {
    border-color: var(--academic-teal) !important;
    box-shadow: 0 0 0 3px rgba(10, 111, 115, .12) !important;
  }
}

@media (max-width: 1220px) {
  .hero-card,
  .hero-band .hero-card {
    grid-template-columns: 1fr;
  }

  .app-shell {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .right-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .topbar {
    position: static;
    min-height: 0;
  }

  .topbar nav a {
    min-height: 40px;
  }

  .topbar nav {
    justify-content: flex-start;
    padding-inline: 0;
  }

  .topbar nav a {
    flex: 0 0 auto;
  }

  .hero-card,
  .hero-band .hero-card {
    padding: 14px;
  }

  .hero-copy h1 {
    font-size: 26px;
  }

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

  .hero-search button {
    width: 100%;
  }

  .entry-options {
    grid-template-columns: 1fr;
  }

  .hero-evidence,
  .metric-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .source-ledger span {
    grid-template-columns: minmax(80px, 1fr) minmax(60px, .8fr) auto;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .right-rail {
    grid-template-columns: 1fr;
  }

  .paper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .hero-evidence,
  .metric-strip {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: 23px;
  }

  .source-ledger span {
    grid-template-columns: 1fr auto;
  }

  .source-ledger i {
    grid-column: 1 / -1;
  }
}

/* Final specificity guard against older visual-pass rules. */
html body .hero-band {
  padding-top: 18px;
  padding-bottom: 6px;
  background:
    radial-gradient(circle at 18% 0%, rgba(10, 111, 115, .13), transparent 30%),
    radial-gradient(circle at 86% 16%, rgba(85, 75, 141, .09), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,.55), rgba(244,247,250,0)) !important;
}

html body .hero-card,
html body .hero-band .hero-card {
  position: relative;
  overflow: hidden;
  max-width: 1180px;
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr);
  border-color: rgba(184, 199, 214, .72);
  background:
    linear-gradient(135deg, rgba(255,255,255,.88), rgba(255,255,255,.62)),
    rgba(255,255,255,.68);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.92),
    0 18px 44px rgba(20, 34, 52, .10);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
}

html body .hero-card::after,
html body .hero-band .hero-card::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(110deg, rgba(255,255,255,.34), rgba(255,255,255,0) 36%),
    linear-gradient(180deg, rgba(10,111,115,.045), rgba(255,255,255,0) 42%);
  content: "";
}

html body .hero-copy,
html body .hero-evidence {
  position: relative;
  z-index: 1;
}

html body .hero-copy p {
  max-width: 900px;
}

html body .hero-search {
  max-width: 860px;
}

html body .hero-evidence {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

html body .hero-evidence .evidence-card-primary {
  grid-column: auto;
}

html body .hero-evidence .source-ledger {
  grid-column: 1 / -1;
}

html body .source-ledger {
  grid-template-columns: auto repeat(3, minmax(0, 1fr));
  align-items: center;
}

html body .source-ledger > strong {
  margin: 0;
}

html body .source-ledger span {
  grid-template-columns: minmax(72px, .7fr) minmax(70px, 1fr) auto;
}

html body .filters {
  position: sticky !important;
  top: 78px !important;
  z-index: 5;
  max-height: calc(100vh - 92px);
  overflow: auto;
}

html body .app-shell {
  align-items: start;
  padding-top: 12px;
}

html body .filters,
html body .filters *,
html body .filters .panel-title h2,
html body .filters label,
html body .filters legend,
html body .filters .field span {
  color: var(--academic-ink);
}

html body .filters .filter-command a,
html body .filters .filter-command-button,
html body .filters .export-links a,
html body .filters small {
  color: #31455b;
}

html body .filters input::placeholder {
  color: #8b9bad;
}

html body .filters input[type="checkbox"],
html body .filters input[type="radio"] {
  accent-color: var(--academic-teal);
}

@media (max-width: 1220px) {
  html body .hero-evidence {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html body .source-ledger {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  html body .filters {
    position: static !important;
    max-height: none;
  }
}

@media (max-width: 560px) {
  html body .hero-evidence {
    grid-template-columns: 1fr;
  }
}

/* Layout v2: compact command-first hero with the tracker grid below it. */
html body .hero-band {
  height: auto !important;
  min-height: 0 !important;
  padding: 10px 14px 0 !important;
}

html body .hero-card,
html body .hero-band .hero-card {
  max-width: 1260px;
  padding: 16px 18px;
}

html body .hero-copy h1 {
  margin-bottom: 6px;
  font-size: 28px;
}

html body .hero-copy p {
  margin-bottom: 12px;
}

html body .hero-search {
  grid-template-columns: 20px minmax(0, 1fr) auto auto;
  max-width: 920px;
  min-height: 48px;
  padding: 6px 7px 6px 14px;
}

html body .hero-search button {
  min-height: 36px;
}

html body .hero-search .advanced-jump {
  width: auto;
}

html body .hero-evidence {
  gap: 8px;
}

html body .evidence-card {
  min-height: 86px;
  padding: 10px 12px;
}

html body .evidence-card strong {
  font-size: 24px;
}

html body .evidence-card em {
  margin-top: 4px;
}

html body .source-ledger {
  padding: 10px 12px;
}

html body .app-shell {
  padding-top: 10px;
}

html body .metric-strip {
  display: none !important;
}

html body .app-shell {
  grid-template-columns: 292px minmax(0, 1fr) 312px;
  width: min(100% - 28px, 1500px);
  max-width: 1500px;
  margin: 0 auto !important;
  padding: 10px 0 18px !important;
}

html body .filters {
  grid-column: 1;
}

html body .results {
  grid-column: 2 !important;
  grid-row: 1;
}

html body .right-rail {
  grid-column: 3 !important;
  grid-row: 1;
}

@media (max-width: 900px) {
  html body .hero-card,
  html body .hero-band .hero-card {
    padding: 14px;
  }

  html body .hero-search {
    grid-template-columns: 18px minmax(0, 1fr);
  }

  html body .hero-search button,
  html body .hero-search .advanced-jump {
    width: 100%;
  }

  html body .app-shell {
    grid-template-columns: 1fr;
    width: auto;
    padding: 10px 14px 18px !important;
  }

  html body .filters,
  html body .results,
  html body .right-rail {
    grid-column: 1 !important;
    grid-row: auto;
  }
}

/* Contrast/usability polish: single final layer for the live root PWA. */
:root {
  --academic-bg: #f3f6f9;
  --academic-panel: #ffffff;
  --academic-ink: #102033;
  --academic-muted: #3f5368;
  --academic-line: #cfdbe7;
  --academic-line-strong: #aebfd0;
  --academic-navy: #0d2a44;
  --academic-navy-2: #06182a;
  --academic-teal: #006c70;
  --academic-teal-dark: #005357;
  --academic-teal-soft: #e5f3f4;
  --academic-focus: rgba(0, 108, 112, .2);
  --shadow: 0 12px 28px rgba(13, 42, 68, .08);
  --shadow-soft: 0 6px 18px rgba(13, 42, 68, .06);
}

html body {
  background:
    linear-gradient(180deg, #ffffff 0, #f7f9fb 340px, var(--academic-bg) 100%) !important;
  color: var(--academic-ink);
  text-rendering: optimizeLegibility;
}

html body a {
  color: var(--academic-teal-dark);
  text-decoration-thickness: .08em;
  text-underline-offset: .16em;
}

html body a:hover {
  color: #003f43;
}

html body .topbar {
  min-height: 66px;
  padding-inline: clamp(14px, 2vw, 28px);
  border-bottom-color: #c8d5e2;
  background: rgba(255, 255, 255, .985);
}

html body .topbar .brand-image {
  width: clamp(212px, 21vw, 292px);
  min-height: 54px;
  align-items: center;
}

html body .topbar .brand-image img {
  width: clamp(204px, 20vw, 270px);
  max-height: 48px;
  filter: contrast(1.08) saturate(1.08);
}

html body .topbar nav {
  gap: 2px;
}

html body .topbar nav a {
  min-width: auto;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 6px;
  color: #26394f;
  font-size: 12px;
  font-weight: 820;
}

html body .topbar nav a:hover,
html body .topbar nav a:focus-visible,
html body .topbar nav a:first-child {
  background: var(--academic-teal-soft);
  color: var(--academic-teal-dark);
}

html body .top-actions a,
html body .top-actions button,
html body .install-app,
html body .push-app,
html body .admin-link {
  min-height: 36px;
  padding-inline: 11px;
  color: #24384d;
  font-weight: 820;
}

html body .hero-band {
  padding-top: 14px !important;
}

html body .hero-card,
html body .hero-band .hero-card {
  border-color: rgba(174, 191, 208, .82);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(255, 255, 255, .72)),
    rgba(255, 255, 255, .74);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .96),
    0 18px 42px rgba(13, 42, 68, .1);
  backdrop-filter: blur(20px) saturate(1.18);
  -webkit-backdrop-filter: blur(20px) saturate(1.18);
}

html body .hero-copy h1 {
  max-width: 760px;
  color: var(--academic-navy-2);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
}

html body .hero-copy p {
  max-width: 860px;
  color: #2f4358;
  font-size: 15.5px;
  line-height: 1.55;
}

html body .hero-search {
  max-width: 900px;
  min-height: 52px;
  border-color: #9fb4c7;
  box-shadow: 0 10px 24px rgba(13, 42, 68, .1);
}

html body .hero-search input {
  color: var(--academic-ink);
  font-size: 15px;
  font-weight: 560;
}

html body .hero-search input::placeholder,
html body input::placeholder {
  color: #728397;
  opacity: 1;
}

html body .hero-search button,
html body .primary,
html body button[type="submit"] {
  background: var(--academic-teal);
  color: #fff;
  font-weight: 850;
}

html body .hero-search button:hover,
html body .primary:hover,
html body button[type="submit"]:hover {
  background: var(--academic-teal-dark);
}

html body .hero-search .advanced-jump,
html body .secondary,
html body .search-context-reset {
  border-color: #aebfd0 !important;
  background: #f6f9fb !important;
  color: #17334d !important;
  font-weight: 830;
}

html body .hero-meta span,
html body .hero-refresh-form button {
  background: #f7fafc;
  color: #2f4358;
  font-weight: 760;
}

html body .evidence-card,
html body .source-ledger {
  border-color: #cbd9e5;
}

html body .evidence-card span,
html body .source-ledger > strong,
html body .metric-strip span {
  color: #40566d;
}

html body .evidence-card strong {
  color: #06182a;
}

html body .evidence-card em,
html body .source-ledger em {
  color: #495f75;
}

html body .app-shell {
  gap: 16px;
}

html body .panel,
html body .filters,
html body .latest-panel,
html body .paper-panel,
html body .right-rail .panel,
html body .search-context {
  border-color: #cbd8e5;
  box-shadow: var(--shadow-soft);
}

html body .panel-title h2,
html body .latest-head h1,
html body .result-bar h1,
html body .timeline-head h3,
html body .alert-intro strong,
html body .accordion > summary {
  color: var(--academic-navy-2);
  font-weight: 860;
}

html body .filters input[type="search"],
html body .filters input[type="text"],
html body .filters input[type="date"],
html body .filters select,
html body input[type="search"],
html body input[type="email"],
html body input[type="text"],
html body input[type="password"],
html body input[type="date"],
html body input[type="number"],
html body select {
  border-color: #aebfd0;
  color: var(--academic-ink);
  font-weight: 560;
}

html body input:focus-visible,
html body select:focus-visible,
html body button:focus-visible,
html body a:focus-visible,
html body textarea:focus-visible {
  outline: 3px solid var(--academic-focus);
  outline-offset: 2px;
}

html body .filter-command a,
html body .filter-command-button,
html body .export-links a,
html body .publication-exports a,
html body .publication-controls select,
html body .inline-action,
html body .update-check {
  border-color: #d1dce7;
  color: #24384d;
  font-weight: 780;
}

html body .search-context strong {
  color: var(--academic-navy-2);
}

html body .search-context em,
html body .latest-head p,
html body .latest-status,
html body .paper-meta,
html body .abstract {
  color: #3f5368;
}

html body .latest-paper,
html body .paper {
  border-color: #d4e0ea;
}

html body .latest-paper h3,
html body .paper h3 {
  font-size: 15px;
  line-height: 1.38;
}

html body .latest-paper h3 a,
html body .paper h3 a {
  color: #004f58;
  font-weight: 820;
}

html body .latest-paper h3 a:hover,
html body .paper h3 a:hover {
  color: #003d44;
}

html body .links a,
html body .links button,
html body .copy-citation,
html body .copy-bibtex {
  min-height: 32px;
  color: #17334d;
  font-weight: 780;
}

html body .tags span {
  border-color: #ccdce7;
  background: #eef7f7;
  color: #074e54;
  font-weight: 850;
}

html body .tags .soft {
  background: #f3f6f9;
  color: #354b61;
}

html body .tags .status-badge {
  color: #0d2a44;
}

html body .advanced-filter-modal::backdrop,
html body .alert-modal::backdrop {
  background: rgba(6, 24, 42, .5);
}

html body .advanced-filter-sheet,
html body .alert-sheet {
  color: var(--academic-ink);
}

@media (max-width: 1180px) {
  html body .topbar {
    gap: 10px;
  }

  html body .topbar nav {
    order: 3;
    width: 100%;
  }
}

@media (max-width: 900px) {
  html body .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 10px 14px;
  }

  html body .topbar .brand-image {
    grid-column: 1;
    grid-row: 1;
    width: min(230px, 68vw);
  }

  html body .topbar .brand-image img {
    width: min(224px, 66vw);
  }

  html body .topbar nav {
    grid-column: 1 / -1;
    grid-row: 2;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  html body .top-actions {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    justify-self: end;
  }

  html body .topbar nav a {
    min-height: 38px;
    padding-inline: 10px;
  }

  html body .hero-copy h1 {
    font-size: 28px;
  }

  html body .hero-card,
  html body .hero-band .hero-card {
    padding: 16px;
  }
}

@media (max-width: 560px) {
  html body .hero-band {
    padding-inline: 10px !important;
  }

  html body .hero-copy h1 {
    font-size: 25px;
    line-height: 1.12;
  }

  html body .hero-copy p {
    font-size: 14.5px;
  }

  html body .hero-search {
    min-height: 0;
    gap: 8px;
    padding: 10px;
  }

  html body .hero-search input {
    min-height: 42px;
  }

  html body .hero-search button,
  html body .hero-search .advanced-jump {
    min-height: 40px;
  }
}

/* Sidebar shell: desktop app layout with stable navigation and cleaner working area. */
:root {
  --sidebar-width: 316px;
  --workspace-gutter: 20px;
}

html body .topbar nav a i,
html body .top-actions i {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

html body .sidebar-status {
  display: none;
}

html body .nav-sidebar-toggle {
  display: none;
}

@media (min-width: 1181px) {
  html body {
    padding-left: var(--sidebar-width);
  }

  html body .topbar {
    position: fixed !important;
    inset: 0 auto 0 0;
    z-index: 30;
    display: flex;
    width: var(--sidebar-width);
    height: 100vh;
    min-height: 100vh;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 20px 16px;
    border-right: 1px solid #cbd8e5;
    border-bottom: 0;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .99), rgba(247, 250, 252, .97));
    box-shadow: 12px 0 30px rgba(13, 42, 68, .07);
    overflow-y: auto;
  }

  html body .primary-sidebar-content {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }

  html body .nav-sidebar-toggle {
    position: sticky;
    top: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    min-height: 34px;
    margin-left: auto;
    margin-bottom: -2px;
    padding: 0;
    border: 1px solid #c8d7e3;
    border-radius: 7px;
    background: #fff;
    color: #26394f;
    box-shadow: 0 6px 14px rgba(13, 42, 68, .06);
  }

  html body .nav-sidebar-toggle:hover,
  html body .nav-sidebar-toggle:focus-visible {
    border-color: #9fcfd2;
    background: #e8f5f5;
    color: #004f54;
  }

  html body .topbar .brand-image {
    width: 100%;
    min-height: 0;
    padding-bottom: 14px;
    border-bottom: 1px solid #d7e1eb;
  }

  html body .topbar .brand-image img {
    width: 100%;
    max-width: 232px;
    max-height: none;
  }

  html body .topbar nav {
    display: flex;
    width: 100%;
    flex: 0 0 auto;
    flex-direction: column;
    align-self: stretch;
    gap: 6px;
    padding: 2px 0;
  }

  html body .topbar nav a {
    display: flex;
    min-height: 42px;
    justify-content: flex-start;
    gap: 10px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-bottom-width: 1px;
    border-radius: 7px;
    color: #26394f;
    font-size: 13px;
    line-height: 1;
    text-decoration: none;
  }

  html body .topbar nav a:first-child,
  html body .topbar nav a:hover,
  html body .topbar nav a:focus-visible {
    border-color: #b8d9dc;
    background: #e8f5f5;
    color: #004f54;
  }

  html body .topbar nav a i {
    color: currentColor;
  }

  html body .sidebar-status {
    display: grid;
    gap: 5px;
    margin-top: 2px;
    padding: 12px;
    border: 1px solid #cbd8e5;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(13, 42, 68, .05);
  }

  html body .sidebar-status span {
    color: #40566d;
    font-size: 11px;
    font-weight: 860;
    line-height: 1;
    text-transform: uppercase;
  }

  html body .sidebar-status strong {
    color: var(--academic-navy-2);
    font-size: 30px;
    font-weight: 880;
    line-height: 1;
  }

  html body .sidebar-status em {
    color: #53687e;
    font-size: 12px;
    font-style: normal;
    line-height: 1.35;
  }

  html body .top-actions {
    display: grid;
    width: 100%;
    gap: 8px;
    margin-top: auto;
    justify-self: stretch;
  }

  html body .top-actions a,
  html body .top-actions button,
  html body .install-app,
  html body .push-app,
  html body .admin-link {
    display: flex;
    width: 100%;
    min-height: 40px;
    justify-content: flex-start;
    gap: 10px;
    padding-inline: 12px;
    border-radius: 7px;
    text-decoration: none;
  }

  html body .hero-band,
  html body .metric-strip,
  html body .app-shell,
  html body .footer {
    width: min(calc(100vw - var(--sidebar-width) - (var(--workspace-gutter) * 2)), 1500px) !important;
    max-width: 1500px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  html body .hero-band {
    padding-top: 18px !important;
  }

  html body .hero-card,
  html body .hero-band .hero-card {
    max-width: none;
  }

  html body .app-shell {
    grid-template-columns: minmax(260px, 292px) minmax(0, 1fr);
    gap: 16px;
    padding-bottom: 22px !important;
  }

  html body .filters {
    top: 18px !important;
    max-height: calc(100vh - 36px);
  }

  html body .results {
    grid-column: 2 !important;
  }

  html body .right-rail {
    position: static;
    top: auto;
    grid-column: 1 / -1 !important;
    grid-row: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  html body .publication-toolbar {
    align-items: center;
    gap: 12px;
  }

  html body .publication-exports {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  html body .publication-exports a {
    min-width: 138px;
  }

  html body .publication-controls {
    margin-left: auto;
  }
}

@media (min-width: 1181px) and (max-width: 1360px) {
  html body {
    --sidebar-width: 286px;
    --workspace-gutter: 14px;
  }

  html body .topbar {
    padding-inline: 14px;
  }

  html body .topbar .brand-text strong {
    font-size: 16px;
  }

  html body .right-rail {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1181px) {
  html.nav-sidebar-collapsed body {
    --sidebar-width: 78px;
  }

  html.nav-sidebar-collapsed body .topbar {
    gap: 12px;
    padding: 14px 10px;
  }

  html.nav-sidebar-collapsed body .primary-sidebar-content {
    gap: 14px;
    align-items: center;
  }

  html.nav-sidebar-collapsed body .nav-sidebar-toggle {
    margin-inline: auto;
  }

  html.nav-sidebar-collapsed body .nav-sidebar-toggle .svg-icon {
    transform: rotate(180deg);
  }

  html.nav-sidebar-collapsed body .brand-lockup,
  html.nav-sidebar-collapsed body .brand.brand-lockup {
    justify-content: center;
    width: 100%;
    gap: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #d7e1eb;
  }

  html.nav-sidebar-collapsed body .brand-text,
  html.nav-sidebar-collapsed body .topbar nav a span,
  html.nav-sidebar-collapsed body .top-actions span,
  html.nav-sidebar-collapsed body .sidebar-status {
    display: none !important;
  }

  html.nav-sidebar-collapsed body .topbar nav {
    align-items: center;
  }

  html.nav-sidebar-collapsed body .topbar nav a,
  html.nav-sidebar-collapsed body .top-actions a,
  html.nav-sidebar-collapsed body .top-actions button,
  html.nav-sidebar-collapsed body .install-app,
  html.nav-sidebar-collapsed body .push-app,
  html.nav-sidebar-collapsed body .admin-link {
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
    justify-content: center;
    padding: 0;
  }

  html.nav-sidebar-collapsed body .topbar nav a i,
  html.nav-sidebar-collapsed body .top-actions i {
    width: 18px;
    height: 18px;
  }

  html.nav-sidebar-collapsed body .top-actions {
    align-items: center;
  }
}

@media (max-width: 1180px) {
  html body {
    padding-left: 0;
  }

  html body .topbar nav a {
    gap: 8px;
  }

  html body .topbar nav a i {
    display: none;
  }
}

/* HTML wordmark: no raster background, readable brand text in the app shell. */
html body .brand-lockup,
html body .brand.brand-lockup,
html body .brand-lockup-preloader {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--academic-navy-2);
  text-decoration: none;
}

html body .brand-symbol {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid #9cc8cb;
  border-radius: 10px;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, .95), transparent 28%),
    linear-gradient(135deg, #e8f6f6, #ffffff 64%);
  color: #005f63;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 6px 14px rgba(13, 42, 68, .07);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .02em;
}

html body .brand-icon {
  display: block;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid #9cc8cb;
  border-radius: 10px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 6px 14px rgba(13, 42, 68, .07);
  object-fit: cover;
}

html body .brand-icon-mushroom {
  background: #173c2d;
  object-position: 50% 50%;
}

html body .brand-text {
  display: grid;
  gap: 3px;
  min-width: 0;
}

html body .brand-text strong {
  display: block;
  color: #06182a;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0;
  white-space: nowrap;
}

html body .brand-text em {
  display: block;
  color: #006c70;
  font-size: 11.5px;
  font-style: normal;
  font-weight: 760;
  line-height: 1.2;
  letter-spacing: 0;
}

html body .preloader-shell > img {
  display: none !important;
}

html body .preloader-shell .brand-icon-mushroom {
  display: block !important;
}

html body .preloader-shell .brand-lockup-preloader {
  justify-content: center;
}

@media (min-width: 1181px) {
  html body .topbar .brand-lockup,
  html body .topbar .brand.brand-lockup {
    width: 100%;
    min-height: auto;
    padding: 0 0 16px;
    border: 0;
    border-bottom: 1px solid #d7e1eb;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  html body .topbar .brand-symbol,
  html body .topbar .brand-icon {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  html body .topbar .brand-text strong {
    font-size: 18px;
  }

  html body .topbar .brand-text em {
    font-size: 12px;
  }
}

@media (max-width: 1180px) {
  html body .topbar .brand-lockup,
  html body .topbar .brand.brand-lockup {
    width: auto;
    min-height: 48px;
  }
}

@media (max-width: 900px) {
  html body .topbar .brand-lockup,
  html body .topbar .brand.brand-lockup {
    grid-column: 1;
    grid-row: 1;
    width: min(250px, 68vw);
  }

  html body .topbar .brand-symbol,
  html body .topbar .brand-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border-radius: 9px;
    font-size: 12px;
  }

  html body .topbar .brand-text strong {
    font-size: 14px;
  }

  html body .topbar .brand-text em {
    font-size: 10.5px;
  }
}

@media (min-width: 1181px) and (max-width: 1360px) {
  html body .topbar .brand-lockup,
  html body .topbar .brand.brand-lockup {
    gap: 9px;
  }

  html body .topbar .brand-symbol,
  html body .topbar .brand-icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  html body .topbar .brand-text strong {
    font-size: 16px;
  }

  html body .topbar .brand-text em {
    font-size: 11px;
  }
}

@media (max-width: 900px) {
  html body .topbar .brand-text strong {
    font-size: 15px;
  }
}

/* Single-sidebar workspace: keep desktop focused on one navigation rail. */
@media (min-width: 1181px) {
  html body .hero-band,
  html body .app-shell,
  html body .footer {
    width: min(calc(100vw - var(--sidebar-width) - 36px), 1240px) !important;
  }

  html body .hero-card,
  html body .hero-band .hero-card {
    max-width: none !important;
  }

  html body .app-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px;
  }

  html body .filters {
    display: contents !important;
    position: static !important;
    max-height: none !important;
    overflow: visible !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  html body .filters > .sidebar-toggle,
  html body .filters .filters-body > :not(.advanced-filter-modal) {
    display: none !important;
  }

  html body .filters .advanced-filter-modal {
    color: var(--academic-ink);
  }

  html body .results,
  html body .right-rail {
    grid-column: 1 !important;
    width: 100%;
  }

  html body .right-rail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  html body .latest-panel,
  html body .paper-panel,
  html body .search-context {
    border-radius: 8px;
  }

  html body .publication-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  html body .publication-exports {
    display: flex;
    flex-wrap: wrap;
  }
}

@media (min-width: 1181px) and (max-width: 1360px) {
  html body .hero-band,
  html body .app-shell,
  html body .footer {
    width: min(calc(100vw - var(--sidebar-width) - 28px), 980px) !important;
  }

  html body .right-rail {
    grid-template-columns: 1fr;
  }
}

html body .publication-growth-chart .publication-growth-bar {
  fill: rgba(11, 126, 132, .22);
  stroke: rgba(11, 126, 132, .72);
  stroke-width: 1;
}

html body .publication-growth-chart .publication-growth-line,
html body .publication-growth-chart .publication-growth-point {
  stroke: #0b7e84;
}

html body .publication-growth-chart .publication-growth-point {
  fill: #0b7e84;
  stroke: #fff;
  stroke-width: 2;
}

html body .publication-growth-chart text {
  fill: #53687e;
  font-size: 10px;
  font-weight: 780;
  letter-spacing: 0;
}

html body .publication-growth-chart .publication-growth-latest {
  fill: #0b6f73;
  font-size: 10px;
  font-weight: 850;
}

html body:not(.alert-manage-page) {
  background:
    linear-gradient(90deg, rgba(247, 250, 252, .98), rgba(247, 250, 252, .94)),
    linear-gradient(180deg, #f7fafc, #eff6f7) !important;
}

html body .publication-growth-chart .publication-growth-year {
  cursor: pointer;
  outline: none;
  transition: opacity .16s ease, stroke-width .16s ease, filter .16s ease;
}

html body .publication-growth-chart .publication-growth-year:hover,
html body .publication-growth-chart .publication-growth-year:focus-visible {
  opacity: 1;
  stroke: #064f53;
  stroke-width: 2;
  filter: drop-shadow(0 2px 4px rgba(6, 50, 54, .18));
}

@media (max-width: 760px) {
  html body:not(.alert-manage-page) {
    background:
      linear-gradient(180deg, #f7fafc, #eff6f7) !important;
  }
}

html body .analytics-modal {
  width: min(980px, calc(100vw - 28px));
  max-height: min(900px, calc(100dvh - 28px));
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
}

html body .analytics-modal::backdrop {
  background: rgba(4, 22, 34, .52);
  backdrop-filter: blur(5px);
}

html body .analytics-sheet {
  max-height: min(900px, calc(100dvh - 28px));
  overflow: auto;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--academic-line-strong);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(16, 38, 58, .24);
}

html body .footer-image-band {
  position: relative;
  width: 100vw;
  height: clamp(170px, 18vw, 260px);
  margin: 0 0 0 calc(50% - 50vw);
  overflow: hidden;
  border-top: 1px solid rgba(128, 189, 198, .34);
  border-bottom: 1px solid rgba(6, 34, 55, .9);
  background:
    linear-gradient(90deg, rgba(3, 20, 34, .58), rgba(3, 20, 34, .16) 39%, rgba(3, 20, 34, .44)),
    linear-gradient(180deg, rgba(4, 27, 45, .3), rgba(3, 20, 34, .52)),
    url("footer-mushroom-bg.webp") 43% 52% / cover no-repeat;
}

@media (min-width: 1181px) {
  html body .footer-image-band {
    width: calc(100vw - var(--sidebar-width));
    margin-left: 0;
  }
}

html body .topbar nav a:first-child:not(.is-active):not(:hover):not(:focus-visible) {
  border-color: transparent;
  background: transparent;
  color: #26394f;
}

html body .topbar nav a.is-active,
html body .topbar nav a[aria-current="location"],
html body .top-actions a.is-active,
html body .top-actions a[aria-current="location"] {
  border-color: #8fc2c6;
  background: var(--academic-teal-soft);
  color: var(--academic-teal-dark);
  box-shadow: inset 3px 0 0 #0b7e84;
}

html body .hero-refresh-form button,
html body .latest-head form button {
  min-height: 36px;
  padding-block: 8px;
}
