/* styles.tokens.css */
:root {
  --bg-body: #0d0d0f;
  --bg-panel: #141417;
  --bg-card: #1c1c1f;
  --bg-hover: #232326;
  --border-subtle: #2d2d30;
  --border-active: #4a4a4d;
  --text-main: #e0e0e0;
  --text-muted: #94949b;
  --text-dim: #6b6b70;
  --accent-primary: #4f8aff;
  --accent-glow: rgba(79, 138, 255, 0.1);
  --accent-secondary: #818cf8;
  --accent-alert: #ef4444;
  --accent-purple: #a78bfa;
  --accent-vault: #38bdf8;
  --font-mono: "JetBrains Mono", monospace;
  --font-sans:
    "Inter",
    system-ui,
    sans-serif;
  --header-height: 56px;
  --z-base: 1;
  --z-subnav: 100;
  --z-vault: 500;
  --z-header: 1000;
  --z-foodchain: 2500;
  --z-neurocluster: 2600;
  --z-fc-controls: 2650;
  --z-fc-tooltip: 2700;
  --z-overlay-tooltip: 3000;
  --z-author-backdrop: 3100;
  --z-author: 3200;
  --z-author-inline-rail: 3250;
  --z-author-backdrop-over: 3300;
  --z-author-over: 3400;
  --z-modal: 3500;
  --z-header-menu: 3600;
  --z-vault-chrome: 1000;
  --z-vault-family-tree: 1300;
  --z-vault-popover: 2400;
  --z-auth-modal: 3500;
  --z-vault-elevated: 3600;
  --z-toast: 4000;
  --z-h2h-overlay: 4000;
  --z-shortcuts-modal: 5000;
  --z-onboarding: 9000;
  --z-onboarding-content: 9001;
  --z-onboarding-tooltip: 9002;
  --z-mobile-menu: 999;
  --z-mobile-side-panel: 999;
  --z-mobile-backdrop: 998;
  --z-neuroverse-modal: 3300;
}

/* styles.core.css */
* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--border-active) var(--bg-body);
}
body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-body);
  color: var(--text-main);
  font-family: var(--font-sans);
  overflow: hidden;
  height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 14px;
}
header {
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 24px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 14px;
  background: rgba(5, 5, 5, 0.9);
  backdrop-filter: blur(12px);
  z-index: var(--z-header);
  height: var(--header-height);
}
.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.logo-link {
  text-decoration: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}
h1 {
  font-size: 0.9rem;
  margin: 0;
  letter-spacing: 0.5px;
  font-weight: 600;
  color: var(--text-main);
  transition: color 0.2s;
}
h1 span.accent {
  color: var(--accent-primary);
}
.logo-link:hover h1 {
  color: var(--accent-primary);
}
.tagline {
  font-size: 0.7rem;
  color: var(--text-dim);
  font-style: italic;
  border-left: 1px solid var(--border-subtle);
  padding-left: 16px;
  margin-left: 8px;
}
.version-badge {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  background: var(--bg-hover);
  border: 1px solid var(--border-subtle);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-muted);
  margin-left: 8px;
}
.beta-badge {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent-alert);
  margin-left: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.about-link {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 12px;
  transition: color 0.2s;
}
.about-link:hover {
  color: var(--accent-primary);
}
.controls {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-left: auto;
  flex-shrink: 0;
}
.tab-search-inputs {
  position: relative;
  display: flex;
  align-items: center;
  margin-right: 0;
  padding-right: 0;
  border-right: none;
  order: 1;
}
.tab-search-icon {
  position: absolute;
  left: 11px;
  color: var(--text-dim);
  font-size: 0.85rem;
  pointer-events: none;
}
.tab-search-bar {
  width: min(180px, 16vw);
  min-width: 150px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(11, 15, 22, 0.82);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  padding: 0 14px 0 30px;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}
.tab-search-bar::placeholder {
  color: #8b93a3;
}
.tab-search-bar:focus {
  outline: none;
  border-color: rgba(79, 138, 255, 0.75);
  box-shadow: 0 0 0 2px rgba(79, 138, 255, 0.2);
  background: rgba(13, 18, 27, 0.96);
}
.filter-btn,
.sort-btn,
.year-filter-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-mono);
  cursor: pointer;
  border-radius: 4px;
  font-size: 0.65rem;
  transition: all 0.2s;
  font-weight: 500;
}
.filter-btn:hover,
.sort-btn:hover,
.year-filter-btn:hover {
  border-color: var(--text-muted);
  color: var(--text-main);
  background: var(--bg-hover);
}
.filter-btn.active,
.sort-btn.active,
.year-filter-btn.active {
  background: var(--accent-glow);
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}
.header-menu-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  order: 2;
}
.help-wrap,
.settings-wrap {
  position: relative;
}
.search-group {
  display: flex;
  gap: 8px;
}
input.search-bar {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-family: var(--font-sans);
  padding: 6px 12px;
  font-size: 0.85rem;
  border-radius: 6px;
  transition: all 0.2s;
  width: 200px;
}
input.search-bar:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px var(--accent-glow);
}
input.search-bar.author-search {
  border-color: var(--border-subtle);
}
input.search-bar.author-search:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 2px rgba(167, 139, 250, 0.15);
}
button.filter-btn {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.7rem;
}
.neuro-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}
.neuro-toggle-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.neuro-toggle.active .neuro-toggle-label {
  color: var(--accent-primary);
}
.neuro-toggle-track {
  width: 36px;
  height: 18px;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  position: relative;
  transition: all 0.2s;
}
.neuro-toggle.active .neuro-toggle-track {
  background: var(--accent-glow);
  border-color: var(--accent-primary);
}
.neuro-toggle-thumb {
  width: 14px;
  height: 14px;
  background: var(--text-muted);
  border-radius: 50%;
  position: absolute;
  top: 1px;
  left: 1px;
  transition: all 0.2s;
}
.neuro-toggle.active .neuro-toggle-thumb {
  left: 19px;
  background: var(--accent-primary);
}
.vault-btn {
  background: rgba(14, 165, 233, 0.1) !important;
  border-color: rgba(14, 165, 233, 0.3) !important;
  color: var(--accent-vault) !important;
}
.vault-btn:hover {
  background: rgba(14, 165, 233, 0.2) !important;
  border-color: var(--accent-vault) !important;
}
.tabs {
  display: flex;
  border-bottom: none;
  background: transparent;
  user-select: none;
  padding: 0;
  position: relative;
  justify-content: flex-start;
  gap: 0;
  min-height: var(--header-height);
  z-index: 2;
}
.top-nav-tabs {
  flex: 1 1 auto;
  min-width: 0;
  align-items: center;
  overflow: hidden;
}
.top-nav-tabs .tabs-scroll-wrapper {
  display: flex;
  align-items: stretch;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.top-nav-tabs .tabs-scroll-wrapper::-webkit-scrollbar {
  height: 0;
}
.tab {
  padding: 0 14px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  height: var(--header-height);
  display: flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
}
.tab:hover {
  color: var(--text-main);
}
.tab.active {
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
}
.tab[data-target=following] {
  margin-left: auto;
}
.tab.vault-tab {
  font-weight: 600;
  color: var(--accent-vault);
}
.shortcut-hint {
  opacity: 0.3;
  font-size: 0.6rem;
  margin-left: 4px;
  font-family: var(--font-mono);
}
main {
  flex: 1;
  overflow-y: hidden;
  position: relative;
  outline: none;
  padding-bottom: 30px;
}
.feed-container {
  display: none;
  height: calc(100% - 30px);
  grid-template-columns: repeat(3, 1fr);
}
.feed-container.active {
  display: grid;
}
#browse-container.feed-container.active {
  display: flex;
  flex-direction: column;
}
#search-container {
  display: none;
  height: calc(100% - 30px);
  overflow-y: auto;
  padding: 0;
  padding-bottom: 80px;
}
#search-container.active {
  display: block;
}
.search-results-stack {
  max-width: 1480px;
  margin: 0 auto;
  padding: 16px 20px 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.search-results-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1.05fr) minmax(340px, 1fr) minmax(170px, 0.34fr);
  gap: 14px;
  align-items: start;
}
.search-results-grid.papers-only {
  grid-template-columns: minmax(420px, 1fr) minmax(170px, 0.34fr);
}
.search-results-grid.authors-only {
  grid-template-columns: minmax(520px, 1fr);
}
.search-results-column {
  min-width: 0;
}
.search-results-column .search-results-section {
  min-height: 100%;
}
.search-results-section {
  background: rgba(15, 17, 23, 0.72);
  border: 1px solid rgba(61, 66, 78, 0.82);
  border-radius: 12px;
  overflow: hidden;
}
.search-results-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(61, 66, 78, 0.64);
  background: rgba(10, 12, 17, 0.8);
}
.search-results-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  color: #95a0b6;
  text-transform: uppercase;
}
.search-results-count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #c1c8d8;
}
.search-paper-results {
  padding: 10px;
}
.search-paper-entry + .search-paper-entry {
  margin-top: 12px;
}
.search-hit-context {
  background: rgba(12, 22, 40, 0.88);
  border: 1px solid rgba(56, 100, 170, 0.4);
  border-radius: 8px;
  color: #c7d8f7;
  font-size: 0.76rem;
  line-height: 1.35;
  margin: 0 0 8px;
  padding: 8px 10px;
}
.search-hit-source {
  color: #92b4ec;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  margin-right: 6px;
  text-transform: lowercase;
}
.search-hit-highlight {
  background: rgba(59, 130, 246, 0.28);
  color: #8cc4ff;
  border-radius: 3px;
  padding: 0 2px;
}
.search-title-highlight {
  background: rgba(59, 130, 246, 0.3);
  color: #8cc4ff;
  border-radius: 3px;
  padding: 0 2px;
}
.search-fallback-note {
  font-size: 0.75rem;
  color: #a7c4ff;
  background: rgba(59, 130, 246, 0.08);
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
  padding: 8px 12px;
}
.search-empty-state {
  color: var(--text-dim);
  font-size: 0.82rem;
  padding: 16px;
}
.search-partial-warning {
  font-size: 0.78rem;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 8px;
  padding: 9px 12px;
}
.search-filter-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.search-filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.search-filter-actions {
  display: flex;
  gap: 8px;
}
.search-filter-actions .filter-btn {
  flex: 1 1 auto;
}
.search-filter-group-title {
  color: #b0bbcf;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.search-filter-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 210px;
  overflow-y: auto;
  padding-right: 4px;
}
.search-filter-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  font-size: 0.76rem;
  color: var(--text-muted);
  cursor: pointer;
}
.search-filter-option input[type=checkbox] {
  margin-top: 1px;
}
.search-filter-option-label {
  color: #d1d8e6;
  line-height: 1.25;
}
.search-filter-option-meta {
  font-size: 0.68rem;
  color: #8f9ab2;
}
.search-filter-option-count {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #8f9ab2;
  white-space: nowrap;
}
.search-filter-empty {
  font-size: 0.75rem;
  color: var(--text-dim);
}
.search-time-mode-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.search-time-pill {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  border-radius: 999px;
  padding: 4px 9px;
  cursor: pointer;
  transition:
    border-color 0.2s,
    color 0.2s,
    background 0.2s;
}
.search-time-pill:hover {
  border-color: var(--text-muted);
  color: var(--text-main);
}
.search-time-pill.active {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: var(--accent-glow);
}
.search-custom-time {
  display: none;
  grid-template-columns: minmax(90px, auto) minmax(80px, 1fr) auto;
  gap: 6px;
}
.search-custom-time.active {
  display: grid;
}
.search-custom-time select,
.search-custom-time input {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  border-radius: 6px;
  padding: 6px 8px;
}
.search-custom-time select:focus,
.search-custom-time input:focus {
  outline: none;
  border-color: rgba(79, 138, 255, 0.75);
  box-shadow: 0 0 0 2px rgba(79, 138, 255, 0.14);
}
.search-custom-time button {
  border-radius: 6px;
}
@media (max-width: 1220px) {
  .search-results-grid {
    grid-template-columns: minmax(300px, 1.02fr) minmax(280px, 0.95fr) minmax(150px, 0.34fr);
  }
  .search-results-grid.papers-only {
    grid-template-columns: minmax(300px, 1fr) minmax(150px, 0.34fr);
  }
  .search-results-grid.authors-only {
    grid-template-columns: minmax(300px, 1fr);
  }
}
#home-container {
  display: none;
  height: 100%;
  overflow-y: auto;
  background:
    linear-gradient(
      180deg,
      var(--bg-body) 0%,
      #080810 100%);
  padding-bottom: 60px;
}
#home-container.active {
  display: block;
}
#home-container::-webkit-scrollbar {
  width: 8px;
}
#home-container::-webkit-scrollbar-track {
  background: var(--bg-body);
}
#home-container::-webkit-scrollbar-thumb {
  background: var(--border-active);
  border-radius: 4px;
}
.home-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 40px;
}
.home-hero {
  text-align: center;
  margin-bottom: 24px;
}
.hero-logo {
  font-size: 2.8rem;
  font-weight: 700;
  margin: 0 0 12px 0;
  letter-spacing: 2px;
  background:
    linear-gradient(
      135deg,
      var(--text-main) 0%,
      var(--accent-primary) 50%,
      var(--accent-vault) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-logo .accent {
  color: var(--accent-primary);
}
.hero-logo-img {
  max-width: 500px;
  width: 100%;
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 30px rgba(14, 165, 233, 0.4));
}
.hero-tagline {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0;
  font-weight: 300;
  letter-spacing: 0.5px;
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto;
}
.home-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 30px;
  align-items: start;
}
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 20px 24px;
  position: relative;
  transition: all 0.3s;
  overflow: hidden;
}
.step-card:nth-child(1) {
  grid-column: 1;
}
.step-card:nth-child(2) {
  grid-column: 2;
  margin-top: 30px;
}
.step-card:nth-child(3) {
  grid-column: 3;
  margin-top: 60px;
}
.step-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(59, 130, 246, 0.1);
}
.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--accent-glow);
  border: 2px solid var(--accent-primary);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--accent-primary);
  font-weight: 700;
  flex-shrink: 0;
  margin-bottom: 16px;
}
.step-card h3 {
  font-size: 1.1rem;
  margin: 0 0 12px 0;
  color: var(--text-main);
  font-weight: 600;
}
.step-card p {
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  font-size: 0.9rem;
}
.home-features-section {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--border-subtle);
}
.home-features-section h2 {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
  margin: 0 0 20px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.feature-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 20px;
  transition: all 0.2s;
}
.feature-card:hover {
  border-color: var(--accent-primary);
}
.feature-card-icon {
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.feature-card-title {
  font-size: 0.9rem;
  color: var(--text-main);
  font-weight: 500;
  margin-bottom: 8px;
}
.feature-card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.step-shortcuts {
  display: none;
}
.shortcut-tag {
  display: none;
}
.vault-highlight {
  background: rgba(14, 165, 233, 0.15);
  color: var(--accent-vault);
  border-color: rgba(14, 165, 233, 0.3);
}
.home-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.feature-chip {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}
.feature-chip .icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.feature-chip .label {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.home-trending-section {
  margin: 40px 0;
  padding: 30px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.trending-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 24px;
}
.trending-header h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 0;
  background:
    linear-gradient(
      135deg,
      #ff6b35,
      #f7c735);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.trending-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.trending-papers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.trending-loader {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
}
.trending-loader-text {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}
.trending-paper-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.trending-paper-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background:
    linear-gradient(
      90deg,
      #ff6b35,
      #f7c735,
      #ff6b35);
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity 0.3s;
}
.trending-paper-card:hover {
  border-color: var(--border-active);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(255, 107, 53, 0.15);
}
.trending-paper-card:hover::before {
  opacity: 1;
  animation: gradientSlide 2s linear infinite;
}
@keyframes gradientSlide {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}
.trending-rank {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-dim);
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 4px 8px;
}
.trending-paper-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.5;
  margin-bottom: 12px;
  padding-right: 50px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.trending-paper-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.trending-paper-authors {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.trending-citations {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background:
    linear-gradient(
      135deg,
      rgba(255, 107, 53, 0.15),
      rgba(247, 199, 53, 0.15));
  border: 1px solid rgba(255, 107, 53, 0.3);
  border-radius: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: #ff8c5a;
}
.trending-journal {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-primary);
}
.trending-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.trending-view-more {
  grid-column: 1 / -1;
  text-align: center;
  padding-top: 20px;
}
.trending-view-more button {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 10px 24px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.trending-view-more button:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: var(--accent-glow);
}
#following-container {
  display: none;
  height: calc(100% - 30px);
  overflow-y: auto;
  overflow-x: hidden;
}
#following-container.active {
  display: block;
}
#following-container::-webkit-scrollbar {
  height: 8px;
}
#following-container::-webkit-scrollbar-track {
  background: var(--bg-body);
}
#following-container::-webkit-scrollbar-thumb {
  background: var(--border-active);
  border-radius: 4px;
}
.following-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  color: var(--text-muted);
  text-align: center;
  padding: 40px;
}
.following-empty h3 {
  margin: 0 0 12px 0;
  color: var(--text-main);
}
.following-empty p {
  margin: 0 0 24px 0;
  max-width: 400px;
  line-height: 1.6;
}
.author-column {
  min-width: 350px;
  max-width: 450px;
  flex-shrink: 0;
}
.author-column-header {
  position: relative;
}
.author-column-header .unfollow-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 1rem;
  transition: color 0.2s;
  margin-left: auto;
}
.author-column-header .unfollow-btn:hover {
  color: var(--accent-alert);
}
.author-column-papers {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}
.mutual-citations-header {
  margin: 16px 0 8px 0;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.mutual-citations-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mutual-citations-loading {
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 6px 0;
}
.mutual-citation-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  padding: 10px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: var(--bg-panel);
}
.mutual-pair {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}
.mutual-initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  font-weight: 700;
  color: #0b0b0b;
}
.mutual-main {
  background: #552583;
  color: #f8f1ff;
}
.mutual-other {
  background: #FDB927;
  color: #111;
}
.mutual-arrow {
  color: var(--text-muted);
}
.mutual-count {
  margin-left: auto;
  color: var(--text-dim);
}
.mutual-name {
  grid-column: 1 / -1;
  font-size: 0.7rem;
  color: var(--text-muted);
}
.following-layout {
  display: flex;
  gap: 18px;
  width: 100%;
  padding: 12px 16px;
  box-sizing: border-box;
}
.following-main {
  flex: 1;
  min-width: 0;
}
.following-main .feed-column {
  width: 100%;
  max-width: 860px;
  margin: 0;
  border-right: none;
}
.following-sidebar {
  width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.following-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px;
}
.following-panel-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.following-author-list,
.following-suggested-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
}
.following-author-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: var(--bg-body);
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s,
    transform 0.2s;
}
.following-author-card:hover {
  background: var(--bg-hover);
  border-color: var(--border-active);
  transform: translateY(-1px);
}
.following-author-name {
  font-size: 0.8rem;
  color: var(--text-main);
}
.following-author-inst {
  font-size: 0.65rem;
  color: var(--text-muted);
}
.following-author-meta {
  margin-left: auto;
  font-size: 0.65rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}
