.project-world, .nav-projects { --world: #7fcbff; --world-shadow: #174b7e; --world-light: #d6f1ff; }
.price-world, .nav-prices { --world: #cfacf7; --world-shadow: #553287; --world-light: #f5e6ff; }
.document-world, .nav-documents { --world: #7ee9d4; --world-shadow: #1a625a; --world-light: #d8fff3; }
.cost-world, .nav-company-costs { --world: #ffc380; --world-shadow: #88502f; --world-light: #ffebd0; }

.home-heading { margin-bottom: 22px; }
.home-heading h1 { margin-bottom: 7px; }
.home-heading p { margin-bottom: 0; color: var(--muted); font-size: 13px; }

.universe-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(228px, .32fr);
  gap: 16px;
  align-items: start;
}
.orbit-map {
  isolation: isolate;
  position: relative;
  min-height: clamp(470px, 42vw, 630px);
  overflow: hidden;
  border: 1px solid #27415d;
  border-radius: 15px;
  background: #080e1a;
}
.map-title { position: absolute; z-index: 1; top: 22px; left: 24px; }
.map-title h2 { margin-bottom: 2px; font-size: 17px; letter-spacing: .06em; }
.map-title p { margin: 0; color: #aac0db; font-size: 12px; }
.galaxy-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    linear-gradient(180deg, #070c16d9, #070c1600 28%, #080e1a00 69%, #080e1ab0),
    radial-gradient(ellipse at 49% 48%, #192f50 0%, #07101e 66%);
}
.galaxy-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: center / cover no-repeat url("/galaxy.jpg");
  opacity: .82;
  mask-image: radial-gradient(ellipse at 50% 50%, #000 38%, #0008 78%, transparent);
}
.orbit-line {
  position: absolute;
  top: 51%;
  left: 50%;
  width: 76%;
  height: 52%;
  border: 1px solid #80bfff40;
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-22deg);
  box-shadow: 0 0 18px #6294ff16, inset 0 0 16px #6294ff16;
}
.orbit-two { width: 86%; height: 64%; transform: translate(-50%, -50%) rotate(14deg); border-style: dashed; }
.orbit-three { width: 59%; height: 48%; transform: translate(-50%, -50%) rotate(33deg); }
.core-label {
  position: absolute;
  top: 61%;
  left: 50%;
  z-index: 1;
  transform: translateX(-50%);
  padding: 5px 13px;
  border: 1px solid #8bd5ff70;
  border-radius: 20px;
  background: #050c19d9;
  color: #e3f3ff;
  letter-spacing: .13em;
  font-size: 13px;
  white-space: nowrap;
}
.destination {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 11px;
  width: max-content;
  max-width: 45%;
  min-height: 64px;
  padding: 9px 13px;
  border: 1px solid #425970;
  border-radius: 10px;
  background: #081120ed;
  box-shadow: 0 7px 20px #0006;
}
.destination strong, .destination small { display: block; }
.destination strong { color: #edf5ff; font-size: 14px; font-weight: 650; }
.destination small { color: var(--muted); font-size: 11px; }
.destination:hover, .destination:focus-visible {
  border-color: var(--world);
  background: #142239;
  box-shadow: 0 0 20px color-mix(in srgb, var(--world) 18%, transparent);
}
.destination.project-world { top: 29%; left: 6%; }
.destination.price-world { top: 22%; right: 6%; }
.destination.document-world { bottom: 18%; left: 8%; }
.destination.cost-world { bottom: 14%; right: 6%; }
.planet {
  position: relative;
  display: block;
  flex: none;
  inline-size: 32px;
  aspect-ratio: 1;
  border: 1px solid var(--world);
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 29% 25%, var(--world-light), transparent 39%),
    repeating-linear-gradient(147deg, #ffffff04 0 6%, #a6c5ff31 9%, #ffffff04 16%),
    radial-gradient(circle at 34% 38%, var(--world), var(--world-shadow) 56%, #08101d 80%);
  box-shadow: 0 0 13px color-mix(in srgb, var(--world) 42%, transparent);
}
.cost-world .planet::after, .price-world .planet::after {
  content: "";
  position: absolute;
  inset: 37% -20%;
  transform: rotate(-29deg);
  border: 1px solid var(--world);
  border-top-color: transparent;
  border-radius: 50%;
}

.overview-rail { display: grid; gap: 16px; }
.goal-panel, .project-panel { padding: 19px 18px; }
.goal-panel h2, .project-panel h2 { margin-bottom: 8px; }
.total-target {
  display: block;
  font-size: clamp(26px, 2.8vw, 42px);
  letter-spacing: -.045em;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.target-split { display: flex; gap: 4px; margin: 17px 0 14px; height: 4px; }
.target-split span { border-radius: 4px; }
.target-split span:first-child { flex: 2; background: #76c7ff; }
.target-split span:last-child { flex: 1; background: #c6a4fb; }
.overview-rail dl { display: grid; gap: 10px; margin-block: 13px 15px; }
.overview-rail dl div { display: flex; justify-content: space-between; align-items: center; gap: 7px; }
.overview-rail dt { font-size: 12px; }
.overview-rail dd { font-size: 16px; white-space: nowrap; }
.goal-panel p, .project-panel p { font-size: 12px; margin-bottom: 0; }
.text-link { display: inline-flex; align-items: center; gap: 7px; padding-top: 9px; color: var(--accent); font-size: 13px; }
.text-link:hover, .back-link:hover { text-decoration: underline; }

.world-header {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
  padding: 21px 24px 14px;
  border: 1px solid #2e415a;
  border-radius: 13px;
  background:
    radial-gradient(ellipse at 83% 32%, color-mix(in srgb, var(--world-shadow) 55%, #0c1525), transparent 44%),
    #0c1525;
}
.world-intro { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.world-intro h1 { margin: 9px 0 7px; font-size: clamp(23px, 3vw, 36px); }
.world-intro p { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.back-link { color: var(--world-light); font-size: 12px; }
.world-emblem {
  display: grid;
  flex: 0 0 clamp(105px, 25%, 250px);
  min-height: 94px;
  position: relative;
  place-items: center;
}
.world-emblem::before, .world-emblem::after {
  content: "";
  position: absolute;
  inset: 17% 0;
  border: 1px solid color-mix(in srgb, var(--world) 44%, transparent);
  border-radius: 50%;
  transform: rotate(-24deg);
}
.world-emblem::after { transform: rotate(23deg); border-style: dashed; }
.world-emblem .planet { inline-size: 57px; }
.satellite-nav {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 15px;
  margin-top: 11px;
  padding-top: 11px;
  border-top: 1px solid #2d3d53;
}
.satellite-nav a {
  color: #b3c5d9;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  padding: 5px 8px;
  border-radius: 5px;
}
.satellite-nav a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid var(--world);
}
.satellite-nav a:hover, .satellite-nav a[aria-current="location"] { color: var(--world-light); background: #23354d; }
.satellite-nav a[aria-current="location"]::before { background: var(--world); }
.view [tabindex="-1"] { scroll-margin-top: 15px; }

@media (max-width: 1110px) {
  .universe-layout { grid-template-columns: minmax(0, 1fr); }
  .overview-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .home-heading { margin-bottom: 15px; }
  .orbit-map { min-height: 0; padding: 238px 10px 10px; }
  .map-title { top: 13px; left: 14px; }
  .galaxy-art { height: 249px; }
  .core-label { top: 185px; }
  .destinations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .destination { position: static; max-width: none; width: auto; min-height: 58px; padding: 7px; gap: 7px; }
  .destination strong { font-size: 12px; }
  .destination small { font-size: 10px; }
  .destination .planet { inline-size: 22px; }
  .overview-rail { gap: 8px; }
  .goal-panel, .project-panel { padding: 12px; }
  .goal-panel h2, .project-panel h2 { font-size: 13px; }
  .overview-rail dd, .overview-rail dt { font-size: 12px; }
  .world-header { padding: 14px 14px 10px; }
  .world-emblem { min-height: 71px; }
  .world-emblem .planet { inline-size: 40px; }
  .satellite-nav { gap: 2px 5px; }
}
@media (max-width: 360px) {
  .overview-rail { grid-template-columns: 1fr; }
  .destination { align-items: flex-start; }
}

.organization {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: 16px;
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 12px;
  color: var(--muted);
}
.organization strong { color: var(--ink); font-weight: 650; }

.material-world, .nav-materials { --world: #f395b8; --world-shadow: #753554; --world-light: #ffdfec; }
.destination.material-world { top: 46%; right: 4%; }
@media (max-width: 620px) {
  .destination.material-world { grid-column: 1 / -1; }
}

.operation-world, .nav-operations, .nav-accounts { --world: #abd6ff; --world-shadow: #314773; --world-light: #e8f4ff; }
.destination.operation-world { top: 49%; left: 4%; }
@media (max-width: 620px) {
  .destination.material-world { grid-column: auto; }
}
.login-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 20px;
  background: linear-gradient(#050a16bb, #050a16cc), center / cover no-repeat url("/galaxy.jpg");
}
.login-card { width: min(100%, 425px); padding: 28px; }
.login-card .brand { margin-bottom: 22px; }
.login-card h1 { font-size: 28px; }
.login-card button { width: 100%; }
#login-status { color: var(--red); }
