:root {
  --background: #080808;
  --foreground: #fff;
  --accent: #c4ff57;
  --muted: #b3b3b3;
  --border: #272727;
  color-scheme: dark;
  color: var(--foreground);
  background: var(--background);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

body { margin: 0; }

.page {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  max-width: 87rem;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 0;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand img {
  display: block;
  width: clamp(10.5rem, 46vw, 12rem);
  max-width: 100%;
  height: auto;
}

.masthead a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}

.status {
  border-radius: 999px;
  padding: .45rem .8rem;
  color: var(--background);
  background: var(--accent);
  font-size: .75rem;
  font-weight: 650;
  white-space: nowrap;
}

.masthead-login {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: 1.125rem;
  font-size: .875rem;
  text-decoration: none;
}

.masthead-login:hover { background: #dcff9e; }

main {
  display: grid;
  align-items: center;
  padding: clamp(1.5rem, 5vw, 4.5rem) 0;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  min-height: clamp(22rem, 58svh, 40rem);
  padding: clamp(1.5rem, 6vw, 5rem);
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: radial-gradient(ellipse at 100% 100%, #233615, transparent 59%), #101010;
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(#c4ff5729 1px, transparent 1px),
    linear-gradient(90deg, #c4ff5729 1px, transparent 1px);
  background-size: 2rem 2rem;
  mask-image: radial-gradient(ellipse at 100% 100%, #000 0, transparent 67%);
  pointer-events: none;
  content: "";
}

h1 { margin: 0; }

.hero h1 img {
  display: block;
  width: min(100%, 35rem);
  height: auto;
}

.hero-bot {
  display: grid;
  place-items: center;
  justify-self: center;
  width: min(100%, 20rem);
  aspect-ratio: 1;
  border: 1px solid #c4ff5729;
  border-radius: 50%;
  background: radial-gradient(circle, #c4ff571c, transparent 68%);
  box-shadow: 0 0 0 1.15rem #c4ff5708, 0 0 0 2.3rem #c4ff5706;
}

.hero-bot img {
  display: block;
  width: 68%;
  height: auto;
  filter: drop-shadow(0 .8rem 1.5rem #08080880);
}

.hero p {
  margin: clamp(1.25rem, 3vw, 2rem) 0 0;
  color: var(--muted);
  font-size: clamp(.9375rem, 2vw, 1.125rem);
  line-height: 1.7;
}

@media (max-width: 44rem) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    gap: 2rem;
    text-align: center;
  }

  .hero-bot { grid-row: 1; width: min(68%, 10rem); }
  .hero h1 img { width: min(100%, 23rem); margin: 0 auto; }
  .hero-actions { justify-content: center; }
}

footer {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0 1.5rem;
  color: var(--muted);
  font-size: .8125rem;
}

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.1rem; margin-top: 1.75rem; }
.hero-actions span, .eyebrow { color: var(--muted); font-size: .85rem; }
.status, .button { text-decoration: none; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
button, input { font: inherit; }
button, .button { display: inline-block; border: 1px solid transparent; border-radius: .5rem; padding: .55rem .9rem; background: var(--accent); color: #080808; font-weight: 650; cursor: pointer; }
.secondary { color: var(--foreground); background: transparent; border-color: #424242; }
.workspace { display: grid; align-content: start; gap: 1rem; max-width: 72rem; width: 100%; margin: 0 auto; }
.panel { min-width: 0; background: #101010; border: 1px solid var(--border); border-radius: .9rem; padding: clamp(1rem, 3vw, 2rem); }
.narrow { width: min(100%, 36rem); margin: 0 auto; }
.panel h2, .panel p { margin: 0 0 1rem; }
.panel p { color: var(--muted); }
.panel h1 + p { margin-top: .75rem; }
.form-row { display: flex; flex-wrap: wrap; align-items: end; gap: .75rem; margin: .75rem 0; }
.form-row label { display: grid; gap: .4rem; flex: 0 1 27rem; min-width: 0; }
input, .form-row select { width: 100%; border: 1px solid #494949; border-radius: .5rem; background: #080808; color: var(--foreground); padding: .55rem .7rem; }
.summary { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin-bottom: .5rem; }
.summary div { min-width: 8rem; max-width: 100%; overflow-wrap: anywhere; }
.summary dt { color: var(--muted); font-size: .85rem; }
.summary dd { margin: .25rem 0 0; font-weight: 600; }
.table-scroll, pre { overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .9rem; }
th, td { padding: .65rem .75rem .65rem 0; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { color: var(--muted); }
pre, .notice { padding: .85rem; border: 1px solid #42562c; border-radius: .5rem; background: #141c0d; }
.notice { color: var(--foreground); }