.suggested-follow-btn {
  margin-left: auto;
  font-size: 0.6rem;
  padding: 4px 8px;
}
.feed-column {
  border-right: 1px solid var(--border-subtle);
  overflow-y: auto;
  height: 100%;
  padding: 0;
  scroll-behavior: auto;
  position: relative;
  padding-bottom: 80px;
}
.feed-header {
  position: sticky;
  top: 0;
  background: rgba(5, 5, 5, 0.95);
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(4px);
  z-index: 10;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.biorxiv-new-papers-notice {
  display: none;
  position: sticky;
  top: 8px;
  z-index: 14;
  margin: 8px 12px 2px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 105, 117, 0.7);
  border-radius: 8px;
  background: rgba(132, 18, 30, 0.92);
  color: #ffe9ed;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}
.biorxiv-new-papers-notice.active {
  display: block;
}
.biorxiv-new-papers-notice:hover {
  border-color: rgba(255, 144, 152, 0.9);
  background: rgba(162, 24, 38, 0.95);
}
.feed-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px 20px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-align: center;
}
.feed-error-text {
  opacity: 0.7;
}
.feed-error-retry {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 5px 14px;
  cursor: pointer;
  border-radius: 4px;
  transition: border-color 0.15s, color 0.15s;
}
.feed-error-retry:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.paper-card {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-card);
  transition: background 0.1s;
  position: relative;
  border-left: 3px solid transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.paper-card:hover {
  background: var(--bg-hover);
}
.paper-card.card-expanded {
  background: #131313;
  border-left-color: var(--accent-primary);
}
.paper-card.in-vault {
  background: rgba(14, 165, 233, 0.05);
}
.pc-title {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-main);
  transition: color 0.2s;
  display: inline;
}
.paper-card:hover .pc-title {
  color: #fff;
}
.paper-card.card-expanded .pc-title {
  color: var(--accent-primary);
}
.pc-authors {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  margin-top: 4px;
  display: block;
}
.pc-meta-inline {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-left: 8px;
  white-space: nowrap;
}
.pc-year {
  font-weight: 600;
  color: var(--text-muted);
}
.pc-journal {
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-dim);
}
.pc-cites-wrapper {
  color: var(--text-dim);
}
.pc-cites {
  color: var(--accent-primary);
  background: rgba(59, 130, 246, 0.1);
  padding: 0 4px;
  border-radius: 4px;
}
.pc-meta-badges {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  vertical-align: middle;
}
.pc-meta-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.45px;
  line-height: 1.35;
  text-transform: uppercase;
}
.pc-meta-badge--new {
  color: #49d18b;
  border-color: rgba(73, 209, 139, 0.45);
  background: rgba(73, 209, 139, 0.12);
}
.pc-meta-badge--updated {
  color: #f2b96a;
  border-color: rgba(242, 185, 106, 0.45);
  background: rgba(242, 185, 106, 0.12);
}
.pc-meta-badge--version {
  color: var(--text-muted);
  border-color: rgba(180, 180, 180, 0.35);
  background: rgba(120, 120, 120, 0.12);
  text-transform: none;
}
.paper-card--compact {
  padding: 10px 12px;
  border-radius: 4px;
  margin: 2px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.paper-card--compact:last-child {
  border-bottom: none;
}
.paper-card--compact .pc-title {
  font-size: 0.85rem;
}
.paper-card--minimal {
  padding: 10px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  margin-bottom: 8px;
}
.pc-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}
.pc-expand-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 0.7rem;
  transition: all 0.2s;
  border-radius: 4px;
}
.pc-expand-btn:hover {
  background: var(--bg-hover);
  color: var(--text-main);
}
.paper-card.card-expanded .pc-expand-btn {
  transform: rotate(180deg);
  color: var(--accent-primary);
}
.pc-vault-btn {
  min-width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 1rem;
  transition: all 0.2s;
}
.pc-vault-btn:hover {
  border-color: var(--accent-vault);
  color: var(--accent-vault);
  background: rgba(14, 165, 233, 0.1);
}
.pc-vault-btn.active {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--accent-secondary);
  color: var(--accent-secondary);
}
.pc-details {
  display: none;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  animation: fadeIn 0.2s ease;
}
.paper-card.expanded .pc-details {
  display: block;
}
.paper-card.h2h-a {
  border-left: 4px solid #FDB927 !important;
  background: rgba(253, 185, 39, 0.05);
}
.paper-card.h2h-b {
  border-left: 4px solid #a06bd4 !important;
  background: rgba(85, 37, 131, 0.1);
}
.article {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.1s;
  position: relative;
  border-left: 3px solid transparent;
}
.article:hover {
  background: var(--bg-hover);
}
.article.expanded {
  background: #131313;
  border-left: 3px solid var(--accent-primary);
}
.article.keyboard-focused {
  border-left: 3px solid var(--accent-purple);
  background: var(--bg-hover);
}
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
}
.meta-journal {
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
}
.title {
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--text-main);
  cursor: pointer;
  font-weight: 500;
  margin-bottom: 6px;
}
.article:hover .title {
  color: #fff;
}
.article.expanded .title {
  color: var(--accent-primary);
}
.authors {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
  flex: 1;
}
.authors-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}
.paper-date-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  flex-shrink: 0;
}
.paper-date {
  color: var(--text-muted);
  font-weight: 600;
}
.paper-cites {
  color: var(--accent-primary);
}
.author-link {
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.2s;
  text-decoration: none;
  border-bottom: 1px dotted transparent;
}
.author-link:hover {
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
}
.abstract-container {
  display: none;
  margin-top: 16px;
  animation: fadeIn 0.3s ease;
}
.article.expanded .abstract-container {
  display: block;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.concept-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.concept-chip {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  padding: 3px 8px;
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent-purple);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.vault-rec-add {
  margin-left: auto;
  font-size: 0.65rem;
  padding: 2px 8px;
  background: rgba(14, 165, 233, 0.1);
  color: var(--accent-vault);
  border: 1px solid rgba(14, 165, 233, 0.4);
  border-radius: 4px;
  cursor: pointer;
}
.vault-rec-add:hover {
  background: rgba(14, 165, 233, 0.22);
  border-color: rgba(14, 165, 233, 0.9);
}
.concept-chip:hover {
  background: rgba(139, 92, 246, 0.2);
}
.abstract-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #ccc;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.abstract-text.full {
  -webkit-line-clamp: unset;
  display: block;
}
.abstract-wrapper {
  padding: 16px;
  background: var(--bg-panel);
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  margin-bottom: 16px;
  text-align: left;
}
.btn-read-more {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.7rem;
  color: var(--accent-primary);
  cursor: pointer;
  font-weight: 600;
}
.actions {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.btn-action {
  flex: 1;
  padding: 8px 12px;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  background: var(--bg-body);
  color: var(--text-muted);
  text-align: center;
  border-radius: 6px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
}
.btn-action:hover {
  background: var(--bg-hover);
  color: var(--text-main);
}
.btn-action.active {
  background: var(--accent-glow);
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}
.btn-pdf {
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--accent-alert);
}
.btn-pdf:hover {
  background: rgba(239, 68, 68, 0.1);
}
.btn-action.flash-vault-hint {
  animation: flashVaultHint 1.5s ease-in-out infinite;
  position: relative;
}
@keyframes flashVaultHint {
  0%, 100% {
    border-color: var(--border-subtle);
    box-shadow: none;
  }
  50% {
    border-color: var(--accent-vault);
    box-shadow: 0 0 8px rgba(14, 165, 233, 0.4);
  }
}
.vault-hint-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--accent-vault);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.7rem;
  color: var(--accent-vault);
  white-space: nowrap;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  animation: tooltipFadeIn 0.3s ease;
}
.vault-hint-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--accent-vault);
}
@keyframes tooltipFadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
.btn-open-link {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.btn-open-link:hover {
  text-decoration: underline;
}
.btn-open-vault {
  background: rgba(14, 165, 233, 0.15) !important;
  border-color: rgba(14, 165, 233, 0.4) !important;
  color: var(--accent-vault) !important;
}
.btn-open-vault:hover {
  background: rgba(14, 165, 233, 0.25) !important;
  border-color: var(--accent-vault) !important;
}
.network-panel {
  display: none;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  margin-bottom: 12px;
  padding: 4px;
}
.network-panel.active {
  display: block;
}
.network-sort-bar {
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-body);
}
.sort-btn {
  padding: 4px 10px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.sort-arrow {
  font-size: 0.7rem;
}
.network-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 250px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.network-list.expanded-view {
  max-height: 480px;
}
.feed-column,
#search-container,
.author-content {
  scroll-padding-top: 60px;
}
.pc-actions-panel {
  display: none !important;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
  opacity: 1;
  max-height: 200px;
  transition:
    opacity 0.5s ease,
    max-height 0.5s ease,
    margin-top 0.5s ease;
}
.paper-card .pc-actions-panel {
  gap: 6px;
  margin-top: 10px;
}
.paper-card .pc-actions-panel .btn-action {
  flex: 0 1 auto;
  min-height: 30px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(8, 10, 14, 0.56);
  color: #9ca3af;
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}
.paper-card .pc-actions-panel .btn-action:hover {
  border-color: rgba(148, 163, 184, 0.5);
  background: rgba(30, 41, 59, 0.42);
  color: #e2e8f0;
  transform: translateY(-1px);
}
.paper-card .pc-actions-panel .btn-action.active {
  border-color: rgba(79, 138, 255, 0.7);
  background: rgba(79, 138, 255, 0.16);
  color: #dbeafe;
  box-shadow: inset 0 0 0 1px rgba(79, 138, 255, 0.22);
}
.paper-card .pc-actions-panel .btn-vault-action {
  border-color: rgba(56, 189, 248, 0.35);
  color: #7dd3fc;
}
.paper-card .pc-actions-panel .btn-vault-action:hover {
  border-color: rgba(56, 189, 248, 0.58);
  background: rgba(56, 189, 248, 0.14);
  color: #e0f2fe;
}
.paper-card .pc-actions-panel .btn-vault-action.in-vault {
  border-color: rgba(16, 185, 129, 0.5);
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
}
.paper-card .pc-actions-panel .btn-action:focus-visible {
  outline: none;
  border-color: rgba(125, 211, 252, 0.78);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.16);
}
.paper-card.card-expanded > .pc-actions-panel {
  display: flex !important;
}
.paper-card.hide-actions > .pc-actions-panel {
  display: flex !important;
  opacity: 0;
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  pointer-events: none;
}
.pc-abstract-content {
  display: none;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  animation: fadeIn 0.2s ease;
}
.paper-card.show-abstract .pc-abstract-content {
  display: block;
}
.network-item {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 3px;
  cursor: pointer;
  transition: all 0.15s;
  border-radius: 4px;
  margin: 2px;
  position: relative;
}
.network-item:hover {
  background: var(--bg-hover);
}
.network-item-title {
  font-weight: 500;
  color: var(--text-main);
}
.network-item:hover .network-item-title {
  color: var(--accent-primary);
}
.network-item-meta {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.network-item.in-vault {
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.3);
  order: -1;
}
.network-item.in-vault .network-item-title {
  color: var(--accent-vault);
}
.in-vault-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.6rem;
  font-family: var(--font-mono);
  background: rgba(14, 165, 233, 0.2);
  color: var(--accent-vault);
  padding: 2px 6px;
  border-radius: 3px;
}
.network-item.versus-highlight {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.4);
  order: -2;
}
.network-item.versus-highlight .network-item-title {
  color: var(--accent-purple);
  font-weight: 600;
}
.versus-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.6rem;
  font-family: var(--font-mono);
  background: rgba(139, 92, 246, 0.3);
  color: var(--accent-purple);
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 700;
}
.network-item.versus-highlight.in-vault .in-vault-badge {
  right: 110px;
}
.load-more-btn {
  width: 100%;
  padding: 12px;
  background: var(--bg-hover);
  border: none;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  cursor: pointer;
}
.load-more-btn:hover {
  background: #222;
  color: var(--text-main);
}

/* styles.author-overlay.css */
#author-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: var(--z-author-backdrop);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(2px);
}
#author-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}
body.author-over-neurocluster #author-backdrop {
  z-index: var(--z-author-backdrop-over);
  background: rgba(0, 0, 0, 0.35);
}
#author-overlay {
  position: fixed;
  top: calc(var(--header-height) + 6px);
  right: -1600px;
  bottom: 44px;
  width: min(92vw, 1440px);
  max-width: calc(100vw - 24px);
  background: rgba(10, 13, 19, 0.97);
  border: 1px solid rgba(79, 138, 255, 0.34);
  border-radius: 14px;
  z-index: var(--z-author);
  transition:
    right 0.34s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.34s cubic-bezier(0.2, 0.88, 0.24, 1),
    opacity 0.24s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -18px 0 48px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
#author-overlay.open {
  right: 12px;
  opacity: 1;
  pointer-events: auto;
}
body.author-over-neurocluster #author-overlay {
  z-index: var(--z-author-over);
}
#author-inline-rail {
  position: fixed;
  top: calc(var(--header-height) + 14px);
  left: 10px;
  z-index: var(--z-author-inline-rail);
  display: none !important;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
