body.deepx-scholar-runtime {
  background: #020607;
}

body.deepx-scholar-runtime #root {
  visibility: visible !important;
}

body.deepx-scholar-runtime.deepx-prepaint-shell::before,
body.deepx-scholar-runtime.deepx-prepaint-shell::after {
  display: none !important;
}

body.deepx-scholar-runtime aside {
  border-color: rgba(125, 221, 255, 0.12);
  background:
    radial-gradient(circle at 24% 8%, rgba(65, 210, 241, 0.16), transparent 13rem),
    linear-gradient(180deg, #030707 0%, #020607 100%);
  color: rgba(236, 247, 252, 0.86);
}

body.deepx-scholar-runtime aside h1,
body.deepx-scholar-runtime aside .text-ink {
  color: #ffffff;
}

body.deepx-scholar-runtime aside p,
body.deepx-scholar-runtime aside .text-slate-500,
body.deepx-scholar-runtime aside .text-slate-600 {
  color: rgba(218, 231, 238, 0.58);
}

body.deepx-scholar-runtime aside a {
  color: rgba(231, 241, 247, 0.66);
}

body.deepx-scholar-runtime aside a:hover,
body.deepx-scholar-runtime aside a[href="/scholars"] {
  border: 1px solid rgba(83, 220, 245, 0.38);
  background: rgba(10, 105, 119, 0.34);
  color: #f4fdff;
}

body.deepx-scholar-runtime header {
  background: rgba(3, 9, 13, 0.92);
  color: rgba(241, 248, 252, 0.88);
}

body.deepx-scholar-runtime main {
  max-width: none;
  padding: 0;
}

.deepx-scholar-page {
  min-height: 100vh;
  padding: 32px;
  color: #f4f8fb;
  background:
    linear-gradient(rgba(125, 221, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 221, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 72% 8%, rgba(66, 185, 255, 0.24), transparent 28rem),
    radial-gradient(circle at 26% 28%, rgba(28, 211, 217, 0.15), transparent 24rem),
    linear-gradient(135deg, #030608 0%, #071018 45%, #020304 100%);
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
}

.deepx-scholar-hero,
.deepx-scholar-controls,
.deepx-scholar-card {
  border: 1px solid rgba(174, 232, 255, 0.18);
  background: rgba(6, 16, 24, 0.78);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(14px);
}

.deepx-scholar-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  min-height: 190px;
  padding: 30px;
  border-radius: 18px;
}

.deepx-scholar-kicker {
  margin: 0;
  color: #67e8f9;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.deepx-scholar-hero h1 {
  margin: 6px 0 8px;
  color: #fff;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
  font-weight: 800;
}

.deepx-scholar-hero p:last-child {
  margin: 0;
  color: rgba(228, 241, 247, 0.72);
}

.deepx-scholar-hero-actions {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.deepx-scholar-profile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(103, 232, 249, 0.28);
  border-radius: 999px;
  background: rgba(4, 18, 28, 0.58);
  color: rgba(223, 251, 255, 0.78);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.deepx-scholar-profile-link::after {
  content: "↗";
  margin-left: 6px;
  font-size: 11px;
  opacity: 0.75;
}

.deepx-scholar-profile-link:hover {
  border-color: rgba(103, 232, 249, 0.58);
  background: rgba(5, 27, 40, 0.78);
  color: #dffbff;
  transform: translateY(-2px);
}

.deepx-scholar-stat {
  min-width: 148px;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid rgba(125, 221, 255, 0.26);
  background: rgba(4, 18, 28, 0.72);
  text-align: right;
}

.deepx-scholar-stat span,
.deepx-scholar-muted,
.deepx-card-section h4 {
  color: rgba(216, 230, 238, 0.58);
  font-size: 12px;
}

.deepx-scholar-stat strong {
  display: block;
  color: #dffbff;
  font-size: 34px;
}

.deepx-scholar-controls {
  margin-top: 18px;
  padding: 16px;
  border-radius: 16px;
}

.deepx-scholar-search {
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(144, 225, 255, 0.22);
  background: rgba(255, 255, 255, 0.045);
}

.deepx-scholar-search::before {
  content: "⌕";
  margin-right: 10px;
  color: #67e8f9;
  font-size: 23px;
  line-height: 1;
}

.deepx-scholar-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f8fbff;
  font-size: 15px;
}

.deepx-scholar-search input::placeholder {
  color: rgba(229, 240, 246, 0.42);
}

.deepx-scholar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.deepx-scholar-row button,
.deepx-scholar-expand {
  border-radius: 11px;
  border: 1px solid rgba(170, 225, 255, 0.18);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(233, 244, 250, 0.72);
  padding: 10px 14px;
  cursor: pointer;
}

.deepx-scholar-row button.active {
  color: #fff;
  border-color: rgba(80, 220, 255, 0.72);
  background: linear-gradient(135deg, rgba(8, 121, 158, 0.75), rgba(13, 75, 103, 0.62));
}

.deepx-scholar-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 24px 0 14px;
}

.deepx-scholar-heading h2 {
  margin: 0;
  color: #fff;
  font-size: 24px;
}

.deepx-scholar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 16px;
}

