:root {
  --bg: #0a0e16;
  --panel: #121924;
  --edge: #233041;
  --muted: #8b9bb0;
  --text: #e5edf5;
  --green: #aaf06a;
  --cyan: #58d1c9;
  --red: #ff7b83;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    14px/1.65 "Segoe UI",
    "Microsoft JhengHei",
    sans-serif;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button,
.button {
  border: 1px solid var(--edge);
  border-radius: 8px;
  background: #192333;
  color: var(--text);
  padding: 9px 16px;
  text-decoration: none;
}
button:hover,
.button:hover {
  border-color: var(--green);
}
button.primary {
  background: var(--green);
  color: #172113;
  border-color: var(--green);
  font-weight: 700;
}
button.danger {
  background: #29181f;
  border-color: #5b2d37;
  color: #ff9da3;
}
input {
  width: 100%;
  border: 1px solid var(--edge);
  border-radius: 6px;
  background: #0b111b;
  color: var(--text);
  padding: 10px;
}
a {
  color: var(--cyan);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 29px;
  letter-spacing: -0.7px;
  margin-bottom: 0;
}
h2 {
  font-size: 18px;
  margin-bottom: 14px;
}
h3 {
  font-size: 16px;
}
small,
.muted {
  color: var(--muted);
}
.eyebrow {
  font: 11px/1.5 monospace;
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 10px;
}
.sidebar {
  position: fixed;
  width: 222px;
  inset: 0 auto 0 0;
  background: #0e141e;
  border-right: 1px solid var(--edge);
  padding: 31px 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 2.7px;
}
.brand-mark {
  color: var(--green);
  font-size: 44px;
  line-height: 1;
}
.nav-label {
  color: #53667e;
  letter-spacing: 1px;
  font-size: 11px;
  margin: 45px 12px 10px;
}
.sidebar nav button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--muted);
  padding: 13px 12px;
  margin: 5px 0;
}
.sidebar nav .active {
  color: var(--green);
  background: #1c2c21;
}
.sidebar-bottom {
  position: absolute;
  bottom: 25px;
  font-size: 11px;
  color: var(--muted);
}
.sidebar-bottom p {
  margin: 8px 0;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 4px;
}
main {
  margin-left: 222px;
  padding: 32px 38px;
  max-width: 1800px;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.slash {
  margin: 0 13px;
  color: var(--green);
}
.pill,
.tag {
  font: 10px monospace;
  letter-spacing: 1px;
  border: 1px solid #496147;
  padding: 7px 10px;
  border-radius: 5px;
  color: var(--green);
  white-space: nowrap;
}
.notice {
  padding: 12px 17px;
  background: #1b2327;
  border: 1px solid #344044;
  border-left: 3px solid var(--green);
  border-radius: 6px;
  color: #c3d0c0;
  font-size: 12px;
  margin-bottom: 22px;
}
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 278px;
  padding: 28px 38px;
  border: 1px solid var(--edge);
  border-radius: 12px;
  background:
    radial-gradient(ellipse at 82% 50%, #18382e66, transparent 48%), #121a24;
  overflow: hidden;
}
.hero h2 {
  font-size: 32px;
  line-height: 1.5;
  letter-spacing: -1px;
  margin-bottom: 15px;
}
.hero p:not(.eyebrow) {
  color: var(--muted);
  font-size: 12px;
}
.hero-badges {
  display: flex;
  gap: 10px;
}
.hero-badges span {
  border: 1px solid #34413e;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  color: #b1c9b8;
}
.radar-art {
  width: 220px;
  height: 220px;
  position: relative;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background:
    linear-gradient(transparent 49.7%, #43624480 50%, transparent 50.3%),
    linear-gradient(90deg, transparent 49.7%, #43624480 50%, transparent 50.3%);
}
.orbit {
  position: absolute;
  border: 1px solid #44644780;
  border-radius: 50%;
}
.one {
  inset: 0;
}
.two {
  inset: 32px;
}
.three {
  inset: 64px;
}
.radar-art > span {
  color: var(--green);
  font-size: 25px;
}
.sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 40deg,
    transparent 0 275deg,
    #aaf06a30 355deg,
    transparent 360deg
  );
  animation: turn 24s linear infinite;
}
.blip {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 12px #aaf06a;
}
.b1 {
  top: 52px;
  left: 70px;
}
.b2 {
  right: 37px;
  top: 122px;
}
.b3 {
  bottom: 38px;
  left: 68px;
}
@keyframes turn {
  to {
    transform: rotate(360deg);
  }
}
.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 20px 0;
}
.stat {
  border: 1px solid var(--edge);
  border-radius: 9px;
  padding: 18px;
  background: var(--panel);
}
.stat .label {
  color: var(--muted);
  font-size: 11px;
}
.stat strong {
  display: block;
  font-size: 29px;
  font-weight: 500;
  margin: 7px 0 0;
  font-variant-numeric: tabular-nums;
}
.stat small {
  font-size: 10px;
}
.two-col {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 20px;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 10px;
  padding: 23px;
  margin-bottom: 20px;
  min-width: 0;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.panel-head h2 {
  margin: 0;
}
.panel-head .muted {
  font-size: 11px;
}
.source,
.guard,
.event {
  padding: 12px 0;
  border-bottom: 1px solid #202a38;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.source:last-child,
.guard:last-child,
.event:last-child {
  border: 0;
}
.source small {
  display: block;
  font-size: 11px;
  max-width: 320px;
  overflow-wrap: anywhere;
}
.source-name {
  font-weight: 600;
}
.badge {
  padding: 3px 8px;
  border-radius: 4px;
  background: #20322a;
  color: #b3dd9c;
  font-size: 10px;
  white-space: nowrap;
}
.badge.warn {
  background: #382d1b;
  color: #e1c482;
}
.badge.off {
  background: #252b34;
  color: #94a1b3;
}
.wallet {
  padding: 15px;
  background: #0d141c;
  border-radius: 6px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 18px;
}
.event {
  font-size: 12px;
}
.event time {
  color: var(--muted);
  white-space: nowrap;
  font: 11px monospace;
}
.event b {
  font-weight: 500;
  color: var(--cyan);
  display: inline-block;
  min-width: 125px;
}
.page {
  display: none;
}
.page.active {
  display: block;
}
.section-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 28px 0 20px;
}
.section-intro h2 {
  font-size: 23px;
  margin-bottom: 7px;
}
.section-intro p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 0;
}
.section-intro input {
  max-width: 240px;
}
.table-panel {
  padding: 0;
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 950px;
  text-align: left;
}
th {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  background: #151f2c;
  padding: 16px;
}
td {
  padding: 16px;
  border-top: 1px solid #222c3c;
  font-size: 12px;
  vertical-align: top;
}
td small {
  display: block;
  font-size: 10px;
  max-width: 340px;
}
td:first-child {
  font-weight: 600;
}
td .score {
  color: var(--green);
  font-size: 17px;
}
.empty {
  text-align: center;
  padding: 45px;
  color: var(--muted);
  font-size: 13px;
}
.launch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 18px;
}
.launch-card {
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 10px;
  padding: 22px;
}
.launch-card img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 12px;
  float: right;
}
.launch-card code {
  display: block;
  font-size: 10px;
  overflow-wrap: anywhere;
  color: var(--muted);
  margin: 12px 0;
}
.launch-card .links {
  display: flex;
  gap: 12px;
  margin: 12px 0;
  font-size: 12px;
}
.launch-card p {
  font-size: 12px;
  color: var(--muted);
}
.cost-row {
  display: grid;
  grid-template-columns: 145px 1fr 90px;
  align-items: center;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--edge);
}
.bar {
  height: 5px;
  background: #202d3c;
  border-radius: 4px;
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  background: var(--green);
}
.cost-row strong {
  text-align: right;
  font-family: monospace;
}
.horizons {
  display: flex;
  gap: 10px;
  margin: 20px 0;
}
.horizons span {
  flex: 1;
  text-align: center;
  padding: 12px;
  border: 1px solid var(--edge);
  border-radius: 7px;
  color: var(--green);
  font: 12px monospace;
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.setting {
  display: block;
  padding: 17px;
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 9px;
  font-size: 12px;
}
.setting small {
  display: block;
  font: 9px monospace;
  word-break: break-word;
  margin-bottom: 12px;
}
.setting input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--green);
}
.setting input {
  margin-top: 6px;
}
.error {
  color: var(--red);
}
#toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: #253929;
  padding: 12px 20px;
  border-radius: 7px;
  display: none;
  z-index: 10;
  max-width: 440px;
}
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at center, #1d362850, transparent 60%), var(--bg);
}
.login-card {
  width: 450px;
  max-width: 95%;
  padding: 40px;
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 15px;
}
.login-card .brand-mark {
  margin-bottom: 24px;
}
.login-card h1 {
  font-size: 25px;
  margin-bottom: 14px;
}
.login-card label {
  display: block;
  margin: 24px 0 15px;
}
.login-card button {
  width: 100%;
}
footer {
  display: flex;
  justify-content: space-between;
  margin-top: 36px;
  color: #607188;
  font-size: 10px;
}
#cost-stats {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1100px) {
  .sidebar {
    width: 185px;
    padding: 25px 12px;
  }
  main {
    margin-left: 185px;
    padding: 26px 24px;
  }
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero {
    padding: 25px;
  }
  .hero h2 {
    font-size: 26px;
  }
  .radar-art {
    width: 175px;
    height: 175px;
  }
  .settings-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 760px) {
  .sidebar {
    position: static;
    width: 100%;
    padding: 14px;
    border-right: 0;
    border-bottom: 1px solid var(--edge);
  }
  .brand {
    font-size: 16px;
  }
  .brand-mark {
    font-size: 34px;
  }
  .brand small,
  .nav-label,
  .sidebar-bottom {
    display: none;
  }
  .sidebar nav {
    display: flex;
    overflow: auto;
    margin-top: 12px;
    gap: 5px;
  }
  .sidebar nav button {
    width: auto;
    white-space: nowrap;
    font-size: 11px;
    padding: 8px;
  }
  .sidebar main {
    margin-left: 0;
  }
  main {
    margin-left: 0;
    padding: 20px 15px;
  }
  header {
    align-items: flex-start;
  }
  h1 {
    font-size: 21px;
  }
  .header-actions {
    flex-direction: column;
    gap: 7px;
  }
  .danger {
    font-size: 10px;
  }
  .hero {
    padding: 22px;
  }
  .hero h2 {
    font-size: 25px;
  }
  .radar-art {
    display: none;
  }
  .stats,
  #cost-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .stat strong {
    font-size: 24px;
  }
  .section-intro {
    flex-direction: column;
    align-items: flex-start;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .horizons {
    flex-wrap: wrap;
  }
  .horizons span {
    min-width: 60px;
  }
  .cost-row {
    grid-template-columns: 90px 1fr 70px;
    gap: 10px;
  }
  .hero-badges {
    flex-wrap: wrap;
  }
  .event b {
    min-width: 0;
    display: block;
  }
  footer {
    gap: 15px;
  }
}