#author-inline-rail.active {
  display: none !important;
}
.author-inline-pill {
  padding: 6px 10px;
  border-radius: 9px;
  border: 1px solid rgba(86, 104, 138, 0.68);
  background: rgba(10, 14, 24, 0.9);
  color: #c8d8f4;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 10px 20px rgba(2, 8, 18, 0.4);
}
body.author-inline-mode #author-backdrop {
  opacity: 0 !important;
  pointer-events: none !important;
  backdrop-filter: none;
}
body.author-inline-mode #author-overlay {
  top: calc(var(--header-height) + 8px);
  right: 0;
  left: 0;
  bottom: 44px;
  width: auto;
  max-width: none;
  border: 1px solid rgba(79, 138, 255, 0.46);
  border-radius: 0;
  transform: translateX(30px);
}
body.author-inline-mode #author-overlay.open {
  right: 0;
  left: 0;
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
#search-container .search-results-stack,
#browse-container .browse-layout {
  transition:
    transform 0.34s cubic-bezier(0.2, 0.88, 0.24, 1),
    opacity 0.24s ease,
    filter 0.24s ease;
}
body.author-inline-search #search-container.active .search-results-stack {
  transform: translateX(-16vw) scale(0.94);
  opacity: 0;
  filter: blur(1px);
  pointer-events: none;
}
body.author-inline-search #search-container.active #search-loader {
  opacity: 0;
  pointer-events: none;
}
body.author-inline-browse #browse-container.active .browse-layout {
  transform: translateX(-16vw) scale(0.94);
  opacity: 0;
  filter: blur(1px);
  pointer-events: none;
}
@media (max-width: 980px) {
  body.author-inline-mode #author-overlay {
    right: 0;
    left: 0;
    width: auto;
    max-width: none;
    top: calc(var(--header-height) + 6px);
    bottom: 40px;
    border-radius: 0;
  }
  #author-inline-rail {
    display: none !important;
  }
}
.author-name {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.05;
  margin: 0;
}
.author-inst {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 6px;
}
.author-debug-strip {
  margin-top: 7px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.author-debug-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid rgba(111, 132, 172, 0.44);
  background: rgba(11, 16, 28, 0.84);
  color: #b8c7e4;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.author-debug-chip.is-loading {
  border-color: rgba(235, 195, 118, 0.48);
  color: #efd39b;
}
.author-debug-chip.is-error {
  border-color: rgba(217, 110, 117, 0.55);
  color: #f2afb4;
}
.author-debug-chip-panel {
  max-width: min(100%, 360px);
}
.author-stats {
  display: flex;
  gap: 12px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--accent-primary);
  background: rgba(24, 31, 45, 0.78);
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid rgba(120, 153, 206, 0.34);
  width: fit-content;
}
.author-title-card {
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(78, 92, 117, 0.5);
  background: rgba(8, 11, 18, 0.8);
}
.author-title-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.author-title-main {
  flex: 1 1 auto;
  min-width: 0;
}
.author-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.author-title-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.author-title-btn {
  min-height: 31px;
}
.author-title-btn-back {
  border-color: rgba(103, 188, 142, 0.72);
  color: #7bdca8;
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  text-transform: none;
  max-width: min(44vw, 300px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.author-title-btn-neuro {
  border-color: #10b981;
  color: #10b981;
}
.author-title-btn-food {
  border-color: var(--accent-purple);
  color: var(--accent-purple);
}
.author-title-btn-close {
  min-width: 36px;
  padding-inline: 8px;
}
.author-layout-grid {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.38fr) minmax(0, 1.38fr);
  gap: 12px;
  padding: 12px;
  position: relative;
}
.author-expanded-tabs {
  position: absolute;
  inset: 88px 0 12px 0;
  pointer-events: none;
  z-index: 28;
  display: none;
}
.author-expanded-tab {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: auto;
  border: 1px solid rgba(91, 135, 208, 0.78);
  background: rgba(8, 13, 22, 0.9);
  color: #cde0ff;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 10px;
  padding: 12px 8px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.24s ease;
}
.author-expanded-tab:hover {
  border-color: rgba(128, 186, 255, 0.9);
  background: rgba(14, 26, 44, 0.95);
}
.author-expanded-tab-left {
  left: 8px;
}
.author-expanded-tab-right {
  right: 8px;
  writing-mode: vertical-lr;
}
.author-panel-box {
  min-height: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(73, 84, 106, 0.82);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(14, 18, 27, 0.68);
}
.author-panel-head {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(73, 84, 106, 0.72);
  background: rgba(8, 12, 20, 0.82);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.author-panel-papers .author-panel-head {
  justify-content: flex-start;
  gap: 10px;
}
.author-panel-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.author-panel-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.author-panel-papers .author-panel-controls {
  gap: 6px;
}
.author-panel-controls .sort-btn {
  min-width: 118px;
  justify-content: space-between;
  padding: 7px 10px;
}
.author-panel-papers .author-panel-controls .sort-btn {
  min-width: 108px;
  padding: 6px 9px;
}
.author-firstlast-toggle {
  min-width: 0 !important;
  margin-left: 6px;
  padding-inline: 10px !important;
}
.author-panel-controls-compact .sort-btn {
  min-width: 96px;
  font-size: 0.65rem;
  padding: 6px 8px;
}
.author-panel-head-cta {
  margin-left: auto;
  flex: 0 0 auto;
  max-width: min(50vw, 320px);
}
.author-panel-head-cta.author-dinner-party-btn {
  min-height: 34px;
  padding: 5px 9px;
  gap: 1px;
}
.author-panel-head-cta .author-dinner-party-line1 {
  font-size: 0.65rem;
}
.author-panel-head-cta .author-dinner-party-line2 {
  font-size: 0.5rem;
}
.author-panel-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}
.author-panel-collaborators .author-panel-body,
.author-panel-mutual .author-panel-body {
  background: rgba(14, 18, 27, 0.68);
}
.author-content {
  flex: 1;
  overflow-y: auto;
  padding: 0 0 20px;
}
#author-results .paper-card {
  border-radius: 0;
  margin: 0;
}
#author-results .paper-card--compact {
  border-left: none;
  border-right: none;
  border-top: none;
  border-bottom: 1px solid var(--border-subtle);
}
#author-results .paper-card--compact:last-child {
  border-bottom: none;
}
.author-side-list {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
  background: rgba(14, 18, 27, 0.68);
}
.author-side-loading {
  padding: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
}
.author-side-item {
  border: 1px solid rgba(66, 76, 95, 0.78);
  border-radius: 8px;
  padding: 7px 9px;
  background: var(--bg-card);
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}
.author-side-item:hover {
  border-color: rgba(93, 152, 255, 0.72);
  background: var(--bg-hover);
}
.author-side-item.open {
  border-color: rgba(93, 152, 255, 0.78);
  box-shadow: inset 0 0 0 1px rgba(67, 111, 189, 0.22);
}
.author-side-item.is-active {
  border-color: rgba(117, 199, 255, 0.95);
  background: rgba(28, 43, 62, 0.7);
}
.author-side-item.is-dimmed {
  opacity: 0.46;
}
.author-side-item-top {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
}
.author-side-item-heading {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
  white-space: nowrap;
}
.author-side-item-name-link {
  font-size: 0.81rem;
  font-weight: 500;
  color: var(--text-main);
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 15rem;
}
.author-side-item-name-link:hover {
  color: var(--accent-primary);
  text-decoration-color: rgba(91, 155, 255, 0.72);
}
.author-side-item-meta-inline {
  font-size: 0.68rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  max-width: 12rem;
}
.author-side-item-caret {
  color: #8ea6c7;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  flex-shrink: 0;
}
.author-side-item-meta {
  margin-top: 1px;
  font-size: 0.62rem;
  color: var(--text-dim);
  line-height: 1.35;
}
.author-side-item-metrics {
  margin-top: 5px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.author-side-item-metrics-inline {
  margin-top: 0;
  margin-left: auto;
  margin-right: 2px;
  gap: 5px;
  flex-wrap: nowrap;
  flex-shrink: 0;
  align-items: center;
}
.author-side-item-chain-btn {
  border: 1px solid rgba(87, 150, 240, 0.55);
  border-radius: 999px;
  background: rgba(20, 34, 54, 0.78);
  color: rgba(208, 229, 255, 0.94);
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  padding: 4px 8px;
  margin-right: 2px;
  flex-shrink: 0;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}
.author-side-item-chain-btn:hover {
  border-color: rgba(148, 203, 255, 0.9);
  background: rgba(30, 57, 92, 0.88);
  color: rgba(238, 247, 255, 0.98);
}
.author-side-sticker {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid rgba(127, 147, 174, 0.62);
  background: rgba(31, 37, 48, 0.6);
  color: #d5e2f3;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-transform: lowercase;
}
.author-side-sticker.is-accent {
  color: #bfe6ff;
  border-color: rgba(93, 176, 255, 0.7);
  background: rgba(31, 76, 120, 0.42);
}
.author-side-item.is-main-author {
  background: rgba(19, 37, 54, 0.74);
}
.author-side-details {
  margin-top: 5px;
  padding-top: 7px;
  border-top: 1px solid rgba(66, 76, 95, 0.62);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.author-side-detail-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.author-side-detail-group-title {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: #97a8c4;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.author-side-detail-paper {
  border: 1px solid rgba(70, 84, 108, 0.7);
  border-radius: 7px;
  padding: 8px;
  background: rgba(11, 15, 23, 0.8);
}
.author-side-detail-title {
  font-size: 0.72rem;
  color: #e3e8f3;
  line-height: 1.35;
  margin-bottom: 3px;
}
.author-side-detail-meta {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: #a6b3c9;
  margin-bottom: 3px;
}
.author-side-detail-context {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: #95a9c6;
  background: rgba(76, 86, 115, 0.2);
  border-left: 2px solid var(--accent-purple);
  padding: 3px 6px;
  border-radius: 4px;
  margin-bottom: 4px;
}
.author-side-ref-toggle {
  text-align: left;
}
.author-side-detail-authors {
  font-size: 0.68rem;
  color: #c2ccde;
  line-height: 1.32;
}
.author-side-detail-author-main {
  color: var(--accent-primary);
}
.author-side-detail-author-peer {
  color: #ffffff;
  font-weight: 600;
}
.author-side-detail-author-ellipsis {
  color: #8ea3bf;
}
.author-side-reference-list {
  margin: 4px 0 0 0;
  padding: 6px 8px;
  border: 1px solid rgba(66, 79, 101, 0.7);
  border-radius: 6px;
  background: rgba(9, 12, 18, 0.74);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.author-side-reference-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  font-size: 0.64rem;
  line-height: 1.3;
}
.author-side-reference-index {
  color: #8fa4c3;
  font-family: var(--font-mono);
  flex-shrink: 0;
}
.author-side-reference-title {
  color: #c9d4e6;
  flex: 1;
  min-width: 0;
}
.author-side-reference-year {
  color: #8fa4c3;
  font-family: var(--font-mono);
  flex-shrink: 0;
}
.author-side-reference-empty {
  font-size: 0.64rem;
  color: #8fa0ba;
  font-style: italic;
}
.author-side-detail-empty {
  font-size: 0.68rem;
  color: #8fa0ba;
  font-style: italic;
}
.author-side-graph-layout {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.author-side-graph-head {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 7px;
}
.author-mutual-explorer-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 10px;
  align-items: center;
}
.author-mutual-explorer-focus {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(191, 216, 246, 0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.author-mutual-explorer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}
.author-mutual-nav-btn {
  min-height: 24px;
  font-size: 0.52rem;
  letter-spacing: 0.04em;
  padding: 3px 8px;
}
.author-mutual-nav-btn:disabled {
  opacity: 0.46;
  cursor: default;
}
.author-mutual-explorer-trail {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  min-height: 22px;
}
.author-mutual-breadcrumb-link,
.author-mutual-breadcrumb-current {
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.03em;
  line-height: 1;
  text-transform: uppercase;
  max-width: 18rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.author-mutual-breadcrumb-link {
  border: 1px solid rgba(121, 149, 185, 0.56);
  background: rgba(11, 19, 31, 0.7);
  color: rgba(197, 219, 246, 0.96);
  cursor: pointer;
  padding: 4px 8px;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}
.author-mutual-breadcrumb-link:hover {
  border-color: rgba(166, 211, 255, 0.88);
  background: rgba(21, 38, 61, 0.86);
  color: rgba(233, 245, 255, 0.98);
}
.author-mutual-breadcrumb-current {
  border: 1px solid rgba(111, 193, 154, 0.7);
  background: rgba(16, 50, 39, 0.75);
  color: rgba(198, 245, 224, 0.98);
  padding: 4px 9px;
}
.author-mutual-breadcrumb-sep {
  color: rgba(139, 161, 191, 0.84);
  font-family: var(--font-mono);
  font-size: 0.56rem;
}
.author-side-graph-head .author-side-graph-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}
.author-side-graph-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.author-side-graph-action-btn {
  min-height: 28px;
  padding: 4px 8px;
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.author-dinner-party-btn {
  min-height: 44px;
  text-transform: none;
  letter-spacing: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  padding: 6px 10px;
  border: 1px solid rgba(74, 222, 128, 0.65);
  background:
    linear-gradient(
      135deg,
      rgba(20, 83, 45, 0.9),
      rgba(22, 163, 74, 0.65));
  color: #e8ffe9;
  box-shadow: 0 0 0 1px rgba(20, 83, 45, 0.2), 0 8px 18px rgba(13, 61, 33, 0.25);
}
.author-dinner-party-btn:hover {
  border-color: rgba(134, 239, 172, 0.9);
  background:
    linear-gradient(
      135deg,
      rgba(21, 91, 48, 0.96),
      rgba(34, 197, 94, 0.72));
  color: #f3fff4;
}
.author-dinner-party-line1 {
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.05;
}
.author-dinner-party-line2 {
  font-size: 0.56rem;
  color: rgba(220, 252, 231, 0.95);
  line-height: 1.2;
}
.author-side-expanded-close {
  display: none;
}
.author-side-graph-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  border: 1px solid rgba(89, 105, 127, 0.78);
  border-radius: 10px;
  overflow: hidden;
  background:
    radial-gradient(
      115% 110% at 18% 18%,
      rgba(52, 102, 145, 0.25),
      rgba(10, 13, 21, 0.93)),
    linear-gradient(
      160deg,
      rgba(12, 23, 39, 0.95),
      rgba(5, 8, 13, 0.95));
}
.author-graph-fullscreen-prompt {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(120, 160, 214, 0.58);
  background: rgba(8, 14, 23, 0.86);
  color: rgba(226, 240, 255, 0.95);
  font-family: var(--font-mono);
  font-size: 0.53rem;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}
.author-side-graph-wrap:hover .author-graph-fullscreen-prompt,
.author-side-graph-wrap:focus-within .author-graph-fullscreen-prompt {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.author-graph-fullscreen-prompt:hover {
  border-color: rgba(154, 204, 255, 0.88);
  background: rgba(16, 32, 56, 0.92);
  color: rgba(238, 248, 255, 0.98);
}
.author-side-graph-layout.is-expanded .author-graph-fullscreen-prompt {
  display: none;
}
.author-side-graph-layout:not(.is-expanded) .author-side-graph-wrap {
  aspect-ratio: 0.9 / 1;
  min-height: clamp(340px, 40vh, 620px);
}
.author-panel-collaborators .author-side-graph-layout:not(.is-expanded) .author-side-graph-wrap {
  min-height: clamp(350px, 42vh, 640px);
}
.author-panel-mutual .author-side-graph-layout:not(.is-expanded) .author-side-graph-wrap {
  aspect-ratio: 0.78 / 1;
  min-height: clamp(390px, 47vh, 720px);
}
.author-side-graph-corner {
  position: absolute;
  top: 8px;
  left: 10px;
  z-index: 2;
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(199, 217, 243, 0.88);
  background: rgba(8, 14, 23, 0.58);
  border: 1px solid rgba(108, 130, 160, 0.45);
  border-radius: 999px;
  padding: 2px 6px;
}
@media (hover: none) {
  .author-side-graph-layout:not(.is-expanded) .author-graph-fullscreen-prompt {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
}
.author-rel-graph-svg {
  display: block;
  width: 100%;
  height: 100%;
}
.author-rel-graph-bg {
  fill: rgba(8, 14, 24, 0.6);
  stroke: rgba(101, 143, 187, 0.34);
  stroke-width: 1;
}
.author-rel-graph-grid {
  stroke: rgba(101, 137, 181, 0.32);
  stroke-width: 1;
  stroke-dasharray: 3 6;
}
.author-rel-graph-axis {
  stroke: rgba(172, 206, 248, 0.78);
  stroke-width: 1.8;
}
.author-rel-graph-balance-line {
  stroke: rgba(171, 203, 238, 0.36);
  stroke-width: 1.8;
  stroke-dasharray: 10 10;
}
.author-rel-graph-balance-label {
  font-family: var(--font-mono);
  font-size: 19px;
  letter-spacing: 0.02em;
  fill: rgba(188, 216, 246, 0.38);
  text-transform: lowercase;
  pointer-events: none;
}
.author-rel-graph-balance-label.is-top {
  fill: rgba(204, 232, 255, 0.42);
}
.author-rel-graph-balance-label.is-bottom {
  fill: rgba(173, 202, 233, 0.34);
}
.author-rel-graph-tick {
  font-family: var(--font-mono);
  font-size: 24px;
  fill: rgba(179, 210, 244, 0.82);
}
.author-rel-graph-axis-label {
  font-family: var(--font-mono);
  font-size: 38px;
  fill: rgba(215, 236, 255, 0.95);
  letter-spacing: 0.02em;
  text-transform: lowercase;
}
.author-rel-graph-point-hit {
  fill: transparent;
  cursor: pointer;
}
.author-rel-graph-point-hit.is-dimmed {
  opacity: 0.4;
}
.author-rel-graph-point {
  stroke: rgba(236, 247, 255, 0.96);
  stroke-width: 1.15;
  opacity: 0.34;
  transition:
    opacity 0.14s ease,
    stroke-width 0.14s ease,
    fill 0.14s ease;
  filter: drop-shadow(0 0 10px rgba(142, 227, 255, 0.42));
}
.author-rel-graph-point.is-collab {
  fill: #70d9ff;
}
.author-rel-graph-point.is-mutual {
  fill: #89e7bf;
}
.author-rel-graph-point.is-active {
  fill: #ffffff;
  opacity: 0.88;
  stroke-width: 2;
}
.author-rel-graph-point.is-dimmed {
  opacity: 0.12;
}
.author-side-rows {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-right: 2px;
}
.author-side-rows-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 4px 2px;
  color: rgba(205, 217, 233, 0.74);
  font-size: 12px;
}
.author-side-rows-count {
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.author-side-more-btn {
  flex: 0 0 auto;
}
#author-overlay.author-graph-expanded .author-layout-grid {
  grid-template-columns: minmax(0, 1fr);
  padding: 10px 52px 12px;
}
#author-overlay.author-graph-expanded .author-expanded-tabs {
  display: block;
}
#author-overlay.author-graph-expanded .author-expanded-tab-left {
  animation: authorTabSlideInLeft 0.34s cubic-bezier(0.2, 0.84, 0.28, 1) both;
}
#author-overlay.author-graph-expanded .author-expanded-tab-right {
  animation: authorTabSlideInRight 0.34s cubic-bezier(0.2, 0.84, 0.28, 1) both;
}
#author-overlay.author-graph-expanded .author-panel-papers,
#author-overlay.author-graph-expanded .author-panel-collaborators,
#author-overlay.author-graph-expanded .author-panel-mutual {
  display: none;
}
#author-overlay.author-graph-expanded.author-graph-expanded-collab .author-panel-collaborators,
#author-overlay.author-graph-expanded.author-graph-expanded-mutual .author-panel-mutual {
  display: flex;
  animation: authorExpandedPanelIn 0.34s cubic-bezier(0.2, 0.84, 0.28, 1) both;
}
#author-overlay.author-graph-expanded .author-side-graph-layout.is-expanded {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.9fr);
  grid-template-rows: auto minmax(0, 1fr);
  gap: 9px;
  height: 100%;
}
#author-overlay.author-graph-expanded .author-side-graph-layout.is-expanded .author-side-graph-head {
  grid-column: 1 / -1;
}
#author-overlay.author-graph-expanded .author-side-graph-layout.is-expanded .author-side-graph-wrap {
  grid-column: 1;
  grid-row: 2;
  aspect-ratio: auto;
  height: 100%;
  min-height: 0;
  animation: authorGraphExpandIn 0.38s cubic-bezier(0.2, 0.84, 0.28, 1) both;
}
#author-overlay.author-graph-expanded .author-side-graph-layout.is-expanded .author-side-rows {
  grid-column: 2;
  grid-row: 2;
  border: 1px solid rgba(86, 105, 131, 0.76);
  border-radius: 10px;
  background: rgba(8, 12, 20, 0.8);
  padding: 7px 7px 7px 6px;
  animation: authorRowsSlideIn 0.34s cubic-bezier(0.2, 0.84, 0.28, 1) both;
}
#author-overlay.author-graph-expanded .author-side-graph-layout.is-expanded .author-side-expanded-close {
  display: inline-flex;
}
@keyframes authorExpandedPanelIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes authorGraphExpandIn {
  from {
    opacity: 0;
    transform: translateX(-20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}
@keyframes authorRowsSlideIn {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes authorTabSlideInLeft {
  from {
    opacity: 0;
    transform: translate(-12px, -50%);
  }
  to {
    opacity: 1;
    transform: translate(0, -50%);
  }
}
@keyframes authorTabSlideInRight {
  from {
    opacity: 0;
    transform: translate(12px, -50%);
  }
  to {
    opacity: 1;
    transform: translate(0, -50%);
  }
}
@media (max-width: 1320px) {
  .author-layout-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr) minmax(0, 1.3fr);
  }
  .author-panel-head-cta {
    max-width: min(55vw, 320px);
  }
}
@media (max-width: 1100px) {
  .author-layout-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .author-panel-head-cta {
    max-width: 100%;
  }
  .author-mutual-explorer-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }
  .author-mutual-explorer-actions {
    justify-content: flex-start;
  }
  .author-mutual-breadcrumb-link,
  .author-mutual-breadcrumb-current {
    max-width: 12.5rem;
  }
  .author-side-graph-layout:not(.is-expanded) .author-side-graph-wrap {
    aspect-ratio: 1 / 1;
    min-height: clamp(260px, 42vh, 460px);
  }
  .author-panel-mutual .author-side-graph-layout:not(.is-expanded) .author-side-graph-wrap {
    min-height: clamp(300px, 46vh, 500px);
  }
  #author-overlay.author-graph-expanded .author-layout-grid {
    padding: 10px 12px 12px;
  }
  #author-overlay.author-graph-expanded .author-expanded-tabs {
    display: none;
  }
  #author-overlay.author-graph-expanded .author-panel-papers,
  #author-overlay.author-graph-expanded .author-panel-collaborators,
  #author-overlay.author-graph-expanded .author-panel-mutual {
    display: none;
  }
  #author-overlay.author-graph-expanded.author-graph-expanded-collab .author-panel-collaborators,
  #author-overlay.author-graph-expanded.author-graph-expanded-mutual .author-panel-mutual {
    display: flex;
  }
  #author-overlay.author-graph-expanded .author-side-graph-layout.is-expanded {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr);
  }
  #author-overlay.author-graph-expanded .author-side-graph-layout.is-expanded .author-side-graph-wrap {
    grid-column: 1;
    grid-row: 2;
    min-height: 300px;
  }
  #author-overlay.author-graph-expanded .author-side-graph-layout.is-expanded .author-side-rows {
    grid-column: 1;
    grid-row: 3;
    min-height: 260px;
  }
  .author-panel-collaborators,
  .author-panel-mutual {
    min-height: 520px;
    max-height: none;
  }
}
.collaborators-header {
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 5;
}
.collaborator-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: background 0.2s;
}
.collaborator-card:hover {
  background: var(--bg-hover);
}
.collaborator-rank {
  width: 28px;
  height: 28px;
  background: var(--accent-glow);
  border: 1px solid var(--accent-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-primary);
  font-weight: 600;
  flex-shrink: 0;
}
.collaborator-info {
  flex: 1;
  min-width: 0;
}
.collaborator-name {
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 4px;
}
.collaborator-card:hover .collaborator-name {
  color: var(--accent-primary);
}
.collaborator-inst {
  font-size: 0.75rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.collaborator-stats {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}
.collab-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 50px;
}
.stat-value {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-primary);
}
.stat-label {
  font-size: 0.6rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.author-result-card {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}
.author-result-card:hover {
  background: var(--bg-hover);
}
.author-work-content {
  flex: 1;
  min-width: 0;
}
.author-work-title {
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 6px;
  line-height: 1.4;
}
.author-result-card:hover .author-work-title {
  color: var(--accent-primary);
}
.author-work-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.author-work-authors {
  font-size: 0.8rem;
  color: var(--text-muted);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.author-work-journal {
  font-size: 0.65rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  text-transform: uppercase;
  margin-top: 4px;
}
.author-work-arrow {
  color: var(--accent-primary);
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* styles.author-search.css */
.author-search-results {
  max-width: none;
  margin: 0;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.author-search-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: var(--bg-card);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.author-search-row:hover {
  border-color: rgba(79, 138, 255, 0.62);
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.35);
}
.author-search-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.author-search-main {
  flex: 1;
  min-width: 0;
}
.author-search-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.author-search-name-btn {
  border: none;
  background: transparent;
  color: var(--text-main);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0;
  cursor: pointer;
  text-align: left;
}
.author-search-name-btn:hover {
  color: var(--accent-primary);
}
.author-search-stats {
  margin: 0;
  padding: 3px 7px;
  font-size: 0.62rem;
}
.author-search-inst {
  margin-top: 4px;
  line-height: 1.3;
}
.author-search-header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex-shrink: 0;
}
.author-search-papers-title {
  margin-top: 0;
  padding-top: 6px;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: #9fb2cf;
  text-transform: lowercase;
}
.author-search-highlights {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 0;
}
.author-search-paper-results {
  padding: 0;
}
.author-search-paper-results .search-paper-entry + .search-paper-entry {
  margin-top: 4px;
}
.highlights-loading,
.no-highlights {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-style: italic;
}

/* styles.vault.css */
#vault-overlay {
  --vault-right-rail-width: 392px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #050505;
  z-index: var(--z-vault);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--header-height) + 50px);
}
#vault-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
#vault-overlay.over-neurocluster {
  z-index: var(--z-vault-elevated);
}
#vault-overlay.vault-picker-active {
  z-index: var(--z-vault-elevated);
}
.vault-stripe {
  height: 4px;
  background:
    linear-gradient(
      90deg,
      var(--accent-vault),
      var(--accent-primary),
      var(--accent-vault));
  background-size: 200% 100%;
  animation: vaultStripeShimmer 2s linear infinite;
}
@keyframes vaultStripeShimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
.vault-loading-overlay {
  display: none !important;
}
.vault-door-container {
  position: relative;
  width: 400px;
  height: 250px;
  display: flex;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 0 60px rgba(14, 165, 233, 0.5), 0 0 120px rgba(14, 165, 233, 0.3);
}
.vault-door {
  width: 50%;
  height: 100%;
  background:
    linear-gradient(
      135deg,
      #0ea5e9 0%,
      #0284c7 50%,
      #0369a1 100%);
  border: 4px solid #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 3rem;
  color: white;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}
.vault-door-left {
  border-radius: 16px 0 0 16px;
  border-right: 2px solid #38bdf8;
  animation: vaultSlideLeft 0.8s ease-out forwards;
}
.vault-door-right {
  border-radius: 0 16px 16px 0;
  border-left: 2px solid #38bdf8;
  animation: vaultSlideRight 0.8s ease-out forwards;
}
@keyframes vaultSlideLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-110%);
  }
}
@keyframes vaultSlideRight {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(110%);
  }
}
.vault-loading-text {
  margin-top: 32px;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: #38bdf8;
  letter-spacing: 3px;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}
.vault-controls-bar {
  position: absolute;
  top: calc(var(--header-height) + 50px);
  right: calc(var(--vault-right-rail-width) + 24px);
  display: flex;
  align-items: stretch;
  gap: 10px;
  flex-wrap: wrap;
  z-index: var(--z-vault-chrome);
  max-width: calc(100vw - var(--vault-right-rail-width) - 46px);
}
.vault-connection-view-toggle {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid rgba(56, 189, 248, 0.34);
  border-radius: 9px;
  overflow: hidden;
  background: rgba(3, 8, 14, 0.92);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
}
.vault-connection-view-btn {
  border: 0 !important;
  border-right: 1px solid rgba(56, 189, 248, 0.16) !important;
  border-radius: 0 !important;
  background: rgba(11, 24, 38, 0.72) !important;
  color: #89d9ff !important;
  font-size: 0.68rem !important;
  letter-spacing: 0.04em;
  padding: 8px 11px !important;
  min-height: 34px;
}
.vault-connection-view-btn:last-child {
  border-right: 0 !important;
}
.vault-connection-view-btn.active {
  background:
    linear-gradient(
      135deg,
      rgba(10, 42, 66, 0.96),
      rgba(14, 165, 233, 0.34)) !important;
  color: #e0f2ff !important;
  text-shadow: 0 0 8px rgba(95, 215, 255, 0.45);
}
.vault-connection-view-btn:hover {
  background: rgba(16, 47, 72, 0.95) !important;
}
.vault-right-rail {
  position: fixed;
  top: calc(var(--header-height) + 50px);
  right: 0;
  bottom: 0;
  width: var(--vault-right-rail-width);
  z-index: var(--z-vault-chrome);
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 14px 16px;
  background: #05070d;
  border-left: 1px solid rgba(14, 165, 233, 0.24);
  box-shadow: inset 8px 0 22px rgba(0, 0, 0, 0.5);
}
.vault-zotero-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.vault-zotero-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}
.vault-zotero-drawer {
  display: none;
}
.vault-zotero-drawer.is-open {
  display: block;
}
.zotero-control {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.zotero-logo-btn {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  border: 1px solid rgba(14, 165, 233, 0.35);
  background: rgba(6, 10, 16, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: relative;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}
.zotero-logo-btn img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  pointer-events: none;
}
.zotero-logo-btn:hover,
.zotero-control.is-open .zotero-logo-btn {
  transform: translateY(-1px);
  border-color: rgba(14, 165, 233, 0.7);
  background: rgba(12, 18, 28, 0.98);
}
.zotero-arrow-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  font-size: 0.72rem;
  line-height: 0.9;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.2s ease,
    width 0.2s ease,
    height 0.2s ease,
    top 0.2s ease,
    right 0.2s ease;
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.45);
}
.zotero-arrow-import {
  background: #16a34a;
}
.zotero-arrow-export {
  background: #dc2626;
}
.zotero-control:hover .zotero-arrow-badge,
.zotero-control:focus-within .zotero-arrow-badge {
  transform: scale(1.18);
  width: 28px;
  height: 28px;
  top: -9px;
  right: -9px;
}
.zotero-hover-caption {
  margin-top: 6px;
  min-height: 14px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  text-align: center;
  white-space: nowrap;
}
.zotero-control:hover .zotero-hover-caption,
.zotero-control:focus-within .zotero-hover-caption,
.zotero-control.is-open .zotero-hover-caption {
  opacity: 1;
  transform: translateY(0);
}
.zotero-panel {
  position: static;
  margin-top: 8px;
  width: 100%;
  max-width: none;
  background: rgba(6, 10, 16, 0.96);
  border: 1px solid rgba(14, 165, 233, 0.35);
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
  padding: 12px;
  z-index: var(--z-vault-popover);
  display: none;
  flex-direction: column;
  gap: 10px;
}
.zotero-panel.is-open {
  display: flex;
  animation: dropdownFadeIn 0.16s ease;
}
.zotero-instructions {
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(2, 6, 12, 0.6);
}
.zotero-instructions summary {
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-main);
}
.zotero-instructions ol {
  margin: 8px 0 0 18px;
  padding: 0;
  color: var(--text-muted);
  font-size: 0.72rem;
  line-height: 1.45;
}
.zotero-instructions li {
  margin-bottom: 5px;
}
.zotero-instructions li:last-child {
  margin-bottom: 0;
}
.zotero-import-mode {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.zotero-radio-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--text-main);
  line-height: 1.4;
  cursor: pointer;
}
.zotero-radio-row input {
  margin-top: 2px;
}
.zotero-radio-row-danger {
  color: #fca5a5;
}
.zotero-import-dropzone {
  border: 1px dashed rgba(14, 165, 233, 0.45);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  cursor: pointer;
  background: rgba(14, 165, 233, 0.08);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}
