.cosmic-sidebar-launcher {
  position: fixed;
  top: 1rem;
  left: 0.85rem;
  z-index: 1055;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 58px;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

.cosmic-launcher__avatar {
  display: block;
  width: 58px !important;
  height: 58px !important;
  max-width: 58px !important;
  max-height: 58px !important;
  min-width: 58px;
  min-height: 58px;
  border-radius: 999px !important;
  border: 1px solid rgba(153, 183, 255, 0.62);
  overflow: hidden;
  box-shadow: 0 0 1rem rgba(67, 106, 226, 0.3);
  line-height: 0;
  flex: 0 0 58px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.cosmic-launcher__toggle {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(143, 165, 255, 0.65);
  color: #eaf0ff;
  background: rgba(9, 16, 38, 0.95);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0.8rem rgba(86, 122, 244, 0.35);
  cursor: pointer;
}

.cosmic-launcher__toggle:hover {
  background: rgba(19, 33, 74, 0.95);
}

body.cosmic-homepage {
  font-family: "Eurostile", "Square 721 BT", "Square 721", "Microgramma D Extended", "Source Sans Pro", "Lato", sans-serif;
  background:
    radial-gradient(circle at 15% 8%, rgba(55, 95, 200, 0.18), transparent 30%),
    radial-gradient(circle at 80% 12%, rgba(68, 59, 190, 0.2), transparent 26%),
    radial-gradient(circle at 55% 90%, rgba(32, 150, 132, 0.08), transparent 32%),
    #03050d;
}

body.cosmic-homepage #main-wrapper {
  margin-left: 0 !important;
  width: 100%;
}

body.cosmic-homepage #topbar-wrapper {
  background: rgba(2, 6, 18, 0.72);
  backdrop-filter: blur(6px);
}

body.cosmic-homepage #sidebar-trigger {
  display: none !important;
}

body.cosmic-homepage #sidebar {
  transform: translateX(-104%);
  transition: transform 0.24s ease;
  z-index: 1050;
  box-shadow: 0 0 1.4rem rgba(4, 6, 14, 0.45);
  background: linear-gradient(180deg, rgba(5, 10, 24, 0.98), rgba(2, 6, 16, 0.98));
}

body.cosmic-homepage.cosmic-sidebar-open #sidebar {
  transform: translateX(0);
}

body.cosmic-homepage.cosmic-sidebar-open .cosmic-sidebar-launcher {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.cosmic-home {
  position: relative;
  overflow: visible;
  border-radius: 0;
  padding: 2.25rem 1.25rem;
  margin-bottom: 2rem;
  background: transparent;
  border: none;
}

.cosmic-home__canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: -1;
  pointer-events: none;
}

.cosmic-home__content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.cosmic-home__eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #93cdf6;
  margin-bottom: 0.5rem;
}

.cosmic-home h1 {
  margin-bottom: 0.75rem;
  color: #e6ecff;
}

.cosmic-home__subtitle {
  font-size: 1.05rem;
  max-width: 800px;
  color: #bcc7f2;
}

.cosmic-home__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.cosmic-btn {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(143, 165, 255, 0.5);
  background: rgba(12, 19, 43, 0.85);
  color: #e2eafe;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.cosmic-btn:hover {
  transform: translateY(-1px);
  background: rgba(25, 38, 78, 0.92);
  box-shadow: 0 0 0.8rem rgba(78, 118, 224, 0.24);
  text-decoration: none;
}

.cosmic-btn--primary {
  background: linear-gradient(90deg, rgba(54, 127, 255, 0.95), rgba(119, 79, 255, 0.95));
  border-color: rgba(138, 119, 255, 0.9);
  color: #fff;
}

.cosmic-home__config {
  margin-top: 1rem;
  color: #95a4d9;
  font-size: 0.9rem;
}

.cosmic-home__config select {
  margin-left: 0.5rem;
  background: rgba(14, 21, 45, 0.95);
  color: #d9e2ff;
  border: 1px solid rgba(102, 134, 224, 0.65);
  border-radius: 0.45rem;
  padding: 0.25rem 0.45rem;
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.85rem;
  margin: 1rem 0 1.5rem;
}

.research-card {
  border: 1px solid rgba(107, 123, 183, 0.4);
  border-radius: 0.75rem;
  padding: 0.95rem;
  background: rgba(7, 13, 32, 0.82);
  backdrop-filter: blur(3px);
}

.research-card h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
  color: #dfe6ff;
}

.research-card p {
  margin-bottom: 0;
  color: #b2bee8;
  font-size: 0.95rem;
}

.paper-highlight {
  border: 1px solid rgba(136, 156, 235, 0.45);
  border-radius: 0.8rem;
  padding: 1rem 1.1rem;
  background:
    linear-gradient(130deg, rgba(7, 12, 30, 0.9), rgba(12, 8, 28, 0.9));
  margin: 1rem 0 1.5rem;
  backdrop-filter: blur(4px);
}

body.cosmic-homepage main p,
body.cosmic-homepage main li {
  color: #c0caef;
}

.paper-highlight h3 {
  margin-top: 0;
  color: #e8eeff;
}

body.cosmic-homepage main h2 {
  color: #e8eeff;
  margin-top: 1.7rem;
}

.paper-highlight p,
.paper-highlight li {
  color: #bbc6ef;
}

.paper-highlight ul {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .cosmic-sidebar-launcher {
    top: 0.75rem;
    left: 0.65rem;
  }

  .cosmic-launcher__avatar {
    width: 46px !important;
    height: 46px !important;
    max-width: 46px !important;
    max-height: 46px !important;
    min-width: 46px;
    min-height: 46px;
    flex: 0 0 46px;
  }

  .cosmic-home {
    padding: 1.65rem 1rem;
  }

  .cosmic-home h1 {
    font-size: 1.75rem;
  }
}
