:root { color-scheme: dark; }
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; background: #0a0b09; color: #e8ece4;
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
  display: grid; place-items: center; padding: 2rem 1rem;
}
.wrap { max-width: 28rem; width: 100%; }
h1 { font-size: 1.5rem; margin: 0 0 .25rem; }
.sub { color: #9aa694; margin: 0 0 1.5rem; }
.tabs { display: flex; gap: .5rem; margin-bottom: 1.25rem; border-bottom: 1px solid #222; }
.tab {
  background: none; border: none; color: #9aa694; font-size: .95rem; padding: .6rem .2rem;
  cursor: pointer; border-bottom: 2px solid transparent;
}
.tab.active { color: #c8ff00; border-bottom-color: #c8ff00; }
.panel[hidden] { display: none; }
.hint { color: #9aa694; font-size: .9rem; margin-bottom: 1rem; }
form { display: flex; flex-direction: column; gap: 1rem; }
label { display: flex; flex-direction: column; gap: .4rem; font-size: .9rem; color: #c3cbb9; }
input {
  background: #171a15; border: 1px solid #2a2f24; color: #e8ece4; border-radius: 4px;
  padding: .6rem .7rem; font-size: 1rem;
}
input:focus { outline: none; border-color: #c8ff00; }
button[type="submit"] {
  background: #c8ff00; color: #0a0b09; border: none; border-radius: 4px;
  padding: .7rem 1rem; font-size: 1rem; font-weight: 600; cursor: pointer; margin-top: .25rem;
}
button[type="submit"]:disabled { opacity: .6; cursor: default; }
.result { margin-top: 1rem; padding: .8rem; border-radius: 4px; font-size: .9rem; }
.result.ok { background: #16210b; border: 1px solid #3a5a0a; color: #d4ff8a; }
.result.error { background: #2a1210; border: 1px solid #5a1a16; color: #ffb3a8; }
.result code { word-break: break-all; font-weight: 600; }
.footer { color: #666; font-size: .8rem; margin-top: 2rem; text-align: center; }