.zotero-import-dropzone:hover,
.zotero-import-dropzone.drag-active {
  border-color: rgba(14, 165, 233, 0.9);
  background: rgba(14, 165, 233, 0.18);
  color: var(--text-main);
}
.zotero-import-dropzone.ready {
  border-color: rgba(22, 163, 74, 0.95);
  background: rgba(22, 163, 74, 0.2);
  color: #dcfce7;
  font-weight: 600;
}
.zotero-import-status {
  min-height: 18px;
  font-size: 0.7rem;
  color: var(--text-dim);
  line-height: 1.4;
}
.zotero-import-status.error {
  color: #fca5a5;
}
.zotero-import-status.success {
  color: #86efac;
}
.zotero-export-download-btn {
  width: 100%;
  justify-content: center;
}
.vault-recommendations-panel {
  position: static;
  width: 100%;
  flex: 1;
  min-height: 240px;
  background: rgba(6, 10, 16, 0.92);
  border: 1px solid rgba(14, 165, 233, 0.35);
  border-radius: 10px;
  box-shadow: none;
  z-index: auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.vault-recommendations-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  font-family: var(--font-mono);
  text-transform: uppercase;
}
.vault-recommendations-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vault-rec-empty {
  color: var(--text-dim);
  font-size: 0.75rem;
  line-height: 1.45;
  padding: 8px 6px;
}
.vault-rec-item {
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: flex-start;
  background: rgba(12, 16, 24, 0.75);
}
.vault-rec-main {
  min-width: 0;
  flex: 1;
}
.vault-rec-title {
  color: var(--text-main);
  font-size: 0.76rem;
  line-height: 1.35;
  margin-bottom: 4px;
}
.vault-rec-meta {
  color: var(--text-dim);
  font-size: 0.66rem;
  font-family: var(--font-mono);
  line-height: 1.3;
}
.vault-rec-side {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}
.vault-rec-score {
  color: var(--accent-vault);
  font-size: 0.68rem;
  font-family: var(--font-mono);
  white-space: nowrap;
}
.vault-rec-add {
  border: 1px solid rgba(14, 165, 233, 0.45);
  background: rgba(14, 165, 233, 0.12);
  color: var(--accent-vault);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.68rem;
  font-family: var(--font-mono);
  cursor: pointer;
}
.reorder-btn,
.vault-export-btn {
  background: rgba(14, 165, 233, 0.1) !important;
  border-color: rgba(14, 165, 233, 0.3) !important;
  color: var(--accent-vault) !important;
}
.reorder-btn:hover,
.vault-export-btn:hover {
  background: rgba(14, 165, 233, 0.2) !important;
  border-color: var(--accent-vault) !important;
}
.vault-card-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 20px;
  background: #0e0e0e;
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 10;
  flex-wrap: wrap;
}
.vault-sort-bar {
  display: flex;
  gap: 8px;
  padding: 8px 20px;
  background: var(--bg-body);
  border-bottom: 1px solid var(--border-subtle);
}
.vault-connections-bar {
  width: calc(100% - var(--vault-right-rail-width));
  max-width: calc(100% - var(--vault-right-rail-width));
  margin-right: 0;
  padding: 10px 0 8px;
  position: relative;
  box-sizing: border-box;
  background:
    radial-gradient(
      circle at 14% 18%,
      rgba(56, 189, 248, 0.12),
      rgba(56, 189, 248, 0) 42%),
    radial-gradient(
      circle at 86% 82%,
      rgba(14, 165, 233, 0.16),
      rgba(14, 165, 233, 0) 52%),
    linear-gradient(
      180deg,
      rgba(3, 9, 16, 0.95),
      rgba(4, 10, 18, 0.84));
  border-bottom: 1px solid rgba(56, 189, 248, 0.18);
  overflow-x: auto;
  min-height: 164px;
  box-shadow: inset 0 -12px 30px rgba(0, 0, 0, 0.34);
}
.vault-connections-svg {
  display: block;
  min-width: 100%;
}
.vault-connections-svg-lanes {
  height: 152px;
}
.vault-connections-svg-cocktail {
  height: 226px;
}
.vault-connection-thickness-legend {
  position: absolute;
  left: 6px;
  top: 8px;
  z-index: 6;
  width: 178px;
  border: 1px solid rgba(125, 211, 252, 0.35);
  border-radius: 8px;
  background: rgba(4, 10, 18, 0.9);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
  padding: 6px 7px;
  pointer-events: none;
}
.vault-legend-title {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(186, 230, 253, 0.86);
  margin-bottom: 5px;
}
.vault-legend-note {
  font-family: var(--font-mono);
  font-size: 0.48rem;
  line-height: 1.35;
  color: rgba(186, 230, 253, 0.72);
  margin-bottom: 5px;
  white-space: normal;
}
.vault-legend-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  color: rgba(191, 230, 252, 0.78);
  white-space: nowrap;
}
.vault-legend-row:last-child {
  margin-bottom: 0;
}
.vault-legend-line {
  display: inline-block;
  width: 34px;
  border-radius: 999px;
  background:
    linear-gradient(
      90deg,
      rgba(95, 215, 255, 0.5),
      rgba(95, 215, 255, 0.95));
  box-shadow: 0 0 4px rgba(95, 215, 255, 0.45);
  flex: 0 0 auto;
}
.vault-legend-line.is-weak {
  background:
    linear-gradient(
      90deg,
      rgba(56, 189, 248, 0.55),
      rgba(56, 189, 248, 0.98));
  box-shadow: 0 0 5px rgba(56, 189, 248, 0.5);
}
.vault-legend-line.is-medium {
  background:
    linear-gradient(
      90deg,
      rgba(251, 146, 60, 0.6),
      rgba(251, 146, 60, 1));
  box-shadow: 0 0 5px rgba(251, 146, 60, 0.5);
}
.vault-legend-line.is-strong {
  background:
    linear-gradient(
      90deg,
      rgba(248, 113, 113, 0.62),
      rgba(239, 68, 68, 1));
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.55);
}
.vault-legend-line.thin {
  height: 2px;
}
.vault-legend-line.medium {
  height: 5px;
}
.vault-legend-line.thick {
  height: 9px;
}
.vault-connection-link {
  fill: none;
  stroke: rgba(95, 215, 255, 0.7);
  stroke-linecap: round;
  opacity: 0.88;
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    filter 0.18s ease,
    stroke 0.18s ease,
    transform 0.18s ease;
}
.vault-connection-lane-link {
  filter: drop-shadow(0 0 5px rgba(95, 215, 255, 0.52));
}
.vault-connection-lane-link.is-weak {
  stroke: rgba(56, 189, 248, 0.95);
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.52));
}
.vault-connection-lane-link.is-medium {
  stroke: rgba(251, 146, 60, 0.95);
  filter: drop-shadow(0 0 6px rgba(251, 146, 60, 0.48));
}
.vault-connection-lane-link.is-strong {
  stroke: rgba(248, 113, 113, 0.97);
  filter: drop-shadow(0 0 7px rgba(248, 113, 113, 0.58));
}
.vault-connection-lane-link.is-mutual {
  stroke-dasharray: 2.5 2;
}
.vault-connection-cocktail-link {
  stroke: rgba(95, 215, 255, 0.74);
  filter: drop-shadow(0 0 4px rgba(95, 215, 255, 0.42));
}
.vault-connection-cocktail-link.is-shared {
  stroke: rgba(147, 197, 253, 0.5);
  stroke-dasharray: 5 5;
  filter: none;
}
.vault-connection-link.is-dimmed {
  opacity: 0.13;
}
.vault-connection-link.is-focused {
  opacity: 1;
}
.vault-connection-node {
  cursor: pointer;
  transition: opacity 0.18s ease, filter 0.18s ease;
}
.vault-connection-node-ring {
  fill: rgba(7, 13, 22, 0.95);
  stroke: rgba(125, 211, 252, 0.8);
  stroke-width: 1.4;
}
.vault-connection-node-core {
  fill: #0ea5e9;
  stroke: rgba(224, 242, 255, 0.7);
  stroke-width: 1;
}
.vault-connection-node.is-active .vault-connection-node-core {
  fill: #22d3ee;
  filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.52));
}
.vault-connection-node.is-active .vault-connection-node-ring {
  stroke: rgba(186, 230, 253, 0.95);
}
.vault-connection-node-index {
  fill: #031019;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  pointer-events: none;
}
.vault-cocktail-ring {
  fill: none;
  stroke: rgba(56, 189, 248, 0.24);
  stroke-dasharray: 3 5;
}
.vault-cocktail-node-label {
  fill: rgba(191, 230, 252, 0.9);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.02em;
  pointer-events: none;
  transition: opacity 0.18s ease;
}
.vault-connection-node.is-dimmed,
.vault-cocktail-node-label.is-dimmed {
  opacity: 0.14;
}
.vault-connection-node.is-focused,
.vault-cocktail-node-label.is-focused {
  opacity: 1;
}
.vault-connection-node.is-focused .vault-connection-node-ring {
  stroke: rgba(186, 230, 253, 0.95);
  filter: drop-shadow(0 0 6px rgba(125, 211, 252, 0.45));
}
.vault-connections-empty-hint {
  margin-top: -18px;
  padding: 0 6px 4px;
  font-size: 0.69rem;
  font-family: var(--font-mono);
  color: rgba(147, 197, 253, 0.78);
}
.vault-viewport {
  flex: 1;
  width: calc(100% - var(--vault-right-rail-width));
  max-width: calc(100% - var(--vault-right-rail-width));
  margin-right: 0;
  overflow-x: auto;
  overflow-y: hidden;
  position: relative;
  perspective: 1000px;
  background-image: radial-gradient(#1a1a1a 1px, transparent 1px);
  background-size: 30px 30px;
  display: flex;
  align-items: flex-start;
  padding-top: 30px;
}
.vault-connections-bar::-webkit-scrollbar,
.vault-viewport::-webkit-scrollbar {
  height: 9px;
}
.vault-connections-bar::-webkit-scrollbar-track,
.vault-viewport::-webkit-scrollbar-track {
  background: rgba(5, 12, 20, 0.85);
}
.vault-connections-bar::-webkit-scrollbar-thumb,
.vault-viewport::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.45);
  border-radius: 999px;
}
.vault-connections-bar::-webkit-scrollbar-thumb:hover,
.vault-viewport::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 189, 248, 0.75);
}
.vault-stack-wrapper {
  position: relative;
  min-height: calc(85vh + 40px);
  width: max-content;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding-left: 50px;
  padding-top: 20px;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.vault-card {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.vault-card.vault-card-dimmed {
  opacity: 0.1 !important;
  filter: saturate(0.2) brightness(0.52);
}
.vault-card.vault-card-linked {
  opacity: 1 !important;
  transform: translateY(-8px) scale(1.018) !important;
  z-index: 260 !important;
  box-shadow: 0 18px 52px rgba(14, 165, 233, 0.32);
}
.vault-card-open {
  width: 550px;
  max-width: 90vw;
  height: calc(75vh - 40px);
  max-height: calc(100vh - 280px);
}
.vault-card-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background:
    linear-gradient(
      180deg,
      #1a1a2e 0%,
      var(--bg-card) 100%);
  border-bottom: 1px solid var(--border-subtle);
}
.vault-card-rating-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 6px 12px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(8, 16, 24, 0.82);
}
.vault-card-rating-label {
  font-size: 0.68rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.vault-rating-stars {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.vault-rating-stars.compact {
  gap: 2px;
}
.vault-star {
  border: none;
  background: transparent;
  color: rgba(148, 163, 184, 0.7);
  cursor: pointer;
  line-height: 1;
  padding: 1px 2px;
  font-size: 0.95rem;
}
.vault-rating-stars.compact .vault-star {
  font-size: 0.8rem;
  padding: 0;
}
.vault-star.active {
  color: #fbbf24;
  text-shadow: 0 0 6px rgba(251, 191, 36, 0.35);
}
.vault-star:hover {
  color: #f59e0b;
}
.open-card-number {
  width: 40px;
  height: 40px;
  background: var(--accent-vault);
  color: #050505;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(14, 165, 233, 0.4);
}
.vault-card-open-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1.2rem;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
}
.vault-card-open-link:hover {
  color: var(--accent-primary);
  background: var(--bg-hover);
}
.vault-card-family-btn {
  border: 1px solid rgba(56, 189, 248, 0.55);
  background: rgba(8, 20, 34, 0.86);
  color: #7dd3fc;
  border-radius: 6px;
  width: 30px;
  height: 30px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
}
.vault-card-family-btn:hover {
  border-color: rgba(56, 189, 248, 0.95);
  color: #e0f2fe;
  background: rgba(14, 165, 233, 0.25);
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.32);
}
.vault-card-spine {
  width: auto;
  min-width: 80px;
  max-width: 150px;
  height: calc(75vh - 40px);
  max-height: calc(100vh - 260px);
  background:
    linear-gradient(
      180deg,
      #0a0a14 0%,
      #0d1220 100%);
  border: 2px solid var(--accent-vault);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 8px;
  transition: all 0.3s ease;
  border-radius: 8px;
}
.vault-card-spine:hover {
  border-color: #38bdf8;
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
  transform: scale(1.02);
}
.spine-family-trigger {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(56, 189, 248, 0.7);
  background: rgba(8, 24, 38, 0.9);
  color: #7dd3fc;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  margin-bottom: 10px;
  transition: all 0.2s ease;
}
.spine-family-trigger:hover {
  color: #e0f2fe;
  border-color: rgba(56, 189, 248, 1);
  background: rgba(14, 165, 233, 0.25);
  box-shadow: 0 0 14px rgba(14, 165, 233, 0.35);
}
.spine-number {
  width: 36px;
  height: 36px;
  background: #0a0a14;
  border: 2px solid var(--accent-vault);
  color: var(--accent-vault);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-bottom: 12px;
}
.spine-rating-row {
  margin-bottom: 10px;
}
#vault-overlay.paper-family-tree-open .vault-controls-bar,
#vault-overlay.paper-family-tree-open .vault-right-rail,
#vault-overlay.paper-family-tree-open .vault-sync-prompt,
#vault-overlay.paper-family-tree-open .vault-connections-bar,
#vault-overlay.paper-family-tree-open .vault-viewport {
  visibility: hidden;
  pointer-events: none;
}
#paper-family-tree-screen {
  position: absolute;
  inset: 0;
  z-index: var(--z-vault-family-tree);
  background:
    radial-gradient(
      circle at 12% 16%,
      rgba(14, 165, 233, 0.18),
      rgba(14, 165, 233, 0) 45%),
    radial-gradient(
      circle at 88% 84%,
      rgba(59, 130, 246, 0.18),
      rgba(59, 130, 246, 0) 48%),
    linear-gradient(
      160deg,
      #050a12 0%,
      #070d17 58%,
      #050812 100%);
  display: none;
  flex-direction: column;
}
#paper-family-tree-screen.active {
  display: flex;
}
.paper-family-tree-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 22px 10px;
  border-bottom: 1px solid rgba(56, 189, 248, 0.22);
  background: rgba(4, 10, 18, 0.84);
}
.paper-family-tree-back {
  flex-shrink: 0;
}
.paper-family-tree-header-copy {
  min-width: 0;
}
.paper-family-tree-title {
  color: #e2f1ff;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.paper-family-tree-subtitle {
  color: rgba(148, 163, 184, 0.95);
  font-size: 0.76rem;
  line-height: 1.35;
  max-width: min(64vw, 860px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.paper-family-tree-mode-btn {
  border: 1px solid rgba(56, 189, 248, 0.44);
  background: rgba(8, 22, 36, 0.88);
  color: rgba(186, 230, 253, 0.96);
  border-radius: 999px;
  padding: 6px 11px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}
.paper-family-tree-mode-btn:hover {
  border-color: rgba(125, 211, 252, 0.9);
  color: #f0f9ff;
  background: rgba(14, 165, 233, 0.22);
}
.paper-family-tree-mode-btn.active {
  border-color: rgba(125, 211, 252, 0.95);
  color: #f0f9ff;
  background: rgba(14, 165, 233, 0.3);
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.28);
}
.paper-family-tree-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 180px 1fr 260px 108px;
  position: relative;
  gap: 0;
}
.paper-family-tree-axis {
  border-right: 1px solid rgba(56, 189, 248, 0.2);
  padding: 22px 16px;
  font-family: var(--font-mono);
  color: rgba(191, 219, 254, 0.92);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(3, 7, 14, 0.66);
}
.paper-family-tree-axis-mid {
  color: rgba(125, 211, 252, 0.95);
}
.paper-family-tree-axis-note {
  color: rgba(148, 163, 184, 0.8);
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.4;
}
.paper-family-tree-controls {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(56, 189, 248, 0.18);
}
.paper-family-tree-control-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(186, 230, 253, 0.95);
  font-size: 0.62rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.paper-family-tree-controls input[type=range] {
  width: 100%;
  accent-color: #38bdf8;
}
.paper-family-tree-canvas-wrap {
  position: relative;
  overflow: auto;
}
.paper-family-single-cites {
  border-left: 1px solid rgba(56, 189, 248, 0.2);
  border-right: 1px solid rgba(56, 189, 248, 0.2);
  background: rgba(5, 13, 23, 0.72);
  display: flex;
  flex-direction: column;
  min-height: 0;
  gap: 8px;
  padding: 8px 8px 10px;
}
.paper-family-side-section {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(5, 13, 23, 0.5);
}
.paper-family-single-cites-title {
  padding: 9px 10px;
  color: rgba(191, 219, 254, 0.95);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(56, 189, 248, 0.22);
}
.paper-family-single-cites-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px;
  display: grid;
  gap: 7px;
}
.paper-family-single-cite-item {
  border: 1px solid rgba(56, 189, 248, 0.32);
  background: rgba(7, 19, 33, 0.86);
  color: #dbeafe;
  border-radius: 8px;
  padding: 8px;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}
