* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --ink: #f1f3ee;
  --muted: #8f9894;
  --line: #293431;
  --panel: #111917;
  --green: #b6ee58;
  --orange: #ff9d42;
}

body {
  margin: 0;
  min-width: 320px;
  background: #0a0f0e;
  color: var(--ink);
  font-family: "Space Mono", monospace;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(182, 238, 88, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(182, 238, 88, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.shell {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 34px;
}
.topbar,
.console-head,
.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.topbar {
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}
.brand {
  font:
    700 20px "Barlow Condensed",
    sans-serif;
  letter-spacing: 0.12em;
}
.brand-mark {
  color: var(--green);
  margin-right: 8px;
}
.status,
.eyebrow,
.console-head,
.result-head,
footer,
label,
.hint {
  font-size: 11px;
  letter-spacing: 0.1em;
}
.status {
  color: var(--muted);
}
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}
.intro {
  max-width: 710px;
  padding: 92px 0 58px;
  animation: rise 0.7s ease both;
}
.eyebrow {
  color: var(--orange);
  margin: 0 0 18px;
}
h1 {
  margin: 0;
  font:
    700 clamp(58px, 9vw, 108px)/0.84 "Barlow Condensed",
    sans-serif;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}
h1 span {
  color: var(--green);
}
.lede {
  max-width: 570px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin: 28px 0 0;
}
.console,
.result-section {
  border: 1px solid var(--line);
  background: rgba(17, 25, 23, 0.88);
}
.console {
  padding: 24px;
  border-left: 3px solid var(--green);
  animation: rise 0.7s 0.1s ease both;
}
.console-head,
.result-head {
  color: var(--muted);
  font-size: 11px;
}
.method {
  color: var(--green);
}
form {
  margin-top: 29px;
}
label {
  display: block;
  color: var(--ink);
  margin-bottom: 10px;
}
.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 165px auto;
  gap: 10px;
}
input,
button {
  min-height: 52px;
  border: 1px solid var(--line);
  font:
    14px "Space Mono",
    monospace;
}
input {
  width: 100%;
  padding: 0 15px;
  color: var(--ink);
  background: #0b1110;
  outline: none;
}
input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(182, 238, 88, 0.12);
}
button {
  padding: 0 18px;
  border-color: var(--green);
  color: #0a0f0e;
  background: var(--green);
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition:
    background 0.2s,
    transform 0.2s;
}
button:hover {
  background: #d0ff86;
  transform: translateY(-2px);
}
button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}
.arrow {
  margin-left: 12px;
  font-size: 18px;
}
.hint {
  color: var(--muted);
  margin: 14px 0 0;
  letter-spacing: 0;
}
code {
  color: var(--green);
}
.result-section {
  margin-top: 18px;
  animation: rise 0.7s 0.2s ease both;
}
.result-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
#response-meta {
  color: var(--orange);
}
.result {
  overflow: auto;
  min-height: 365px;
  margin: 0;
  padding: 24px;
  color: #d8e4d5;
  font:
    13px/1.8 "Space Mono",
    monospace;
  white-space: pre-wrap;
}
.result.empty {
  color: #64716c;
}
.result.error {
  color: #ff927e;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 8, 7, 0.82);
  backdrop-filter: blur(5px);
}
.modal-backdrop[hidden] {
  display: none;
}
.access-modal {
  position: relative;
  width: min(100%, 500px);
  padding: 34px;
  border: 1px solid var(--orange);
  border-left: 3px solid var(--orange);
  background: #111917;
  box-shadow: 12px 12px 0 rgba(255, 157, 66, 0.1);
  animation: modal-in 0.2s ease both;
}
.access-modal h2 {
  max-width: 360px;
  margin: 0;
  color: var(--ink);
  font:
    700 46px/0.92 "Barlow Condensed",
    sans-serif;
  text-transform: uppercase;
}
.access-modal p:not(.eyebrow) {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  margin: 20px 0 25px;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  min-height: auto;
  padding: 5px 9px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
}
.modal-close:hover {
  color: var(--ink);
  background: transparent;
  transform: none;
}
.modal-action {
  min-height: 44px;
  padding: 0 15px;
}
.modal-action span {
  margin-left: 10px;
}
footer {
  color: #56625e;
  padding-top: 25px;
  text-align: right;
}
@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 700px) {
  .shell {
    width: min(100% - 28px, 1080px);
    padding-top: 18px;
  }
  .status {
    font-size: 9px;
  }
  .intro {
    padding: 72px 0 40px;
  }
  h1 {
    font-size: clamp(57px, 17vw, 94px);
  }
  .console {
    padding: 18px;
  }
  .search-row {
    grid-template-columns: 1fr;
  }
  button {
    width: 100%;
  }
  .result {
    min-height: 300px;
    padding: 18px;
    font-size: 11px;
  }
  .result-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
  .access-modal {
    padding: 28px 22px 24px;
  }
  .access-modal h2 {
    font-size: 40px;
  }
  footer {
    font-size: 9px;
  }
}