.deepx-scholar-card {
  display: block;
  min-height: 330px;
  padding: 18px;
  border-radius: 16px;
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.deepx-scholar-card:not([href]) {
  opacity: 0.72;
}

.deepx-scholar-card[href]:hover {
  transform: translateY(-4px);
  border-color: rgba(91, 225, 255, 0.7);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.36), 0 0 26px rgba(55, 212, 255, 0.12);
}

.deepx-scholar-tag {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #a7f3ff;
  background: rgba(36, 190, 231, 0.16);
  border: 1px solid rgba(103, 232, 249, 0.28);
  font-size: 12px;
  font-weight: 700;
}

.deepx-scholar-card h3 {
  margin: 0;
  color: #fff;
  font-size: 22px;
}

.deepx-scholar-alias {
  margin: 4px 0 0;
  color: rgba(227, 239, 246, 0.62);
}

.deepx-scholar-id {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(246, 251, 255, 0.82);
  font-size: 13px;
  word-break: break-word;
}

.deepx-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.deepx-metrics div {
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
}

.deepx-metrics strong {
  display: block;
  color: #d9fbff;
  font-size: 20px;
}

.deepx-card-section {
  margin-top: 13px;
}

.deepx-card-section h4 {
  margin: 0 0 6px;
}

.deepx-card-section p,
.deepx-card-section li {
  color: rgba(229, 240, 246, 0.72);
  font-size: 13px;
  line-height: 1.45;
}

.deepx-card-section ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.deepx-card-section em {
  display: block;
  color: rgba(103, 232, 249, 0.7);
  font-style: normal;
  font-size: 12px;
}

.deepx-scholar-actions {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.deepx-scholar-empty {
  padding: 26px;
  border-radius: 16px;
  border: 1px solid rgba(141, 224, 255, 0.16);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(229, 241, 247, 0.72);
}

@media (max-width: 760px) {
  .deepx-scholar-page {
    padding: 18px;
  }

  .deepx-scholar-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .deepx-scholar-hero-actions {
    align-items: flex-start;
    flex-direction: column-reverse;
  }

  .deepx-scholar-stat {
    text-align: left;
  }
}

.deepx-scholar-intro {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.deepx-scholar-intro div {
  min-height: 132px;
  padding: 18px;
  border: 1px solid rgba(174, 232, 255, 0.16);
  border-radius: 16px;
  background: rgba(6, 16, 24, 0.62);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.22);
}

.deepx-scholar-intro strong {
  display: block;
  margin-bottom: 8px;
  color: #a7f3ff;
  font-size: 14px;
}

.deepx-scholar-intro p {
  margin: 0;
  color: rgba(228, 241, 247, 0.72);
  font-size: 13px;
  line-height: 1.65;
}

@media (max-width: 1100px) {
  .deepx-scholar-intro {
    grid-template-columns: 1fr;
  }
}

/* ===== New Laureate Card Styles ===== */
.deepx-nl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 20px;
}

.deepx-nl-card {
  border: 1px solid rgba(174, 232, 255, 0.18);
  background: rgba(6, 16, 24, 0.78);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(14px);
  border-radius: 16px;
  padding: 22px;
  color: #f4f8fb;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.deepx-nl-card:hover {
  transform: translateY(-2px);
  border-color: rgba(91, 225, 255, 0.35);
}

.deepx-nl-header {
  margin-bottom: 16px;
}

.deepx-nl-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.deepx-nl-award-badge {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  color: #a7f3ff;
  background: rgba(36, 190, 231, 0.16);
  border: 1px solid rgba(103, 232, 249, 0.28);
  font-size: 12px;
  font-weight: 700;
}

.deepx-nl-year-badge {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.28);
  font-size: 12px;
  font-weight: 700;
}

.deepx-nl-name {
  margin: 4px 0 8px;
  color: #fff;
  font-size: 22px;
  line-height: 1.25;
}

.deepx-nl-citation {
  margin: 8px 0 4px;
  padding: 10px 14px;
  border-left: 3px solid rgba(103, 232, 249, 0.45);
  background: rgba(103, 232, 249, 0.06);
  border-radius: 0 8px 8px 0;
  color: rgba(213, 238, 248, 0.8);
  font-size: 13px;
  line-height: 1.55;
  font-style: italic;
  transition: max-height 0.3s ease;
}