.paper-family-small-chain {
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 8px;
  background: rgba(8, 17, 30, 0.72);
  padding: 6px;
}
.paper-family-small-chain-head {
  color: rgba(186, 230, 253, 0.95);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.paper-family-small-chain-items {
  display: grid;
  gap: 6px;
}
.paper-family-single-cite-item.small-chain {
  padding: 7px;
}
.paper-family-single-cite-item:hover {
  border-color: rgba(125, 211, 252, 0.88);
  background: rgba(14, 30, 48, 0.94);
  transform: translateY(-1px);
}
.paper-family-single-cite-year {
  color: rgba(125, 211, 252, 0.96);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  margin-bottom: 4px;
}
.paper-family-single-cite-title {
  color: #e2e8f0;
  font-size: 0.7rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.paper-family-single-cite-empty {
  color: rgba(148, 163, 184, 0.9);
  font-family: var(--font-mono);
  font-size: 0.67rem;
  line-height: 1.5;
  padding: 6px;
}
.paper-family-tree-timeline {
  border-left: 1px solid rgba(56, 189, 248, 0.2);
  background: rgba(4, 10, 18, 0.66);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 8px;
  gap: 8px;
  min-height: 0;
}
.paper-family-tree-timeline-title {
  color: rgba(191, 219, 254, 0.92);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.paper-family-tree-fit-btn {
  border: 1px solid rgba(56, 189, 248, 0.44);
  background: rgba(8, 22, 36, 0.88);
  color: rgba(186, 230, 253, 0.96);
  border-radius: 999px;
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}
.paper-family-tree-fit-btn:hover {
  border-color: rgba(125, 211, 252, 0.9);
  color: #f0f9ff;
  background: rgba(14, 165, 233, 0.22);
}
.paper-family-tree-fit-btn.active {
  border-color: rgba(125, 211, 252, 0.95);
  color: #f0f9ff;
  background: rgba(14, 165, 233, 0.3);
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.28);
}
.paper-family-tree-timeline-track {
  position: relative;
  width: 24px;
  flex: 1;
  min-height: 220px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background:
    linear-gradient(
      180deg,
      rgba(56, 189, 248, 0.1),
      rgba(15, 23, 42, 0.8));
  cursor: ns-resize;
  overflow: hidden;
}
.paper-family-tree-timeline-track.scrubbing {
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.35);
}
.paper-family-tree-timeline-cursor {
  position: absolute;
  left: 2px;
  right: 2px;
  height: 2px;
  border-radius: 2px;
  background: #f0f9ff;
  box-shadow: 0 0 8px rgba(224, 242, 254, 0.7);
  transform: translateY(-50%);
  top: 0%;
  pointer-events: none;
  z-index: 2;
}
.paper-family-tree-timeline-markers {
  position: absolute;
  inset: 0;
}
.paper-family-timeline-marker {
  position: absolute;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(125, 211, 252, 0.9);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
}
.paper-family-timeline-marker.root {
  width: 8px;
  height: 8px;
  background: rgba(250, 204, 21, 0.95);
  box-shadow: 0 0 8px rgba(250, 204, 21, 0.55);
}
.paper-family-tree-timeline-labels {
  width: 100%;
  display: grid;
  gap: 4px;
  color: rgba(148, 163, 184, 0.95);
  font-family: var(--font-mono);
  font-size: 0.57rem;
  line-height: 1.35;
  text-align: center;
}
.paper-family-tree-status {
  position: absolute;
  top: 10px;
  left: 14px;
  right: 14px;
  z-index: 2;
  pointer-events: none;
}
.paper-family-tree-progress {
  width: min(760px, 100%);
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.36);
  background: rgba(3, 12, 22, 0.9);
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.44);
  padding: 10px 12px;
  margin-bottom: 8px;
}
.paper-family-tree-progress-head {
  color: rgba(224, 242, 254, 0.96);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.35;
  margin-bottom: 6px;
}
.paper-family-tree-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(148, 163, 184, 0.95);
  font-family: var(--font-mono);
  font-size: 0.63rem;
  line-height: 1.3;
  margin-bottom: 8px;
}
.paper-family-tree-progress-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.86);
  border: 1px solid rgba(56, 189, 248, 0.2);
  overflow: hidden;
}
.paper-family-tree-progress-fill {
  height: 100%;
  background:
    linear-gradient(
      90deg,
      rgba(14, 165, 233, 0.66),
      rgba(96, 165, 250, 0.96));
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
  transition: width 0.22s ease;
}
.paper-family-tree-progress-percent {
  text-align: right;
  margin-top: 6px;
  color: rgba(125, 211, 252, 0.96);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1;
}
.paper-family-tree-debug-lines {
  margin-top: 8px;
  border-top: 1px dashed rgba(56, 189, 248, 0.28);
  padding-top: 7px;
  display: grid;
  gap: 4px;
  max-height: 180px;
  overflow: hidden;
}
.paper-family-tree-debug-line {
  color: rgba(186, 230, 253, 0.92);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.paper-family-tree-loading,
.paper-family-tree-empty,
.paper-family-tree-warning {
  width: fit-content;
  max-width: 100%;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.74rem;
  line-height: 1.4;
  font-family: var(--font-mono);
}
.paper-family-tree-loading {
  color: rgba(186, 230, 253, 0.96);
  border: 1px solid rgba(56, 189, 248, 0.38);
  background: rgba(8, 25, 37, 0.9);
}
.paper-family-tree-empty {
  color: rgba(226, 232, 240, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(9, 14, 22, 0.9);
}
.paper-family-tree-warning {
  color: rgba(252, 211, 77, 0.95);
  border: 1px solid rgba(250, 204, 21, 0.4);
  background: rgba(31, 24, 6, 0.85);
}
.paper-family-tree-canvas {
  position: relative;
  width: max(100%, 980px);
  min-height: 780px;
}
#paper-family-tree-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
#paper-family-tree-root-layer,
#paper-family-tree-top-layer,
#paper-family-tree-bottom-layer {
  position: absolute;
  inset: 0;
}
.paper-family-root {
  position: absolute;
  transform: translate(-50%, -50%) scale(var(--paper-family-node-scale, 1));
  transform-origin: center center;
  z-index: 20;
}
.paper-family-root-card {
  width: min(460px, calc(100vw - 250px));
  border: 1px solid rgba(125, 211, 252, 0.5);
  border-radius: 12px;
  background:
    linear-gradient(
      160deg,
      rgba(8, 28, 40, 0.95),
      rgba(8, 12, 24, 0.95));
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.6), 0 0 24px rgba(14, 165, 233, 0.28);
  color: #f0f9ff;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
}
.paper-family-root-enter {
  animation: paperFamilyRootEnter 0.46s cubic-bezier(0.18, 0.9, 0.24, 1) both;
  transform-origin: center;
}
@keyframes paperFamilyRootEnter {
  0% {
    transform: rotate(-90deg) scale(0.68);
    opacity: 0.1;
  }
  100% {
    transform: rotate(0deg) scale(1);
    opacity: 1;
  }
}
.paper-family-root-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(125, 211, 252, 0.72);
  color: #7dd3fc;
  font-family: var(--font-mono);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 17, 29, 0.86);
  flex-shrink: 0;
}
.paper-family-root-main {
  min-width: 0;
}
.paper-family-root-title {
  font-size: 0.86rem;
  line-height: 1.4;
  margin-bottom: 4px;
}
.paper-family-root-meta {
  color: rgba(191, 219, 254, 0.9);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1.35;
}
.paper-family-root-label {
  color: #7dd3fc;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(56, 189, 248, 0.5);
  border-radius: 999px;
  padding: 6px 8px;
  white-space: nowrap;
}
.paper-family-node {
  position: absolute;
  transform: translate(-50%, -50%) scale(var(--paper-family-node-scale, 1));
  transform-origin: center center;
  z-index: 15;
  transition: opacity 0.16s ease;
}
.paper-family-node-bottom {
  z-index: 14;
}
.paper-family-node-enter {
  animation: paperFamilyNodeEnter 0.28s ease both;
}
@keyframes paperFamilyNodeEnter {
  from {
    opacity: 0;
    transform: translate(-50%, -46%) scale(calc(var(--paper-family-node-scale, 1) * 0.92));
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(var(--paper-family-node-scale, 1));
  }
}
.paper-family-node-card {
  width: 220px;
  min-height: 94px;
  border: 1px solid rgba(125, 211, 252, 0.36);
  border-radius: 10px;
  background:
    linear-gradient(
      170deg,
      rgba(11, 26, 41, 0.92),
      rgba(8, 15, 26, 0.94));
  color: #dbeafe;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 4px;
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.16s ease;
}
.paper-family-node-card.compact {
  width: 180px;
  min-height: 62px;
  gap: 3px;
  padding: 7px 8px;
}
.paper-family-node-card.tiny {
  width: 148px;
  min-height: 48px;
  gap: 2px;
  padding: 6px 7px;
}
.paper-family-node-card:hover {
  transform: translateY(-2px);
  border-color: rgba(125, 211, 252, 0.8);
  box-shadow: 0 8px 26px rgba(2, 6, 23, 0.46), 0 0 16px rgba(14, 165, 233, 0.25);
}
.paper-family-node-year {
  color: #7dd3fc;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
}
.paper-family-node-title {
  color: #e2e8f0;
  font-size: 0.74rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.paper-family-node-card.compact .paper-family-node-title {
  font-size: 0.66rem;
  -webkit-line-clamp: 1;
}
.paper-family-node-card.tiny .paper-family-node-title {
  font-size: 0.58rem;
  -webkit-line-clamp: 1;
}
.paper-family-node-meta,
.paper-family-node-venue {
  color: rgba(191, 219, 254, 0.85);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  line-height: 1.25;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.paper-family-node-venue {
  color: rgba(148, 163, 184, 0.9);
}
.paper-family-node-cite {
  color: rgba(148, 163, 184, 0.95);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  line-height: 1.3;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.paper-family-node-card.tiny .paper-family-node-cite {
  font-size: 0.53rem;
}
.paper-family-path {
  fill: none;
  vector-effect: non-scaling-stroke;
  transition: opacity 0.16s ease, stroke-width 0.16s ease;
  stroke-linejoin: miter;
  stroke-linecap: square;
  opacity: 0.24;
}
.paper-family-path-root {
  stroke: rgba(125, 211, 252, 0.6);
  stroke-width: 1.6;
}
.paper-family-path-top {
  stroke: rgba(56, 189, 248, 0.48);
  stroke-width: 1.35;
}
.paper-family-path-bottom {
  stroke: rgba(56, 189, 248, 0.42);
  stroke-width: 1.25;
}
.paper-family-node.dimmed,
.paper-family-path.dimmed,
.paper-family-root-card.dimmed {
  opacity: 0.12;
}
.paper-family-node.highlighted,
.paper-family-path.highlighted,
.paper-family-root-card.highlighted {
  opacity: 1;
}
.paper-family-path-top.highlighted {
  stroke-width: 2.6;
}
.paper-family-path-root.highlighted {
  stroke-width: 3;
}
.spine-meta-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-bottom: 16px;
  flex-shrink: 0;
  text-align: center;
  width: 100%;
  padding: 0 2px;
}
.spine-author {
  color: var(--accent-vault);
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  white-space: normal;
  overflow-wrap: break-word;
  word-wrap: break-word;
  text-align: center;
  max-width: 100%;
  line-height: 1.2;
}
.spine-year {
  color: var(--accent-vault);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.75rem;
}
.spine-journal {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: lowercase;
  white-space: normal;
  overflow-wrap: break-word;
  word-wrap: break-word;
  text-align: center;
  max-width: 100%;
  line-height: 1.2;
}
.spine-title-section {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  padding: 4px 0;
}
.spine-title-line {
  color: var(--accent-vault);
  font-weight: 400;
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: center;
}
.spine-meta {
  display: none;
}
.spine-content {
  display: none;
}
.spine-remove {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: var(--accent-alert);
  width: 22px;
  height: 22px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 10;
}
.vault-card-spine:hover .spine-remove {
  opacity: 1;
}
.spine-remove:hover {
  background: rgba(239, 68, 68, 0.4);
}
.vault-card-remove {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--accent-alert);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.vault-card-remove:hover {
  background: rgba(239, 68, 68, 0.2);
  transform: scale(1.1);
}
.vault-card-minimize {
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.3);
  color: var(--accent-vault);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  margin-right: 8px;
}
.vault-card-minimize:hover {
  background: rgba(14, 165, 233, 0.2);
  transform: scale(1.1);
}
.vault-card.removing {
  animation: slideOutDown 0.4s ease-in forwards;
}
@keyframes slideOutDown {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) scale(0.8);
    opacity: 0;
  }
}
.vault-card-header {
  padding: 24px;
  cursor: pointer;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
  position: relative;
}
.vault-card-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 0 20px 0;
  background: #0e0e0e;
}
.vault-card-content-inner {
  padding: 24px;
}
.vault-connection-arrow {
  display: none;
}
.export-dropdown {
  background: var(--bg-card);
  border: 1px solid var(--accent-vault);
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(14, 165, 233, 0.2);
  z-index: var(--z-overlay-tooltip);
  overflow: hidden;
  animation: dropdownFadeIn 0.2s ease;
}
@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.export-option {
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: background 0.2s;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-subtle);
}
.export-option:last-child {
  border-bottom: none;
}
.export-option:hover {
  background: rgba(14, 165, 233, 0.1);
  color: var(--accent-vault);
}
.export-icon {
  font-size: 1.1rem;
}
.vault-stack-wrapper.shuffling .vault-card {
  pointer-events: none;
}
.shuffle-out {
  animation: shuffleOut 0.3s ease-in forwards;
}
@keyframes shuffleOut {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(20px);
  }
}
.email-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: var(--z-modal);
  display: none;
  align-items: center;
  justify-content: center;
}
.email-modal-overlay.active {
  display: flex;
}
.email-modal {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 32px;
  max-width: 450px;
  width: 90%;
}
.email-modal h3 {
  margin: 0 0 8px 0;
  color: var(--text-main);
}
.email-modal p {
  margin: 0 0 20px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.email-modal input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: var(--text-main);
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.email-modal input:focus {
  outline: none;
  border-color: var(--accent-primary);
}
.email-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.email-modal-btn {
  padding: 10px 20px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}
.email-modal-btn.secondary {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}
.email-modal-btn.secondary:hover {
  background: var(--bg-hover);
  color: var(--text-main);
}
.email-modal-btn.primary {
  background: var(--accent-primary);
  border: 1px solid var(--accent-primary);
  color: white;
}
.email-modal-btn.primary:hover {
  background: #2563eb;
}
.about-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: var(--z-modal);
  display: none;
  align-items: center;
  justify-content: center;
}
.about-modal-overlay.active {
  display: flex;
}
.about-modal {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 32px;
  max-width: 500px;
  width: 90%;
}
.about-modal h3 {
  margin: 0 0 16px 0;
  color: var(--text-main);
}
.about-modal p {
  margin: 0 0 12px 0;
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.9rem;
}
.about-modal .close-btn {
  margin-top: 20px;
  width: 100%;
}
.author-trunc {
  color: var(--text-dim);
  cursor: default;
}
.author-expand {
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}
.author-expand:hover {
  color: var(--accent-primary);
}
.author-collapse {
  color: var(--text-dim);
  cursor: pointer;
  font-size: 0.75em;
  margin-left: 4px;
  transition: color 0.2s;
}
.author-collapse:hover {
  color: var(--accent-primary);
}
.authors-expanded {
  white-space: normal;
}
.loader {
  text-align: center;
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}
.error-msg {
  text-align: center;
  padding: 20px;
  color: var(--accent-alert);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}
.scroll-sentinel {
  height: 1px;
  width: 100%;
}
.loading-more-indicator {
  text-align: center;
  padding: 16px;
  color: var(--text-dim);
  font-style: italic;
  font-size: 0.8rem;
  font-family: var(--font-mono);
}
.loading-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--border-subtle);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes pulse-alpha {
  0%, 100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}
.vault-connections-scale {
  display: none;
}
.btn-vault-action {
  border-color: rgba(14, 165, 233, 0.4);
  color: var(--accent-vault);
  font-weight: 600;
}
.btn-vault-action:hover {
  background: rgba(14, 165, 233, 0.15);
  border-color: var(--accent-vault);
  color: #fff;
}
.btn-vault-action.in-vault {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--accent-secondary);
  color: var(--accent-secondary);
}
.btn-vault-action.in-vault:hover {
  background: rgba(16, 185, 129, 0.2);
}
.vault-notification {
  position: fixed;
  top: 80px;
  right: 20px;
  background: var(--bg-card);
  border: 1px solid var(--accent-vault);
  border-radius: 8px;
  padding: 12px 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  z-index: var(--z-toast);
  animation: notificationSlideIn 0.3s ease, notificationFadeOut 0.3s ease 4.7s forwards;
  box-shadow: 0 8px 30px rgba(14, 165, 233, 0.3);
  max-width: 400px;
}
.vault-notification img {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  margin-top: 2px;
}
.vault-notification-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.vault-notification-text {
  color: var(--accent-vault);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.4;
}
.vault-notification-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
  width: 100%;
}
.vault-notif-link {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  transition: all 0.2s;
}
.view-link {
  color: var(--accent-vault);
  font-weight: 600;
}
.view-link:hover {
  color: #fff;
  text-shadow: 0 0 8px var(--accent-vault);
}
.undo-link {
  color: var(--text-muted);
}
.undo-link:hover {
  color: var(--accent-alert);
}
@keyframes notificationSlideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes notificationFadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.65rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-body);
  z-index: var(--z-subnav);
}
.footer-left,
.footer-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-sep {
  opacity: 0.35;
}
.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--accent-primary);
}
.settings-btn {
  background: none;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, border-color 0.2s;
  padding: 0;
  flex-shrink: 0;
}
.settings-btn:hover {
  color: var(--text-main);
  border-color: var(--border-active);
}
.help-btn {
  font-family: var(--font-mono);
  font-size: 0.95rem;
}
.settings-dropdown,
.help-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-active);
  border-radius: 8px;
  min-width: 185px;
  z-index: var(--z-header-menu);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  padding: 4px;
  flex-direction: column;
}
.settings-dropdown.open,
.help-dropdown.open {
  display: flex;
}
.settings-item {
  background: none;
  border: none;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  padding: 8px 12px;
  cursor: pointer;
  text-align: left;
  border-radius: 5px;
  transition: background 0.15s;
  width: 100%;
  white-space: nowrap;
  text-decoration: none;
  display: block;
}
.settings-item:hover {
  background: var(--bg-hover);
}

/* styles.neuro.css */
#nc-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #050505;
  z-index: var(--z-neurocluster);
  display: none;
  flex-direction: column;
  padding: 16px 20px;
}
#nc-overlay.active {
  display: flex;
}
.nc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
  margin-bottom: 8px;
  flex-shrink: 0;
}
.nc-title {
  margin: 0;
  font-size: 1.2rem;
  color: #10b981;
  letter-spacing: 1px;
  flex-shrink: 0;
}
.nc-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  justify-content: flex-end;
}
.nc-status-bar {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  flex-shrink: 0;
}
.nc-mode-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px;
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.06);
}
.nc-mode-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #7be6bf;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  padding: 5px 9px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.nc-mode-btn:hover {
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.12);
}
.nc-mode-btn.active {
  border-color: rgba(16, 185, 129, 0.65);
  background: rgba(16, 185, 129, 0.22);
  color: #d1fae5;
}
.nc-cocktail-web {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 8px;
}
.nc-cocktail-tabs {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 12px;
  background: rgba(6, 14, 11, 0.76);
  padding: 10px 12px;
}
.nc-cocktail-tab-btn {
  border: 1px solid rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.07);
  color: #8be9c6;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.nc-cocktail-tab-btn:hover {
  border-color: rgba(16, 185, 129, 0.55);
  background: rgba(16, 185, 129, 0.15);
}
.nc-cocktail-tab-btn.active {
  border-color: rgba(16, 185, 129, 0.7);
  background: rgba(16, 185, 129, 0.26);
  color: #d2ffeb;
}
.nc-cocktail-run-btn {
  border-color: rgba(124, 255, 194, 0.6);
  background: rgba(37, 196, 128, 0.2);
  color: #d9ffe9;
  align-self: flex-start;
}
.nc-cocktail-menu-toggle {
  width: 100%;
  border: 1px solid rgba(16, 185, 129, 0.32);
  background: rgba(16, 185, 129, 0.08);
  color: #d8ffeb;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  text-transform: lowercase;
  letter-spacing: 0.01em;
  border-radius: 8px;
  padding: 7px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
}
.nc-cocktail-menu-toggle:hover {
  border-color: rgba(16, 185, 129, 0.56);
  background: rgba(16, 185, 129, 0.16);
}
.nc-cocktail-menu-arrow {
  color: #9feccd;
  font-size: 0.74rem;
  line-height: 1;
}
.nc-cocktail-menu-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nc-cocktail-mode-label {
  color: #9feccd;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  line-height: 1.35;
}
.nc-cocktail-title {
  color: #d2ffeb;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: lowercase;
  letter-spacing: 0.01em;
}
.nc-cocktail-mode-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nc-cocktail-mode-row {
  display: grid;
  grid-template-columns: minmax(230px, 360px) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}
