:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0a0c0f;
  color: #f2f4f7;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 15% 15%, #17332c 0, transparent 34%), #0a0c0f; }
.shell { width: min(1100px, calc(100% - 40px)); margin: 0 auto; min-height: 100vh; display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: center; padding: 64px 0; }
.eyebrow { color: #74efbd; text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 800; }
h1 { margin: 18px 0; max-width: 590px; font-size: clamp(42px, 6vw, 76px); line-height: .98; letter-spacing: -.055em; }
.intro > p { color: #aeb7c2; font-size: 17px; line-height: 1.65; max-width: 520px; }
.card { background: rgba(18, 22, 27, .88); border: 1px solid #273039; border-radius: 24px; padding: clamp(24px, 4vw, 42px); box-shadow: 0 30px 90px rgba(0, 0, 0, .35); backdrop-filter: blur(18px); }
label { display: block; margin: 0 0 10px; font-weight: 700; font-size: 14px; }
label span { color: #7e8995; font-weight: 500; }
textarea { width: 100%; color: #e8edf2; background: #0c1014; border: 1px solid #2b343e; border-radius: 12px; outline: none; font: 13px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; transition: border-color .2s, box-shadow .2s; }
textarea { min-height: 260px; resize: vertical; padding: 16px; margin-bottom: 22px; }
textarea:focus { border-color: #55c99f; box-shadow: 0 0 0 3px rgba(85, 201, 159, .12); }
button { width: 100%; border: 0; border-radius: 12px; padding: 15px 18px; background: #74efbd; color: #07120e; font: inherit; font-weight: 800; cursor: pointer; }
button:hover { background: #91f5ce; }
button:disabled { opacity: .55; cursor: wait; }
.status { min-height: 22px; margin-top: 18px; font-size: 14px; }
.status.loading { color: #c7d0d9; }
.status.success { color: #74efbd; }
.status.error { color: #ff8d8d; }
.result { margin-top: 22px; padding-top: 22px; border-top: 1px solid #273039; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.result[hidden] { display: none; }
.result div { min-width: 0; background: #0c1014; border-radius: 10px; padding: 14px; }
.result span { display: block; color: #84909c; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 7px; }
.result strong, .result code { overflow-wrap: anywhere; }
.token-row { grid-column: 1 / -1; }
.token-row code { display: block; max-height: 110px; overflow: auto; color: #bcebd8; font-size: 12px; }
.secondary { grid-column: 1 / -1; background: transparent; color: #dce3e9; border: 1px solid #37424c; }
.secondary:hover { background: #1a2026; }

@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; gap: 36px; padding: 42px 0; }
  h1 { font-size: clamp(42px, 12vw, 66px); }
}