/* Clamped to 2 lines (~3em) */
.deepx-nl-citation-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 3.1em;
}

.deepx-nl-citation-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 4px 0 6px 14px;
  padding: 3px 8px;
  border: none;
  border-radius: 6px;
  background: rgba(103, 232, 249, 0.08);
  color: #67e8f9;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease;
}

.deepx-nl-citation-toggle:hover {
  background: rgba(103, 232, 249, 0.18);
}

.deepx-nl-ids {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.deepx-nl-id-item {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(200, 220, 235, 0.7);
  font-size: 11px;
  word-break: break-all;
}

.deepx-nl-id-item strong {
  color: rgba(167, 243, 255, 0.85);
  margin-right: 4px;
}

/* Matched Papers */
.deepx-nl-section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(174, 232, 255, 0.1);
}

.deepx-nl-section-title {
  margin: 0 0 10px;
  color: rgba(167, 243, 255, 0.9);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.deepx-nl-count {
  font-size: 11px;
  font-weight: 400;
  color: rgba(200, 220, 235, 0.55);
}

.deepx-nl-papers-list {
  display: grid;
  gap: 10px;
}

.deepx-nl-paper-item {
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(174, 232, 255, 0.06);
}

.deepx-nl-paper-idx {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(103, 232, 249, 0.12);
  color: #67e8f9;
  font-size: 11px;
  font-weight: 700;
}

.deepx-nl-paper-body {
  flex: 1;
  min-width: 0;
}

.deepx-nl-paper-title {
  display: block;
  color: #d9fbff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.35;
  word-break: break-word;
}

a.deepx-nl-paper-title:hover {
  color: #67e8f9;
  text-decoration: underline;
}

.deepx-nl-paper-meta {
  margin-top: 3px;
  color: rgba(200, 215, 230, 0.6);
  font-size: 11px;
}

.deepx-nl-paper-desc {
  margin: 6px 0 0;
  color: rgba(210, 228, 240, 0.72);
  font-size: 12px;
  line-height: 1.5;
}

/* OpenAlex Top3 */
.deepx-nl-top10-list {
  display: grid;
  gap: 10px;
}

.deepx-nl-top10-item {
  padding: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(174, 232, 255, 0.08);
}

.deepx-nl-top10-header {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.deepx-nl-top10-rank {
  flex-shrink: 0;
  font-size: 18px;
  line-height: 1;
}

.deepx-nl-top10-main {
  flex: 1;
  min-width: 0;
}

/* Score bar */
.deepx-nl-score-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.deepx-nl-score-bar-bg {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.deepx-nl-score-bar-fg {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease;
  min-width: 2px;
}

.deepx-nl-score-total {
  flex-shrink: 0;
  color: #d9fbff;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.deepx-nl-score-detail {
  display: flex;
  gap: 12px;
  margin-top: 4px;
  color: rgba(180, 200, 215, 0.55);
  font-size: 10px;
}

/* Keywords */
.deepx-nl-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.deepx-nl-kw-tag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(103, 232, 249, 0.08);
  color: rgba(167, 243, 255, 0.65);
  font-size: 10px;
  border: 1px solid rgba(103, 232, 249, 0.12);
}

/* Abstract toggle */
.deepx-nl-abstract-wrap {
  margin-top: 8px;
}

.deepx-nl-abstract-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border: 1px solid rgba(103, 232, 249, 0.22);
  border-radius: 8px;
  background: rgba(103, 232, 249, 0.06);
  color: #67e8f9;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.deepx-nl-abstract-toggle:hover {
  background: rgba(103, 232, 249, 0.14);
  border-color: rgba(103, 232, 249, 0.45);
}

.deepx-nl-toggle-icon {
  font-size: 9px;
  transition: transform 0.18s ease;
}

.deepx-nl-abstract-content {
  margin-top: 8px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(174, 232, 255, 0.08);
  color: rgba(210, 225, 240, 0.78);
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-line;
}

/* Loading state for new laureate */
.deepx-nl-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  color: rgba(167, 243, 255, 0.7);
  font-size: 16px;
}

.deepx-nl-loading::after {
  content: "";
  width: 20px;
  height: 20px;
  margin-left: 10px;
  border: 2px solid rgba(103, 232, 249, 0.3);
  border-top-color: #67e8f9;
  border-radius: 50%;
  animation: nl-spin 0.7s linear infinite;
}

@keyframes nl-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 760px) {
  .deepx-nl-grid {
    grid-template-columns: 1fr;
  }

  .deepx-nl-card {
    padding: 16px;
  }

  .deepx-nl-name {
    font-size: 19px;
  }
}