.nc-cocktail-mode-btn {
  text-align: left;
  text-transform: lowercase;
}
.nc-cocktail-mode-desc {
  color: #a9efcf;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  line-height: 1.35;
}
.nc-cocktail-chooser {
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 10px;
  background: rgba(4, 12, 9, 0.86);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nc-cocktail-mode-row > .nc-cocktail-chooser {
  grid-column: 1 / -1;
  margin-top: 2px;
}
.nc-cocktail-chooser-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  color: #9feccd;
  font-family: var(--font-mono);
  font-size: 0.61rem;
  text-transform: lowercase;
}
.nc-cocktail-inline-search {
  width: min(260px, 100%);
  min-width: 0;
  background: rgba(5, 12, 9, 0.9);
  border: 1px solid rgba(16, 185, 129, 0.24);
  color: #d8ffeb;
  border-radius: 7px;
  padding: 6px 8px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
}
.nc-cocktail-inline-search:focus {
  outline: none;
  border-color: rgba(102, 245, 188, 0.62);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.16);
}
.nc-cocktail-search-toggle-btn {
  font-size: 0.58rem;
  padding: 4px 8px;
  text-transform: lowercase;
}
.nc-cocktail-choice-list {
  max-height: 180px;
  overflow: auto;
  border: 1px solid rgba(16, 185, 129, 0.18);
  border-radius: 8px;
  background: rgba(3, 10, 8, 0.9);
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.nc-cocktail-choice-item {
  width: 100%;
  border: 1px solid transparent;
  background: rgba(10, 24, 18, 0.55);
  color: #d6ffe8;
  border-radius: 6px;
  padding: 6px 7px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nc-cocktail-choice-item:hover {
  border-color: rgba(126, 245, 195, 0.45);
  background: rgba(20, 44, 33, 0.7);
}
.nc-cocktail-choice-item.is-active {
  border-color: rgba(126, 245, 195, 0.62);
  background: rgba(22, 50, 37, 0.74);
}
.nc-cocktail-choice-title {
  color: #d8ffea;
  font-family: var(--font-mono);
  font-size: 0.61rem;
  line-height: 1.3;
}
.nc-cocktail-choice-meta {
  color: #9feccd;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  line-height: 1.3;
}
.nc-cocktail-choice-empty {
  color: #9feccd;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  line-height: 1.35;
  padding: 6px 7px;
}
.nc-cocktail-search-panel {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nc-cocktail-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(4, 12, 9, 0.78);
  z-index: 5;
  pointer-events: auto;
  cursor: progress;
}
.nc-cocktail-loading-track {
  width: min(420px, 78%);
  height: 10px;
  border: 1px solid rgba(16, 185, 129, 0.36);
  border-radius: 999px;
  background: rgba(6, 15, 11, 0.92);
  overflow: hidden;
}
.nc-cocktail-loading-bar {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background:
    linear-gradient(
      90deg,
      rgba(66, 232, 166, 0.92),
      rgba(126, 245, 195, 0.94));
  transition: width 0.22s ease;
}
.nc-cocktail-loading-text {
  color: #d7ffeb;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.01em;
}
.nc-cocktail-tab-view {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.nc-cocktail-layout {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 12px;
}
.nc-cocktail-panel {
  min-height: 0;
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 12px;
  background: rgba(6, 14, 11, 0.82);
  display: flex;
  flex-direction: column;
}
.nc-cocktail-panel-header {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(16, 185, 129, 0.16);
}
.nc-cocktail-panel-headline {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nc-cocktail-panel-header h3 {
  margin: 0;
  font-size: 0.8rem;
  color: #d1fae5;
  letter-spacing: 0.02em;
}
.nc-cocktail-panel-meta {
  margin-top: 3px;
  font-size: 0.66rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}
.nc-map-controls-row {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.nc-spoke-limit-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 200px;
  width: min(48%, 340px);
}
.nc-spoke-limit-group label {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.64rem;
}
#nc-dinner-link-limit-slider {
  width: 100%;
  accent-color: #10b981;
}
#nc-dinner-author-count-slider,
#nc-dinner-speed-slider {
  width: 100%;
  accent-color: #10b981;
}
.nc-canvas-wrap {
  position: relative;
  flex: 1;
  min-height: 260px;
}
.nc-map-workspace {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: 10px;
  padding: 10px;
}
.nc-map-canvas-wrap {
  min-height: 420px;
  border: 1px solid rgba(16, 185, 129, 0.16);
  border-radius: 10px;
  overflow: hidden;
}
.nc-opt-panel {
  border: 1px solid rgba(16, 185, 129, 0.16);
  border-radius: 10px;
  background: rgba(8, 18, 13, 0.72);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 420px;
}
.nc-opt-track {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nc-opt-track label {
  color: #b8f6dc;
  font-family: var(--font-mono);
  font-size: 0.67rem;
}
.nc-opt-track-row {
  display: flex;
  gap: 6px;
}
.nc-opt-stats {
  border: 1px solid rgba(16, 185, 129, 0.18);
  border-radius: 8px;
  background: rgba(6, 13, 10, 0.74);
  padding: 7px;
  color: #c8fce3;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  line-height: 1.45;
  min-height: 130px;
}
.nc-opt-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #9feccd;
  font-family: var(--font-mono);
  font-size: 0.62rem;
}
.nc-opt-progress-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.2);
  overflow: hidden;
}
.nc-opt-chart-wrap {
  flex: 1;
  min-height: 170px;
  border: 1px solid rgba(16, 185, 129, 0.18);
  border-radius: 8px;
  background: rgba(6, 12, 9, 0.86);
  padding: 6px;
}
.nc-opt-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}
.nc-opt-actions .filter-btn {
  font-size: 0.66rem;
  padding: 5px 10px;
}
#nc-dinner-seat-btn {
  border-color: rgba(255, 207, 128, 0.52);
  color: #ffe2b2;
}
#nc-dinner-seat-btn:disabled {
  opacity: 0.55;
  cursor: default;
}
#nc-dinner-map-canvas,
#nc-dinner-map-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
#nc-dinner-map-canvas {
  background: #050b08;
}
#nc-dinner-map-overlay {
  pointer-events: none;
}
.nc-dinner-layout {
  grid-template-columns: minmax(0, 1fr);
}
#nc-cocktail-tab-dinner .nc-map-controls-row {
  justify-content: flex-start;
  flex-wrap: wrap;
}
#nc-cocktail-tab-dinner .nc-spoke-limit-group {
  min-width: 190px;
  width: min(30%, 260px);
}
.nc-dinner-stack {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 10px;
}
.nc-dinner-map-column {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nc-dinner-focus-head {
  display: none;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid rgba(126, 245, 195, 0.28);
  border-radius: 10px;
  background: rgba(5, 14, 11, 0.84);
}
.nc-dinner-focus-head.is-visible {
  display: flex;
}
.nc-dinner-focus-title {
  color: #d9ffef;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.nc-dinner-focus-legend {
  max-width: min(58%, 520px);
  color: #aeeed3;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  line-height: 1.45;
  text-align: right;
}
.nc-dinner-map-wrap {
  min-height: 500px;
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.nc-dinner-focus-actions {
  display: none;
  align-items: center;
  justify-content: center;
  padding-top: 2px;
}
.nc-dinner-focus-actions.is-visible {
  display: flex;
}
#nc-dinner-return-btn {
  min-width: 260px;
  max-width: min(82%, 420px);
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid rgba(138, 251, 212, 0.72);
  background:
    linear-gradient(
      150deg,
      rgba(12, 33, 25, 0.95),
      rgba(24, 57, 43, 0.95));
  color: #e7fff6;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: lowercase;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.44), 0 0 0 1px rgba(132, 245, 203, 0.18) inset;
  transition:
    box-shadow 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}
#nc-dinner-return-btn:hover,
#nc-dinner-return-btn:focus-visible {
  outline: none;
  border-color: rgba(177, 255, 226, 0.92);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.5),
    0 0 12px rgba(126, 247, 201, 0.24),
    0 0 0 1px rgba(170, 255, 223, 0.36) inset;
  transform: translateY(-1px);
}
.nc-dinner-panel {
  min-height: 0;
}
.nc-dinner-main-row {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 290px);
  gap: 10px;
  position: relative;
  isolation: isolate;
}
.nc-dinner-pull-panel {
  min-height: 500px;
  border: 1px solid rgba(16, 185, 129, 0.16);
  border-radius: 10px;
  background: rgba(4, 12, 9, 0.94);
  display: flex;
  flex-direction: column;
  padding: 8px;
  gap: 6px;
  position: relative;
  z-index: 3;
}
.nc-dinner-pull-title {
  color: #b8f6dc;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.01em;
}
.nc-dinner-pull-sub {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
}
.nc-dinner-guest-search {
  width: 100%;
  min-width: 0;
  background: rgba(5, 12, 9, 0.9);
  border: 1px solid rgba(16, 185, 129, 0.24);
  color: #d8ffeb;
  border-radius: 7px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  padding: 6px 8px;
}
.nc-dinner-guest-search:focus {
  outline: none;
  border-color: rgba(126, 245, 195, 0.72);
}
.nc-dinner-pull-list {
  flex: 1;
  min-height: 120px;
  overflow: auto;
  border: 1px solid rgba(16, 185, 129, 0.18);
  border-radius: 8px;
  background: rgba(4, 11, 8, 0.92);
  padding: 4px;
  color: #d6ffe8;
}
.nc-dinner-guest-list {
  flex: 1 1 auto;
  min-height: 220px;
}
.nc-dinner-guest-head {
  color: #8be9c2;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  padding: 4px 6px 6px;
}
.nc-dinner-guest-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 6px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
}
.nc-dinner-guest-item + .nc-dinner-guest-item {
  margin-top: 3px;
}
.nc-dinner-guest-item.is-active {
  border-color: rgba(126, 245, 195, 0.55);
  background: rgba(18, 42, 31, 0.64);
}
.nc-dinner-guest-item.is-host {
  border-color: rgba(255, 207, 128, 0.45);
}
.nc-dinner-guest-item.is-focus-host {
  border-color: rgba(126, 245, 195, 0.68);
  background: rgba(14, 39, 29, 0.72);
}
.nc-dinner-guest-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.nc-dinner-guest-name {
  color: #d6ffe8;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nc-dinner-guest-meta {
  color: #9feccd;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nc-dinner-guest-tag {
  flex: 0 0 auto;
  color: #ffe4ba;
  border: 1px solid rgba(255, 207, 128, 0.48);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.53rem;
  padding: 1px 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.nc-dinner-guest-actions {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nc-dinner-guest-connection-btn {
  border: 1px solid rgba(122, 236, 191, 0.42);
  background: rgba(13, 31, 23, 0.88);
  color: #bdf8de;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.03em;
  text-transform: lowercase;
  padding: 3px 8px;
  cursor: pointer;
  transition:
    border-color 140ms ease,
    background-color 140ms ease,
    color 140ms ease;
}
.nc-dinner-guest-connection-btn:hover,
.nc-dinner-guest-connection-btn:focus-visible {
  outline: none;
  border-color: rgba(156, 250, 212, 0.84);
  background: rgba(24, 52, 39, 0.94);
  color: #e5fff3;
}
.nc-dinner-guest-connection-btn.is-active {
  border-color: rgba(169, 253, 219, 0.92);
  background: rgba(32, 67, 50, 0.95);
  color: #f0fff8;
}
.nc-dinner-pull-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 6px;
  border-radius: 6px;
  border: 1px solid transparent;
}
.nc-dinner-pull-item + .nc-dinner-pull-item {
  margin-top: 3px;
}
.nc-dinner-pull-item.is-active {
  border-color: rgba(126, 245, 195, 0.55);
  background: rgba(18, 42, 31, 0.64);
}
.nc-dinner-pull-rank {
  width: 28px;
  color: #99e9c8;
  font-family: var(--font-mono);
  font-size: 0.62rem;
}
.nc-dinner-pull-name {
  flex: 1;
  min-width: 0;
  color: #d6ffe8;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nc-dinner-pull-score {
  color: #8be9c2;
  font-family: var(--font-mono);
  font-size: 0.62rem;
}
.nc-dinner-cluster-item {
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 5px 6px;
}
.nc-dinner-cluster-item + .nc-dinner-cluster-item {
  margin-top: 3px;
}
.nc-dinner-cluster-item.is-active {
  border-color: rgba(126, 245, 195, 0.55);
  background: rgba(18, 42, 31, 0.64);
}
.nc-dinner-cluster-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.nc-dinner-cluster-name {
  color: #d6ffe8;
  font-family: var(--font-mono);
  font-size: 0.65rem;
}
.nc-dinner-cluster-size {
  color: #8be9c2;
  font-family: var(--font-mono);
  font-size: 0.61rem;
}
.nc-dinner-cluster-meta {
  margin-top: 2px;
  color: #b8f6dc;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vault-picker-banner {
  margin: 8px calc(var(--vault-right-rail-width) + 12px) 0 12px;
  border: 1px solid rgba(14, 165, 233, 0.5);
  border-radius: 8px;
  background: rgba(3, 21, 33, 0.86);
  color: #cbeeff;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1.4;
  padding: 8px 10px;
  letter-spacing: 0.01em;
}
@media (max-width: 1150px) {
  .nc-cocktail-mode-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .nc-cocktail-mode-btn {
    width: 100%;
  }
  .nc-cocktail-chooser-head {
    flex-wrap: wrap;
  }
  .nc-cocktail-inline-search {
    width: 100%;
    max-width: none;
  }
  .nc-dinner-main-row {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(320px, 1fr) auto;
  }
  .nc-dinner-focus-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .nc-dinner-focus-legend {
    max-width: 100%;
    text-align: left;
  }
  .nc-dinner-pull-panel {
    min-height: 180px;
    max-height: 280px;
  }
  .nc-dinner-guest-list {
    min-height: 160px;
  }
}
.nc-cocktail-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(16, 185, 129, 0.18);
  border-radius: 10px;
  background: rgba(6, 14, 11, 0.72);
  padding: 8px 10px;
}
.nc-cocktail-inspector {
  min-height: 18px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nc-cocktail-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
@media (max-width: 1200px) {
  .nc-cocktail-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(240px, 1fr) minmax(240px, 1fr);
  }
}
@media (max-width: 880px) {
  .nc-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .nc-header-right {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .nc-cocktail-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .nc-cocktail-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .nc-map-controls-row {
    flex-direction: column;
    align-items: stretch;
  }
  .nc-spoke-limit-group {
    width: 100%;
    min-width: 0;
  }
  .nc-map-workspace {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(260px, 1fr) auto;
  }
  .nc-map-canvas-wrap {
    min-height: 300px;
  }
  .nc-opt-panel {
    min-height: 240px;
  }
  .nc-opt-actions {
    justify-content: stretch;
  }
  .nc-opt-actions .filter-btn {
    flex: 1;
  }
}
#food-chain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #050505;
  z-index: var(--z-foodchain);
  display: none;
  flex-direction: column;
  padding: 20px;
}
#food-chain-overlay.active {
  display: flex;
}
#food-chain-overlay.fc-integrated {
  top: 56px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #050505;
  border: none;
  border-radius: 0;
  backdrop-filter: none;
  padding: 0 20px 16px;
  z-index: var(--z-fc-controls);
}
#food-chain-overlay.fc-integrated .food-chain-header {
  display: none !important;
}
#food-chain-overlay.fc-integrated .food-chain-header h2 {
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: #cfe8ff;
}
#food-chain-overlay.fc-integrated .food-chain-header-actions .fc-insights-btn,
#food-chain-overlay.fc-integrated .food-chain-controls,
#food-chain-overlay.fc-integrated .food-chain-legend,
#food-chain-overlay.fc-integrated #fc-insights-panel {
  display: none !important;
}
#food-chain-overlay.fc-solar-mode .food-chain-legend,
#food-chain-overlay.fc-solar-mode #fc-insights-panel,
#food-chain-overlay.fc-solar-mode .food-chain-header-actions .fc-insights-btn {
  display: none !important;
}
#food-chain-overlay.fc-solar-mode .food-chain-viewport {
  cursor: grab;
}
.food-chain-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
  margin-bottom: 16px;
}
.food-chain-header h2 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--accent-purple);
  letter-spacing: 1px;
}
.food-chain-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.fc-view-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.42);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(8, 13, 24, 0.78);
}
.fc-view-btn {
  border: 0;
  border-right: 1px solid rgba(148, 163, 184, 0.3);
  background: transparent;
  color: rgba(191, 219, 254, 0.8);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 7px 10px;
  cursor: pointer;
  letter-spacing: 0.05em;
}
.fc-view-btn:last-child {
  border-right: 0;
}
.fc-view-btn.active {
  background: rgba(59, 130, 246, 0.26);
  color: #e6f2ff;
}
.fc-insights-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(168, 85, 247, 0.6);
  background: rgba(168, 85, 247, 0.1);
  color: var(--accent-purple);
  font-family: var(--font-mono);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.fc-insights-btn.active {
  background: rgba(168, 85, 247, 0.25);
  border-color: rgba(168, 85, 247, 1);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.35);
}
.fc-cluster-label {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  paint-order: stroke;
  stroke: rgba(0, 0, 0, 0.6);
  stroke-width: 3px;
}
.fc-insights-btn:hover {
  background: rgba(168, 85, 247, 0.2);
  border-color: rgba(168, 85, 247, 0.9);
}
.food-chain-controls {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
  min-height: 24px;
}
.fc-progress-track {
  width: 100%;
  height: 4px;
  background: var(--bg-hover);
  border-radius: 2px;
  overflow: hidden;
}
.fc-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent-purple);
  transition: width 0.2s ease;
}
.food-chain-viewport {
  flex: 1;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: #080808;
  position: relative;
  overflow: hidden;
  cursor: grab;
}
#food-chain-overlay.fc-integrated .food-chain-viewport {
  cursor: default;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background:
    radial-gradient(
      circle at 18% 14%,
      rgba(14, 165, 233, 0.16),
      rgba(14, 165, 233, 0) 45%),
    radial-gradient(
      circle at 86% 88%,
      rgba(59, 130, 246, 0.18),
      rgba(59, 130, 246, 0) 42%),
    linear-gradient(
      145deg,
      #04070d,
      #050b14 48%,
      #060912);
}
.fc-solar-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  perspective: 1200px;
}
.fc-solar-system {
  position: absolute;
  inset: 0;
  transform-origin: 50% 52%;
  transform-style: preserve-3d;
  will-change: transform;
}
.fc-solar-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.fc-solar-axis {
  stroke: rgba(191, 219, 254, 0.55);
  stroke-width: 1.2;
  stroke-dasharray: 5 6;
}
.fc-solar-axis-text {
  fill: rgba(219, 234, 254, 0.88);
  font-family: var(--font-mono);
  font-size: 10px;
}
.fc-solar-axis-mid {
  fill: rgba(156, 163, 175, 0.78);
  font-family: var(--font-mono);
  font-size: 9px;
}
.fc-solar-orbit {
  fill: none;
  stroke: rgba(148, 163, 184, 0.2);
  stroke-width: 1;
  stroke-dasharray: 3 5;
}
.fc-solar-ring {
  stroke: rgba(148, 163, 184, 0.24);
}
.fc-solar-planets {
  position: absolute;
  inset: 0;
}
.fc-solar-zoom-panel {
  position: absolute;
  right: 12px;
  bottom: 258px;
  width: min(280px, calc(100% - 24px));
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(8, 13, 24, 0.76);
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: rgba(226, 232, 240, 0.9);
  font-family: var(--font-mono);
  font-size: 10px;
  z-index: 470;
}
.fc-solar-zoom-panel label {
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(191, 219, 254, 0.95);
}
.fc-solar-zoom-panel input[type=range] {
  width: 100%;
  accent-color: #60a5fa;
}
#fc-solar-reset-btn {
  border: 1px solid rgba(148, 163, 184, 0.44);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.7);
  color: #dbeafe;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 8px;
  cursor: pointer;
}
#fc-solar-reset-btn:hover {
  border-color: rgba(147, 197, 253, 0.84);
  background: rgba(30, 64, 175, 0.4);
}
.fc-solar-filter {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: min(300px, calc(100% - 24px));
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(8, 13, 24, 0.76);
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: rgba(226, 232, 240, 0.9);
  font-family: var(--font-mono);
  font-size: 10px;
  z-index: 480;
}
.fc-solar-filter label {
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(191, 219, 254, 0.95);
}
.fc-solar-filter input[type=range] {
  width: 100%;
  accent-color: #60a5fa;
}
.fc-planet {
  position: absolute;
  border: 1px solid rgba(191, 219, 254, 0.34);
  border-radius: 50%;
  color: #ecf6ff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  user-select: none;
}
.fc-planet.fc-center-planet {
  width: 88px;
  height: 88px;
  background:
    radial-gradient(
      circle at 34% 30%,
      rgba(241, 245, 249, 0.72) 0%,
      rgba(59, 130, 246, 0.5) 45%,
      rgba(30, 64, 175, 0.34) 100%);
  box-shadow: 0 0 24px rgba(96, 165, 250, 0.3), inset 0 0 16px rgba(2, 6, 23, 0.35);
  z-index: 450;
  pointer-events: auto;
  text-transform: uppercase;
  cursor: pointer;
  transition: box-shadow 0.16s ease, border-color 0.16s ease;
}
.fc-planet.fc-center-planet:hover {
  border-color: rgba(219, 234, 254, 0.95);
  box-shadow: 0 0 26px rgba(125, 211, 252, 0.46), inset 0 0 20px rgba(2, 6, 23, 0.44);
}
.fc-planet.fc-center-planet span {
  font-size: 11px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}
.fc-planet.fc-orbit-planet {
  width: var(--planet-size);
  height: var(--planet-size);
  border-color: rgba(203, 213, 225, 0.42);
  background: transparent;
  box-shadow: 0 0 0 1px rgba(203, 213, 225, 0.1), inset 0 0 12px rgba(15, 23, 42, 0.42);
  opacity: 0.92;
  transition: box-shadow 0.16s ease, border-color 0.16s ease;
  cursor: pointer;
  padding: 0;
  overflow: hidden;
}
.fc-planet.fc-orbit-planet:hover {
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow:
    0 0 18px rgba(191, 219, 254, 0.55),
    0 0 calc(24px * var(--planet-pop)) rgba(96, 165, 250, 0.55),
    inset 0 0 14px rgba(15, 23, 42, 0.5);
}
.fc-planet-initial {
  position: relative;
  z-index: 2;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(8px, calc(var(--planet-size) * 0.22), 12px);
  letter-spacing: 0.02em;
  color: rgba(241, 245, 249, 0.98);
  text-shadow: 0 1px 4px rgba(2, 6, 23, 0.85);
  pointer-events: none;
  user-select: none;
}
.fc-planet-surface {
  position: absolute;
  inset: -1%;
  border-radius: 50%;
  background:
    radial-gradient(
      circle at 32% 22%,
      rgba(248, 250, 252, 0.74) 0%,
      rgba(var(--planet-r), var(--planet-g), var(--planet-b), 0.5) 46%,
      rgba(var(--planet-r), var(--planet-g), var(--planet-b), 0.28) 100%);
  opacity: 0.92;
  filter: saturate(1.06);
  box-shadow: inset 0 0 16px rgba(2, 6, 23, 0.42);
}
.fc-solar-legend-box {
  position: absolute;
  right: 12px;
  bottom: 90px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(8, 13, 24, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: rgba(226, 232, 240, 0.92);
  font-size: 10px;
  line-height: 1.45;
  font-family: var(--font-mono);
  min-width: 220px;
  z-index: 470;
}
.fc-solar-legend-title {
  color: #dbeafe;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.fc-solar-legend-row {
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(191, 219, 254, 0.85);
}
.food-chain-viewport.is-dragging,
.food-chain-viewport.is-dragging * {
  cursor: grabbing !important;
}
.food-chain-legend {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.legend-dot.blue {
  background: var(--accent-primary);
  box-shadow: 0 0 8px var(--accent-primary);
}
.legend-dot.grey {
  background: #666;
}
.fc-insights-panel {
  position: absolute;
  top: 78px;
  right: 20px;
  width: 720px;
  max-height: none;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px;
  display: none;
  flex-direction: column;
  gap: 10px;
  z-index: var(--z-fc-controls);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
.fc-insights-panel.active {
  display: flex;
}
.fc-insights-panel.single .fc-insights-grid {
  grid-template-columns: 1fr;
}
.fc-insights-panel.single {
  width: 820px;
}
.fc-insights-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.fc-insights-title {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.fc-insights-body {
  font-size: 0.8rem;
  color: var(--text-main);
  overflow-y: visible;
}
.fc-insights-progress {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fc-insights-progress-bar {
  height: 6px;
  background: var(--bg-hover);
  border-radius: 999px;
  overflow: hidden;
}
.fc-insights-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent-purple);
  transition: width 0.2s ease;
}
.fc-insights-debug {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
}
.fc-insights-muted {
  color: var(--text-muted);
  font-size: 0.75rem;
}
.fc-insight-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
}
.fc-insight-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 6px 8px;
  background: var(--bg-body);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
}
.fc-insight-word {
  font-family: var(--font-mono);
  color: var(--accent-primary);
  font-size: 0.78rem;
}
.fc-insight-metric {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
}
.fc-insights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  height: 100%;
}
.fc-insight-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-body);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px;
  min-height: 0;
}
.fc-section-pulse {
  animation: fcPulse 1.1s ease;
}
@keyframes fcPulse {
  0% {
    box-shadow: 0 0 0 rgba(168, 85, 247, 0.0);
    border-color: var(--border-subtle);
  }
  40% {
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.35);
    border-color: rgba(168, 85, 247, 0.7);
  }
  100% {
    box-shadow: 0 0 0 rgba(168, 85, 247, 0.0);
    border-color: var(--border-subtle);
  }
}
.fc-insight-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.info-tip {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  cursor: help;
  position: relative;
}
.info-tip::after {
  content: attr(data-tip);
  position: absolute;
  right: 0;
  top: 24px;
  min-width: 220px;
  max-width: 260px;
  background: #0a0a0a;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.7rem;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: var(--z-fc-tooltip);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.info-tip:hover::after {
  opacity: 1;
  transform: translateY(0);
}
.fc-axis-line {
  stroke: #333;
  stroke-width: 1;
  stroke-dasharray: 4 4;
}
.fc-axis-solid {
  stroke: #444;
  stroke-width: 1;
}
.fc-text {
  fill: #666;
  font-size: 10px;
  font-family: var(--font-mono);
}
.fc-bubble {
  transition: all 0.2s;
  cursor: pointer;
  stroke: rgba(0, 0, 0, 0.5);
  stroke-width: 1;
}
.fc-bubble:hover {
  stroke: white;
  stroke-width: 2;
  fill-opacity: 1 !important;
}
.fc-label {
  font-size: 10px;
  fill: #eee;
  pointer-events: none;
  font-family: sans-serif;
  font-weight: 600;
  text-anchor: middle;
  dominant-baseline: middle;
}
.fc-tooltip {
  position: absolute;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid var(--border-subtle);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  color: #eee;
  z-index: var(--z-overlay-tooltip);
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.1s;
}
@media (max-width: 1180px) {
  #food-chain-overlay.fc-integrated {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
  .fc-solar-axis-text {
    font-size: 9px;
  }
  .fc-solar-legend-box {
    min-width: 180px;
    font-size: 9px;
    right: 8px;
    bottom: 90px;
  }
  .fc-solar-zoom-panel {
    right: 8px;
    bottom: 248px;
    width: min(250px, calc(100% - 16px));
  }
  .fc-solar-filter {
    width: min(270px, calc(100% - 16px));
    bottom: 8px;
    right: 8px;
  }
}
.h2h-citation-info {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  padding: 6px 10px;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 4px;
  border-left: 2px solid var(--accent-purple);
  cursor: pointer;
  transition: background 0.2s;
  display: inline-block;
}
.h2h-citation-info:hover {
  background: rgba(139, 92, 246, 0.2);
}
.citation-arrow {
  margin-right: 6px;
  color: var(--accent-purple);
}
.citation-count-link {
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  cursor: pointer;
}
.h2h-child-item {
  margin-top: 12px;
  position: relative;
}
.h2h-child-item .article {
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  background: var(--bg-panel);
}
.h2h-group-container {
  margin-bottom: 16px;
}
.h2h-highlight-a {
  border-left: 4px solid #FDB927 !important;
  background: rgba(253, 185, 39, 0.1) !important;
}
.h2h-highlight-a .network-item-title {
  color: #FDB927 !important;
}
.h2h-highlight-b {
  border-left: 4px solid #552583 !important;
  background: rgba(85, 37, 131, 0.15) !important;
}
.h2h-highlight-b .network-item-title {
  color: #a06bd4 !important;
}
.network-item.h2h-highlight-a,
.network-item.h2h-highlight-b {
  order: -5 !important;
}
.h2h-name-yellow {
  color: #FDB927 !important;
  text-shadow: 0 0 10px rgba(253, 185, 39, 0.3);
}
.h2h-name-purple {
  color: #a06bd4 !important;
  text-shadow: 0 0 10px rgba(85, 37, 131, 0.5);
}

