:root {
  color-scheme: dark;
  --bg: #0e1415;
  --panel: #172022;
  --ink: #f4f1e9;
  --muted: #9ca9a7;
  --line: #344345;
  --accent: #6fe3c1;
  --accent-soft: rgba(111,227,193,.12);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: radial-gradient(circle at 82% 5%, rgba(111,227,193,.12), transparent 30rem), linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), var(--bg);
  background-size: auto, 100% 48px, auto;
  font-family: "Yu Gothic UI", "Hiragino Kaku Gothic ProN", sans-serif;
}

button, input, textarea { font: inherit; }
.shell { width: min(1040px, calc(100% - 40px)); margin: 0 auto; }
.hero { padding: 72px 0 42px; border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 12px; color: var(--accent); font: 700 11px/1.2 ui-monospace, monospace; letter-spacing: .18em; }
h1 { margin: 0; font-size: clamp(42px, 7vw, 80px); line-height: .95; letter-spacing: -.065em; }
h1 span { color: var(--accent); font-weight: 400; }
.lead { max-width: 680px; margin: 24px 0 0; color: var(--muted); line-height: 1.8; }

.lookup-panel { display: grid; grid-template-columns: 1.6fr .8fr; gap: 24px; padding: 38px 0; border-bottom: 1px solid var(--line); }
.field label, legend { display: block; margin-bottom: 10px; color: var(--ink); font-size: 13px; font-weight: 700; }
.field label span { margin-left: 5px; color: var(--muted); font-size: 11px; font-weight: 400; }
input[type="text"] { width: 100%; padding: 14px 15px; border: 1px solid var(--line); border-radius: 3px; outline: none; color: var(--ink); background: var(--panel); }
input[type="text"]:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field small, fieldset small { display: block; margin-top: 8px; color: #768583; font-size: 11px; line-height: 1.5; }
fieldset { display: flex; flex-wrap: wrap; align-content: start; gap: 10px 18px; margin: 0; padding: 0; border: 0; }
fieldset legend { width: 100%; }
fieldset label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; cursor: pointer; }
fieldset input { accent-color: var(--accent); }
fieldset small { width: 100%; }
.search-button { align-self: end; padding: 15px 18px; border: 1px solid var(--accent); border-radius: 3px; color: #08110f; background: var(--accent); font-weight: 700; cursor: pointer; }
.search-button:hover { filter: brightness(1.08); }

.result-section { padding: 42px 0 32px; }
.result-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; }
h2 { margin: 0; font-size: 24px; }
.status { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.status::before { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); content: ""; }
.status.loading::before { animation: pulse 1s infinite alternate; }
@keyframes pulse { to { opacity: .2; } }
textarea { display: block; width: 100%; height: 430px; padding: 22px; resize: vertical; border: 1px solid var(--line); border-radius: 3px; outline: none; color: #c9f5e8; background: #121a1c; font: 14px/1.7 "BIZ UDGothic", "Yu Gothic UI", monospace; }
.copy-button { display: flex; justify-content: space-between; width: 100%; margin-top: 12px; padding: 15px 18px; border: 1px solid var(--accent); border-radius: 3px; color: var(--accent); background: transparent; font-weight: 700; cursor: pointer; }
.copy-button:hover { background: var(--accent-soft); }
button:disabled, input:disabled, textarea:disabled { opacity: .58; cursor: wait; }
footer { padding: 24px 0 48px; border-top: 1px solid var(--line); color: #75817f; font-size: 12px; line-height: 1.7; }
footer a { color: var(--accent); }

@media (max-width: 720px) {
  .shell { width: min(100% - 28px, 600px); }
  .hero { padding: 48px 0 32px; }
  .lookup-panel { grid-template-columns: 1fr; }
  textarea { height: 380px; }
}