/* styles.tail.css */
@media (hover: none) and (pointer: coarse) {
  .paper-card:hover,
  .tab-button:hover,
  .author-card:hover {
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1) !important;
  }
  .tooltip {
    display: none !important;
  }
}
@media (max-width: 1024px) {
  #vault-overlay {
    --vault-right-rail-width: 332px;
  }
  html {
    scroll-behavior: smooth;
  }
}
@media (max-width: 1024px) {
  .feed-container {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px;
  }
  .tab-bar {
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 12px;
  }
  .tab-button {
    font-size: 13px;
    padding: 6px 10px;
  }
  .tab-search-container {
    width: auto;
    min-width: 180px;
  }
  .tab-search-input {
    font-size: 12px;
    padding: 4px 8px;
  }
  .author-overlay {
    width: 100% !important;
    max-width: 100%;
    right: 0 !important;
    position: fixed;
    bottom: 0;
    top: 56px;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  .author-overlay-content {
    overflow-y: auto;
    max-height: calc(100vh - 56px);
  }
  .vault-card {
    max-width: 90vw !important;
  }
  .vault-controls-bar {
    right: calc(var(--vault-right-rail-width) + 16px);
    max-width: calc(100vw - var(--vault-right-rail-width) - 28px);
  }
  .vault-connection-view-btn {
    font-size: 0.64rem !important;
    padding: 7px 9px !important;
  }
  .vault-right-rail {
    top: calc(var(--header-height) + 50px);
    right: 0;
    bottom: 0;
    width: var(--vault-right-rail-width);
    max-height: none;
    padding: 10px 10px 14px;
  }
  .vault-recommendations-panel {
    min-height: 180px;
  }
  .following-sidebar {
    display: none;
  }
  .following-container {
    width: 100%;
  }
  .search-input {
    max-width: 100%;
  }
  .food-chain-insights-panel {
    width: 100% !important;
    max-width: 100%;
    max-height: 300px;
  }
  .header {
    height: auto;
    padding: 8px 12px;
  }
  .paper-card {
    padding: 12px;
  }
  .paper-title {
    font-size: 14px;
  }
  .paper-authors {
    font-size: 12px;
  }
  .paper-abstract {
    font-size: 12px;
    max-height: 60px;
  }
  .home-steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .home-step {
    transform: none !important;
    margin-left: 0;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  #vault-overlay {
    --vault-right-rail-width: 0px;
  }
  .feed-container {
    grid-template-columns: 1fr !important;
    gap: 12px;
    padding: 0 12px;
  }
  header {
    height: auto;
    flex-wrap: wrap;
    padding: 8px 12px;
  }
  .header-left {
    width: 100%;
    margin-bottom: 8px;
  }
  .controls {
    width: 100%;
    gap: 8px;
    flex-wrap: wrap;
  }
  .tab-search-inputs {
    flex: 1 1 220px;
    min-width: 0;
  }
  .tab-search-bar {
    width: 100%;
    min-width: 0;
  }
  .header-menu-controls {
    margin-left: auto;
  }
  .search-results-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .search-custom-time.active {
    grid-template-columns: 1fr;
  }
  .search-time-mode-pills {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .search-results-stack {
    padding: 10px 10px 24px;
  }
  .author-search-row {
    gap: 8px;
    padding: 11px;
  }
  .author-search-top {
    flex-direction: column;
  }
  .author-search-header-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .author-search-papers-title {
    padding-top: 6px;
  }
  .top-nav-tabs .tabs-scroll-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    gap: 4px;
    padding: 8px 12px;
    -webkit-overflow-scrolling: touch;
  }
  .top-nav-tabs .tabs-scroll-wrapper::-webkit-scrollbar {
    height: 4px;
  }
  .top-nav-tabs .tabs-scroll-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
  }
  .top-nav-tabs .tabs-scroll-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
  }
  .tab {
    flex-shrink: 0;
    font-size: 12px;
    padding: 6px 12px;
    white-space: nowrap;
  }
  .tab-search-inputs {
    display: flex;
  }
  #author-overlay {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    right: 0 !important;
    top: 0 !important;
    left: 0 !important;
    border: none;
    z-index: var(--z-author);
  }
  #author-overlay .author-content {
    max-height: 100vh;
    overflow-y: auto;
  }
  .vault-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .vault-card {
    max-width: 100vw !important;
    width: 100%;
    transform: none !important;
    opacity: 1 !important;
    position: static !important;
    margin: 0 !important;
  }
  .vault-card:not(.vault-card-active) {
    display: none;
  }
  .vault-spine {
    display: none !important;
  }
  .vault-controls-bar {
    position: sticky;
    bottom: 0;
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: stretch;
    gap: 8px;
    padding: 12px;
  }
  .vault-connection-view-toggle {
    width: 100%;
  }
  .vault-connection-view-btn {
    flex: 1;
    justify-content: center;
    min-width: 0;
  }
  .vault-zotero-controls {
    width: 100%;
  }
  .vault-zotero-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .zotero-logo-btn {
    width: 52px;
    height: 52px;
  }
  .zotero-panel {
    position: static;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    width: 100%;
    max-height: 42vh;
    overflow-y: auto;
  }
  .vault-right-rail {
    position: static;
    width: 100%;
    max-height: none;
    padding: 0 12px;
    background: transparent;
    border-left: none;
    box-shadow: none;
  }
  .vault-recommendations-panel {
    max-height: 230px;
  }
  .vault-connections-bar,
  .vault-viewport {
    margin-right: 0;
  }
  .vault-connections-bar {
    min-height: 136px;
    padding: 8px 0 6px;
  }
  .vault-connections-svg-cocktail {
    height: 208px;
  }
  .vault-picker-banner {
    margin-right: 12px;
  }
  .paper-family-tree-body {
    grid-template-columns: 1fr;
  }
  .paper-family-tree-axis {
    border-right: 0;
    border-bottom: 1px solid rgba(56, 189, 248, 0.2);
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
  }
  .paper-family-tree-axis-note {
    display: none;
  }
  .paper-family-tree-timeline {
    display: none;
  }
  .paper-family-single-cites {
    display: none;
  }
  .paper-family-tree-header {
    padding: 10px 12px 8px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .paper-family-tree-subtitle {
    max-width: 100%;
  }
  .paper-family-tree-progress {
    width: 100%;
    padding: 8px 9px;
  }
  .paper-family-tree-progress-meta {
    flex-direction: column;
    gap: 2px;
  }
  .paper-family-tree-debug-lines {
    max-height: 132px;
  }
  .paper-family-tree-canvas {
    width: max(100%, 760px);
    min-height: 700px;
  }
  .paper-family-root-card {
    width: min(460px, calc(100vw - 48px));
    grid-template-columns: 38px 1fr;
    gap: 10px;
  }
  .paper-family-root-label {
    grid-column: 1 / -1;
    width: fit-content;
  }
  .paper-family-node-card {
    width: 188px;
    min-height: 88px;
    padding: 8px;
  }
  .home-steps {
    flex-direction: column;
    gap: 20px;
  }
  .home-step {
    transform: none !important;
    margin-left: 0;
  }
  .home-step-number {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .paper-card {
    padding: 10px;
  }
  .paper-title {
    font-size: 13px;
    line-height: 1.3;
  }
  .paper-authors {
    font-size: 11px;
  }
  .paper-abstract {
    font-size: 11px;
    max-height: 50px;
    line-height: 1.4;
  }
  .paper-meta {
    font-size: 10px;
  }
  .paper-badge {
    font-size: 9px;
    padding: 2px 6px;
  }
  .following-layout {
    flex-direction: column;
  }
  .following-sidebar {
    display: none;
    width: 100%;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  .following-sidebar.mobile-expanded {
    display: block;
  }
  .following-container {
    width: 100%;
  }
  .following-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .search-controls-bar {
    flex-direction: column;
    gap: 12px;
  }
  .search-time-filters {
    flex-wrap: wrap;
    gap: 8px;
  }
  .search-time-filter {
    font-size: 12px;
    padding: 6px 10px;
  }
  .search-input {
    width: 100%;
    font-size: 14px;
    padding: 10px 12px;
  }
  .food-chain-container {
    display: none !important;
  }
  .food-chain-mobile-message {
    display: block;
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
  }
  .h2h-overlay {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    right: 0 !important;
    top: 0 !important;
    left: 0 !important;
    border: none;
    z-index: var(--z-h2h-overlay);
  }
  .h2h-overlay-content {
    max-height: 100vh;
    overflow-y: auto;
  }
  .h2h-close-btn {
    position: sticky;
    top: 0;
    margin-bottom: 16px;
  }
  .modal {
    width: calc(100% - 24px) !important;
    max-width: 100% !important;
    max-height: 90vh !important;
    margin: 0 12px !important;
    padding: 16px !important;
  }
  .modal-header {
    margin-bottom: 12px;
  }
  .modal-title {
    font-size: 16px;
  }
  .export-dropdown {
    width: 100% !important;
    max-width: 100%;
  }
  .export-option {
    padding: 10px 12px;
    font-size: 12px;
  }
  .time-filter-button {
    font-size: 11px;
    padding: 4px 8px;
  }
  main {
    padding: 0 !important;
  }
  .search-container {
    padding: 12px 0;
  }
  button,
  .tab-button,
  .paper-card,
  a {
    min-height: 44px;
    min-width: 44px;
  }
  .tab-button {
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
  }
  .nav-link {
    padding: 12px 16px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .shortcut-hint {
    display: none !important;
  }
  .author-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .side-panel {
    width: 100%;
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    z-index: var(--z-mobile-side-panel);
  }
  .paper-title-with-badges {
    flex-wrap: wrap;
    gap: 6px;
  }
  * {
    margin-collapse: discard;
  }
  .paper-card {
    margin-bottom: 0;
  }
  body {
    font-size: 14px;
  }
  .section-title {
    font-size: 16px;
  }
  .overlay-backdrop {
    background-color: rgba(0, 0, 0, 0.8);
    z-index: var(--z-mobile-backdrop);
  }
}
@media (max-width: 480px) {
  body {
    font-size: 13px;
  }
  .section-title {
    font-size: 14px;
  }
  .paper-title {
    font-size: 12px;
  }
  .paper-authors {
    font-size: 10px;
  }
  .paper-abstract {
    font-size: 10px;
    max-height: 40px;
  }
  .paper-meta {
    font-size: 9px;
  }
  header {
    height: auto;
    padding: 6px 12px;
  }
  .header-left {
    font-size: 14px;
    margin-bottom: 6px;
  }
  .controls {
    gap: 6px;
  }
  .top-nav-tabs .tabs-scroll-wrapper {
    position: relative;
    gap: 2px;
    padding: 6px 12px;
  }
  .top-nav-tabs .tabs-scroll-wrapper::after {
    content: "\2192  Swipe to see more tabs";
    position: absolute;
    right: 12px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 9px;
    pointer-events: none;
    animation: slideAnimation 2s infinite;
  }
  @keyframes slideAnimation {
    0%, 100% {
      opacity: 0.4;
    }
    50% {
      opacity: 1;
    }
  }
  .tab {
    font-size: 11px;
    padding: 5px 10px;
    min-height: 40px;
  }
  .time-filter-button {
    font-size: 10px;
    padding: 3px 6px;
    min-height: 40px;
  }
  .search-time-filters {
    gap: 4px;
  }
  .paper-card {
    padding: 8px;
    gap: 6px;
  }
  .paper-meta {
    gap: 8px;
  }
  .paper-badge {
    font-size: 8px;
    padding: 1px 4px;
  }
  .feed-container {
    padding: 0 8px;
    gap: 10px;
  }
  .modal {
    width: calc(100% - 16px) !important;
    margin: 0 8px !important;
    padding: 12px !important;
  }
  .modal-title {
    font-size: 14px;
  }
  .modal-body {
    font-size: 12px;
  }
  button,
  .tab-button,
  .nav-link {
    min-height: 40px;
    padding: 8px 12px;
  }
  .following-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .home-step {
    margin-bottom: 16px;
  }
  .home-step-number {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
  .home-step-text {
    font-size: 12px;
  }
  .search-input {
    font-size: 13px;
    padding: 8px 10px;
  }
  .paper-authors {
    margin-bottom: 4px;
  }
  .paper-abstract {
    margin-bottom: 4px;
  }
  .tab-search-container {
    display: none !important;
  }
  .vault-card {
    padding: 12px;
  }
  .vault-card-title {
    font-size: 14px;
  }
  .author-overlay {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .author-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .icon-button {
    min-width: 40px;
    min-height: 40px;
    padding: 8px;
  }
  input[type=text],
  input[type=search],
  textarea {
    font-size: 16px;
    padding: 10px 12px;
    min-height: 44px;
  }
  .flex-container {
    gap: 8px;
  }
}
@media (max-height: 500px) and (max-width: 768px) {
  .header {
    height: auto;
    padding: 4px 12px;
  }
  .header-logo {
    font-size: 14px;
    margin-bottom: 0;
  }
  .tab-bar {
    padding: 4px 12px;
    gap: 2px;
  }
  .tab-button {
    padding: 4px 8px;
    font-size: 11px;
    min-height: 36px;
  }
  .feed-container {
    padding: 0 8px;
  }
  .paper-card {
    padding: 8px;
  }
  .paper-abstract {
    display: none;
  }
}
.home-cta-btn {
  display: inline-block;
  margin-top: 24px;
  padding: 14px 36px;
  background: var(--accent-primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 0.5px;
}
.home-cta-btn:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
}
.home-social-proof {
  text-align: center;
  margin: 20px 0;
  padding: 12px 20px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: var(--bg-panel);
}
.home-social-proof p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
}
.home-social-proof strong {
  color: var(--accent-primary);
}
.home-demo-hint {
  text-align: center;
  margin: 16px 0 28px;
  padding: 14px 24px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 8px;
  animation: demoHintPulse 3s ease-in-out infinite;
}
.home-demo-hint p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-main);
}
@keyframes demoHintPulse {
  0%, 100% {
    border-color: rgba(59, 130, 246, 0.2);
  }
  50% {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
  }
}
.home-why-syncite {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--border-subtle);
}
.home-why-syncite h2 {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
  margin: 0 0 20px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
}
.why-syncite-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s;
}
.why-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(59, 130, 246, 0.1);
}
.why-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}
.why-card h3 {
  font-size: 1rem;
  color: var(--text-main);
  margin: 0 0 8px 0;
  font-weight: 600;
}
.why-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}
.home-signup-section {
  margin-top: 50px;
  padding: 40px 0;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}
.signup-content {
  max-width: 480px;
  margin: 0 auto;
}
.signup-content h3 {
  font-size: 1.2rem;
  color: var(--text-main);
  margin: 0 0 8px 0;
  font-weight: 600;
}
.signup-content > p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 20px 0;
  line-height: 1.6;
}
.signup-form {
  display: flex;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto 12px;
}
.signup-form input[type=email] {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-main);
  font-size: 0.9rem;
  font-family: var(--font-sans);
  transition: border-color 0.2s;
}
.signup-form input[type=email]:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px var(--accent-glow);
}
.signup-btn {
  padding: 12px 24px;
  background: var(--accent-primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.signup-btn:hover {
  background: #2563eb;
}
.signup-success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 8px;
  color: var(--accent-secondary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin-bottom: 12px;
}
.signup-note {
  font-size: 0.75rem !important;
  color: var(--text-dim) !important;
  font-style: italic;
}
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 1.4rem;
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
  flex-shrink: 0;
}
.mobile-menu-btn:hover {
  background: var(--bg-hover);
  border-color: var(--accent-primary);
}
#journal-subnav-wrapper {
  display: flex;
  align-items: center;
  gap: 2px;
  width: max-content;
  min-width: max-content;
}
#onboarding-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-onboarding);
  pointer-events: none;
}
.onboarding-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  pointer-events: auto;
}
.onboarding-tooltip {
  position: fixed;
  background: var(--bg-card);
  border: 2px solid var(--accent-primary);
  border-radius: 12px;
  padding: 20px 24px;
  max-width: 340px;
  width: 90%;
  z-index: var(--z-onboarding-content);
  pointer-events: auto;
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.3), 0 0 60px rgba(59, 130, 246, 0.1);
  animation: tooltipAppear 0.3s ease;
}
@keyframes tooltipAppear {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.onboarding-step-indicator {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}
.onboarding-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-subtle);
  transition: all 0.3s;
}
.onboarding-dot.active {
  background: var(--accent-primary);
  box-shadow: 0 0 8px var(--accent-primary);
}
.onboarding-dot.done {
  background: var(--accent-secondary);
}
.onboarding-text {
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.6;
  margin: 0 0 16px 0;
}
.onboarding-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.onboarding-skip {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 6px 0;
  font-family: var(--font-mono);
  transition: color 0.2s;
}
.onboarding-skip:hover {
  color: var(--text-main);
}
.onboarding-next {
  padding: 8px 20px;
  background: var(--accent-primary);
  color: white;
  border: none;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.onboarding-next:hover {
  background: #2563eb;
}
.onboarding-highlight {
  position: relative;
  z-index: var(--z-onboarding-tooltip) !important;
  box-shadow: 0 0 0 4px var(--accent-primary), 0 0 20px rgba(59, 130, 246, 0.5) !important;
  border-radius: 4px;
}
.vault-sync-prompt {
  position: absolute;
  bottom: 16px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 8px;
  z-index: var(--z-vault-chrome);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}
.vault-sync-icon {
  font-size: 1rem;
}
.vault-sync-text {
  color: var(--text-muted);
}
.vault-sync-btn {
  background: transparent;
  border: none;
  color: var(--accent-vault);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}
.vault-sync-btn:hover {
  color: #fff;
}
.vault-share-btn {
  background: rgba(14, 165, 233, 0.1) !important;
  border-color: rgba(14, 165, 233, 0.3) !important;
  color: var(--accent-vault) !important;
}
.vault-share-btn:hover {
  background: rgba(14, 165, 233, 0.2) !important;
  border-color: var(--accent-vault) !important;
}
.fc-insights-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: auto;
  min-width: 50px;
  height: auto;
  padding: 6px 10px;
}
.fc-btn-icon {
  font-size: 1rem;
  line-height: 1;
}
.fc-btn-label {
  font-size: 0.55rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  opacity: 0.7;
}
.shortcuts-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: var(--z-shortcuts-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}
.shortcuts-modal {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 32px;
  max-width: 520px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}
.shortcuts-modal h3 {
  margin: 0 0 20px 0;
  color: var(--text-main);
  font-size: 1.1rem;
}
.shortcut-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.shortcut-row:last-child {
  border-bottom: none;
}
.shortcut-key {
  display: inline-block;
  padding: 3px 10px;
  background: var(--bg-panel);
  border: 1px solid var(--border-active);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-primary);
  min-width: 32px;
  text-align: center;
}
.shortcut-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
}
.shortcuts-section-title {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 16px;
  margin-bottom: 8px;
  font-family: var(--font-mono);
}
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .top-nav-tabs .tabs-scroll-wrapper {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-body);
    border-bottom: 1px solid var(--border-subtle);
    z-index: var(--z-mobile-menu);
    padding: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }
  .top-nav-tabs .tabs-scroll-wrapper.mobile-open {
    display: flex;
  }
  .top-nav-tabs .tabs-scroll-wrapper .tab {
    padding: 12px 16px;
    border-bottom: none;
    border-left: 2px solid transparent;
  }
  .top-nav-tabs .tabs-scroll-wrapper .tab.active {
    border-left-color: var(--accent-primary);
    border-bottom: none;
  }
  .top-nav-tabs .tabs-scroll-wrapper .tab-search-inputs {
    margin: 8px 0;
    flex-direction: column;
    width: 100%;
  }
  .top-nav-tabs .tabs-scroll-wrapper .tab-search-bar {
    width: 100%;
  }
  .top-nav-tabs {
    position: relative;
  }
  .why-syncite-grid {
    grid-template-columns: 1fr;
  }
  .signup-form {
    flex-direction: column;
  }
  .signup-btn {
    width: 100%;
  }
  .vault-sync-prompt {
    position: relative;
    bottom: auto;
    left: auto;
    margin: 8px 16px;
    flex-wrap: wrap;
  }
  .fc-btn-label {
    display: none;
  }
}
.auth-header-section {
  display: flex;
  align-items: center;
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid var(--border-subtle);
}
.auth-header-btn {
  background: transparent;
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.5px;
}
.auth-header-btn:hover {
  background: var(--accent-primary);
  color: white;
}
.auth-user-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}
.auth-user-email {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-secondary);
  font-weight: 500;
}
.auth-signout-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}
.auth-signout-btn:hover {
  border-color: var(--accent-alert);
  color: var(--accent-alert);
}
#auth-modal {
  background: transparent;
  align-items: flex-start;
  justify-content: flex-end;
  padding-top: calc(var(--header-height) + 6px);
  padding-right: 24px;
  pointer-events: none;
  z-index: var(--z-auth-modal);
}
#auth-modal.active {
  pointer-events: none;
}
#auth-modal .auth-modal-inner {
  pointer-events: auto;
  max-width: 300px;
  width: 90vw;
  padding: 20px 24px;
  border-color: var(--border-active);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7);
  border-radius: 10px;
}
.auth-modal-inner {
  max-width: 420px;
}
.auth-modal-inner h3 {
  margin: 0 0 8px 0;
  color: var(--text-main);
}
.auth-modal-inner p {
  margin: 0 0 16px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
.auth-modal-inner form input[type=email] {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: var(--text-main);
  font-size: 0.9rem;
  margin-bottom: 16px;
  font-family: var(--font-sans);
}
.auth-modal-inner form input[type=email]:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px var(--accent-glow);
}
.auth-note {
  font-size: 0.75rem !important;
  color: var(--text-dim) !important;
  margin-top: 12px !important;
  font-style: italic;
}
.auth-check-animation {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}
.auth-check-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  border: 2px solid var(--accent-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--accent-secondary);
  animation: checkPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes checkPop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
.vault-sync-email {
  color: var(--accent-secondary);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
}
.neuroverse-onboarding-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: var(--z-neuroverse-modal);
}
.neuroverse-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 6, 17, 0.64);
  backdrop-filter: blur(5px);
}
.neuroverse-modal {
  position: relative;
  width: min(980px, calc(100vw - 28px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  border-radius: 16px;
  border: 1px solid rgba(125, 211, 252, 0.34);
  background:
    radial-gradient(
      circle at 12% 8%,
      rgba(14, 165, 233, 0.18),
      rgba(14, 165, 233, 0) 46%),
    radial-gradient(
      circle at 88% 96%,
      rgba(29, 78, 216, 0.2),
      rgba(29, 78, 216, 0) 44%),
    linear-gradient(
      145deg,
      rgba(2, 6, 23, 0.97),
      rgba(7, 11, 25, 0.97));
  box-shadow: 0 20px 70px rgba(2, 6, 23, 0.7);
  padding: 24px 26px 20px;
}
.neuroverse-modal h2 {
  margin: 0;
  font-size: 1.45rem;
  color: #e2e8f0;
  letter-spacing: 0.03em;
}
.nv-subtitle {
  margin: 8px 0 12px;
  color: rgba(226, 232, 240, 0.84);
  font-size: 0.9rem;
}
.nv-galaxy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.nv-galaxy {
  border: 1px solid rgba(125, 211, 252, 0.44);
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.18);
  color: #e2e8f0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 7px 12px;
}
.nv-galaxy.disabled {
  border-color: rgba(100, 116, 139, 0.45);
  background: rgba(51, 65, 85, 0.35);
  color: rgba(148, 163, 184, 0.7);
}
.nv-categories-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.nv-category-dropdown {
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 10px;
  background: rgba(10, 18, 33, 0.72);
  overflow: hidden;
}
.nv-category-dropdown > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  color: #e2e8f0;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(15, 23, 42, 0.82);
}
.nv-category-dropdown > summary::-webkit-details-marker {
  display: none;
}
.nv-category-dropdown > summary label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.nv-caret {
  color: rgba(125, 211, 252, 0.9);
}
.nv-sub-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  padding: 10px 12px 12px;
}
.nv-sub-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(226, 232, 240, 0.88);
  font-size: 0.78rem;
  line-height: 1.3;
}
.nv-footer {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.nv-counter {
  color: rgba(191, 219, 254, 0.9);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}
.nv-enter-btn {
  border: 1px solid rgba(125, 211, 252, 0.6);
  border-radius: 10px;
  background:
    linear-gradient(
      140deg,
      rgba(14, 165, 233, 0.9),
      rgba(37, 99, 235, 0.85));
  color: #eff6ff;
  padding: 9px 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.nv-enter-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
@media (max-width: 768px) {
  .auth-header-section {
    border-left: none;
    margin-left: 8px;
    padding-left: 0;
  }
  .auth-header-btn {
    padding: 6px 10px;
    font-size: 0.65rem;
  }
  .auth-user-badge {
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
  }
  .auth-user-email {
    font-size: 0.6rem;
  }
  .neuroverse-modal {
    padding: 18px 16px 16px;
    width: calc(100vw - 16px);
    border-radius: 12px;
  }
  .nv-categories-grid {
    grid-template-columns: 1fr;
  }
  .nv-sub-list {
    grid-template-columns: 1fr;
  }
  .nv-footer {
    flex-direction: column;
    align-items: stretch;
  }
}
.tab.browse-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
  padding: 0 16px;
  height: var(--header-height);
}
.browse-title {
  font-size: 1rem;
  font-weight: 600;
}
.browse-subtitle {
  font-size: 0.6rem;
  font-weight: 400;
  opacity: 0.7;
  text-transform: lowercase;
}
.tabs.sub-tabs {
  position: sticky;
  top: 0;
  z-index: 10;
  margin-bottom: 0;
  background: rgba(13, 13, 15, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-subtle);
  min-height: 30px;
  padding: 0 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 0;
}
.journal-mode-controls {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  margin-right: 8px;
}
.sub-tabs .journal-mode-tab {
  padding: 0 10px;
  height: 28px;
  min-height: 28px;
  font-size: 0.66rem;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}
.journal-fixed-divider {
  flex: 0 0 auto;
  width: 1px;
  height: 16px;
  background: var(--border-subtle);
  margin-right: 10px;
}
.journal-scroll-region {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.journal-scroll-region::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}
.sub-tabs .tab {
  font-size: 0.68rem;
  padding: 0 12px;
  height: 28px;
  min-height: 28px;
  border-bottom-width: 1px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  flex: 0 0 auto;
  color: #a2a8b8;
}
.sub-tabs .tab.active {
  color: #e8ecf5;
}
.sub-tabs .journal-subtab[data-journal-id=cell],
.sub-tabs .journal-subtab[data-journal-id=cellrep],
.sub-tabs .journal-subtab[data-journal-id=neuron],
.sub-tabs .journal-subtab[data-journal-id=currbio] {
  font-family: "Times New Roman", serif;
  font-size: 0.84rem;
  font-weight: 600;
}
.sub-tabs .journal-subtab[data-journal-id=nature],
.sub-tabs .journal-subtab[data-journal-id=nrn],
.sub-tabs .journal-subtab[data-journal-id=natneuro],
.sub-tabs .journal-subtab[data-journal-id=nathumbehav],
.sub-tabs .journal-subtab[data-journal-id=natcomms],
.sub-tabs .journal-subtab[data-journal-id=science],
.sub-tabs .journal-subtab[data-journal-id=sciadv] {
  font-family: Georgia, serif;
  font-size: 0.71rem;
}
.sub-tabs .journal-subtab[data-journal-id=lancetneuro],
.sub-tabs .journal-subtab[data-journal-id=pnas],
.sub-tabs .journal-subtab[data-journal-id=plosbio] {
  font-family: Georgia, serif;
}
.sub-tabs .journal-subtab[data-journal-id=jneurosci],
.sub-tabs .journal-subtab[data-journal-id=jneurophys],
.sub-tabs .journal-subtab[data-journal-id=jcogneuro],
.sub-tabs .journal-subtab[data-journal-id=cerebcortex] {
  letter-spacing: 0.03em;
}
.browse-layout {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 16px;
  flex: 1;
  min-height: 0;
  padding: 0 16px;
  overflow: hidden;
}
.browse-left-filters {
  display: none;
  flex: 0 0 230px;
  width: 230px;
  min-height: 0;
  padding: 10px 0 40px;
  overflow-y: auto;
  overflow-x: hidden;
  gap: 10px;
  flex-direction: column;
}
#browse-container.all-journals-mode .browse-left-filters {
  display: flex;
}
.browse-timeline {
  flex: 0 0 320px;
  width: 320px;
  min-height: 0;
  padding: 10px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  position: relative;
}
.browse-timeline-status {
  position: absolute;
  top: 6px;
  left: 8px;
  right: 8px;
  min-height: 0;
  font-size: 0.63rem;
  color: #c2d0e7;
  font-family: var(--font-mono);
  display: none;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  z-index: 5;
  text-shadow: 0 0 8px rgba(10, 16, 26, 0.6);
}
.browse-timeline-status.active {
  display: flex;
}
.browse-timeline-status.loading::before {
  content: "";
  width: 10px;
  height: 10px;
  border: 1.5px solid rgba(148, 163, 184, 0.45);
  border-top-color: rgba(79, 138, 255, 0.95);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.browse-timeline-list {
  position: relative;
  flex: 1 1 auto;
  min-height: 220px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
}
.browse-timeline-track {
  position: relative;
  min-height: 100%;
}
.browse-timeline-track::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 1px;
  background:
    linear-gradient(
      180deg,
      rgba(196, 209, 231, 0.26) 0%,
      rgba(125, 211, 252, 0.45) 100%);
}
.browse-timeline-notch {
  position: absolute;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  padding: 0;
  height: 18px;
  cursor: pointer;
  text-align: left;
  color: var(--text-main);
}
.browse-timeline-notch-line {
  position: absolute;
  left: 14px;
  top: 50%;
  height: 2px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: rgba(182, 199, 226, 0.68);
  transition:
    width 0.12s ease,
    background 0.12s ease,
    box-shadow 0.12s ease;
  box-shadow: 0 0 8px rgba(72, 117, 180, 0.14);
}
.browse-timeline-notch.is-minor .browse-timeline-notch-line {
  width: 14px;
  opacity: 0.75;
}
.browse-timeline-notch.is-major .browse-timeline-notch-line {
  width: 28px;
  opacity: 0.98;
  background: rgba(226, 236, 255, 0.9);
}
.browse-timeline-notch.is-major::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 3px;
  height: 3px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(236, 244, 255, 0.95);
  box-shadow: 0 0 10px rgba(144, 192, 255, 0.5);
}
.browse-timeline-notch-date {
  position: absolute;
  left: 52px;
  top: 50%;
  transform: translateY(-50%);
  color: #e1ebfd;
  font-size: 0.55rem;
  line-height: 1;
  white-space: nowrap;
  font-family: var(--font-mono);
  letter-spacing: 0.015em;
  text-transform: lowercase;
  transition: color 0.12s ease, transform 0.12s ease;
}
.browse-timeline-notch:hover .browse-timeline-notch-line {
  background: rgba(186, 226, 255, 0.98);
  box-shadow: 0 0 14px rgba(125, 211, 252, 0.5);
}
.browse-timeline-notch.is-minor:hover .browse-timeline-notch-line {
  width: 16px;
}
.browse-timeline-notch.is-major:hover .browse-timeline-notch-line {
  width: 32px;
}
.browse-timeline-notch.is-major:hover .browse-timeline-notch-date {
  color: #ecf4ff;
  transform: translateY(-50%) translateX(2px);
}
.browse-timeline-notch.is-loading {
  pointer-events: none;
}
.browse-timeline-notch.is-loading .browse-timeline-notch-line {
  background: rgba(125, 211, 252, 0.95);
  animation: pulse-alpha 0.9s ease-in-out infinite;
}
.browse-timeline-travel {
  position: relative;
  flex: 0 0 auto;
  margin: 8px 0 0;
  padding: 8px 14px 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  border-top: 1px solid rgba(125, 211, 252, 0.2);
  background:
    linear-gradient(
      180deg,
      rgba(7, 12, 20, 0.2) 0%,
      rgba(7, 12, 20, 0.62) 100%);
}
.browse-timeline-travel::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 0;
  width: 1px;
  bottom: 0;
  background: rgba(125, 211, 252, 0.42);
}
.browse-timeline-travel-title {
  font-size: 0.56rem;
  color: #b9cbe5;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  text-transform: lowercase;
  text-align: left;
  padding-left: 40px;
}
.browse-timeline-travel-options {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  position: relative;
  padding-left: 40px;
  z-index: 0;
}
.browse-timeline-travel-options::before {
  content: "";
  position: absolute;
  left: 14px;
  width: 28px;
  top: 50%;
  height: 1px;
  background: rgba(125, 211, 252, 0.42);
  transform: translateY(-50%);
  z-index: 0;
}
.browse-timeline-travel-option {
  border: 1px solid rgba(86, 104, 138, 0.58);
  background: rgba(14, 18, 28, 0.74);
  color: #d2ddf3;
  border-radius: 999px;
  padding: 3px 6px;
  font-size: 0.52rem;
  line-height: 1;
  font-family: var(--font-mono);
  cursor: pointer;
  transition:
    border-color 0.14s ease,
    background 0.14s ease,
    color 0.14s ease;
  white-space: nowrap;
  min-height: 24px;
  position: relative;
  z-index: 1;
}
.browse-timeline-travel-option:hover {
  border-color: rgba(125, 211, 252, 0.82);
  background: rgba(41, 72, 130, 0.34);
  color: #eef6ff;
}
.browse-timeline-travel.loading .browse-timeline-travel-option {
  opacity: 0.58;
  pointer-events: none;
}
.browse-timeline-travel-option.is-custom {
  min-width: 86px;
  padding-right: 10px;
  overflow: hidden;
}
.browse-timeline-custom-label {
  display: inline-block;
  clip-path: inset(0 0 0 0);
  transition: clip-path 220ms ease, opacity 220ms ease;
}
.browse-timeline-custom-editor {
  position: absolute;
  left: 7px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}
.browse-timeline-travel-option.is-custom.is-editing .browse-timeline-custom-label {
  clip-path: inset(0 100% 0 0);
  opacity: 0;
}
.browse-timeline-travel-option.is-custom.is-editing .browse-timeline-custom-editor {
  opacity: 1;
  pointer-events: auto;
}
.browse-timeline-custom-input {
  width: 6ch;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(177, 199, 234, 0.92);
  color: #eef5ff;
  font-size: 0.56rem;
  line-height: 1.1;
  font-family: var(--font-mono);
  padding: 0 0 1px;
  outline: none;
  caret-color: #f4f8ff;
}
.browse-timeline-custom-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(125, 211, 252, 0.72);
  color: #f1f6ff;
  font-size: 0.56rem;
  line-height: 1;
  cursor: pointer;
  user-select: none;
}
.browse-timeline-custom-go:hover {
  background: rgba(125, 211, 252, 0.24);
}
.timeline-jump-loading-card {
  border: 1px dashed rgba(79, 138, 255, 0.45);
  background: rgba(7, 12, 22, 0.72);
  color: #ccd7eb;
  padding: 10px 12px;
  margin: 8px 12px;
  border-radius: 8px;
  font-size: 0.67rem;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.timeline-jump-break {
  border: 1px solid rgba(95, 118, 156, 0.42);
  background:
    linear-gradient(
      180deg,
      rgba(13, 18, 28, 0.8),
      rgba(9, 12, 21, 0.78));
  border-radius: 9px;
  margin: 10px 12px 8px;
  overflow: hidden;
}
.timeline-jump-break-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  font-size: 0.62rem;
  font-family: var(--font-mono);
  color: #c2d0e8;
}
.timeline-jump-break-row + .timeline-jump-break-row {
  border-top: 1px solid rgba(95, 118, 156, 0.3);
}
.timeline-jump-break-arrow {
  color: rgba(125, 211, 252, 0.9);
  font-size: 0.66rem;
}
.browse-filter-box {
  border: 1px solid var(--border-subtle);
  background: rgba(9, 11, 16, 0.82);
  border-radius: 10px;
  padding: 10px;
}
.browse-filter-title {
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 8px;
}
.browse-filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
#browse-journal-filter-list {
  max-height: 360px;
  overflow-y: auto;
  padding-right: 2px;
}
#browse-keyword-filter-list {
  align-items: flex-start;
}
.browse-filter-chip {
  border: 1px solid var(--border-subtle);
  background: rgba(10, 13, 18, 0.72);
  color: var(--text-dim);
  border-radius: 8px;
  font-size: 0.66rem;
  line-height: 1.15;
  padding: 6px 9px;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    color 0.18s ease,
    background 0.18s ease;
}
.browse-filter-chip:hover {
  border-color: rgba(148, 163, 184, 0.45);
  color: var(--text-main);
}
.browse-filter-chip.active {
  border-color: rgba(79, 138, 255, 0.7);
  background: rgba(79, 138, 255, 0.14);
  color: #dbeafe;
}
.browse-filter-journal-chip {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
}
.browse-filter-chip-count {
  font-family: var(--font-mono);
  opacity: 0.72;
  flex: 0 0 auto;
}
.browse-filter-empty {
  font-size: 0.68rem;
  color: var(--text-dim);
  opacity: 0.75;
  padding: 3px 0;
}
.single-lane-container {
  max-width: 620px;
  margin: 0;
  padding: 0 0 40px;
  width: min(620px, 100%);
  min-height: 0;
  min-width: 0;
  flex: 0 1 620px;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-x: hidden;
}
.feed-lane {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 0;
  flex: 1;
}
.feed-lane .feed-column {
  flex: 1;
  min-height: 0;
  height: auto;
}
.single-lane-container.has-drill-columns {
  flex: 1 1 auto;
  max-width: none;
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: stretch;
  height: 100%;
  min-height: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2px;
}
.single-lane-container.has-drill-columns::-webkit-scrollbar {
  height: 8px;
}
.single-lane-container.has-drill-columns::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}
.single-lane-container.has-drill-columns::-webkit-scrollbar-thumb {
  background: rgba(79, 138, 255, 0.4);
  border-radius: 999px;
}
.single-lane-container.has-drill-columns > .feed-lane {
  flex: 0 0 min(520px, calc(100vw - 72px));
  max-width: min(520px, calc(100vw - 72px));
  min-height: 0;
  height: 100%;
}
.single-lane-container.has-drill-columns > .browse-drill-columns {
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  min-height: 0;
  height: 100%;
}
.single-lane-container.has-drill-columns > .feed-lane::before {
  content: "Paper Chain \b7Level 1";
  display: flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  background: rgba(5, 5, 5, 0.95);
  border: 1px solid var(--border-subtle);
  border-bottom: none;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}
.single-lane-container.has-drill-columns > .feed-lane > .feed-column {
  border-top: 1px solid var(--border-subtle);
}
.browse-drill-columns {
  display: none;
  min-height: 0;
  height: 100%;
}
.browse-drill-columns.active {
  display: flex;
  gap: 16px;
  overflow: visible;
  min-height: 0;
  align-items: stretch;
}
.browse-drill-column {
  flex: 0 0 min(560px, calc(100vw - 48px));
  max-width: min(560px, calc(100vw - 48px));
  border-left: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  height: 100%;
  min-height: 0;
  transform: translateX(18px);
  opacity: 0;
  animation: drillColumnIn 280ms cubic-bezier(0.2, 0.88, 0.24, 1) forwards;
}
.browse-drill-column-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.browse-drill-column .feed-header {
  border-bottom-color: var(--border-subtle);
  min-height: 32px;
  padding: 6px 12px;
  font-size: 0.72rem;
}
.browse-drill-column-close {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1;
  cursor: pointer;
}
.browse-drill-column-close:hover {
  color: #fff;
  border-color: var(--border-active);
  background: var(--bg-hover);
}
.browse-drill-column.removing {
  animation: drillColumnOut 220ms ease forwards;
}
@keyframes drillColumnIn {
  from {
    transform: translateX(30px) scale(0.98);
    opacity: 0;
  }
  to {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}
@keyframes drillColumnOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(16px);
    opacity: 0;
  }
}
@media (max-width: 1100px) {
  #browse-container.all-journals-mode .browse-left-filters {
    display: none;
  }
  .browse-timeline {
    display: none;
  }
  .single-lane-container.has-drill-columns {
    gap: 12px;
  }
  .single-lane-container.has-drill-columns > .feed-lane {
    flex-basis: min(440px, calc(100vw - 84px));
    max-width: min(440px, calc(100vw - 84px));
  }
  .browse-drill-column {
    flex-basis: min(500px, calc(100vw - 44px));
    max-width: min(500px, calc(100vw - 44px));
  }
}
@media (max-width: 600px) {
  .tabs.sub-tabs {
    top: 0;
    margin-bottom: 0;
  }
  .browse-layout {
    padding: 0 10px;
  }
  .single-lane-container.has-drill-columns {
    gap: 10px;
  }
  .single-lane-container.has-drill-columns > .feed-lane {
    flex-basis: calc(100vw - 34px);
    max-width: calc(100vw - 34px);
  }
  .browse-drill-column {
    flex-basis: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
  }
}

/* styles.css */
