:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  color: #f1eee7;
  background: #10130f;
  --mint: #d9f99d;
  --muted: #aeb7a8;
  --line: #333e31;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at 50% 0%, #202c19 0, transparent 52%);
}

.top {
  max-width: 1120px;
  margin: auto;
  padding: 26px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ffffff12;
}

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; font-weight: 700; }
.mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--mint); color: #202a17; }
.lock { position: relative; display: inline-block; width: 13px; height: 10px; border: 1.5px solid; border-radius: 2px; margin-top: 4px; }
.lock::before { content: ""; position: absolute; width: 5px; height: 5px; left: 2px; top: -6px; border: 1.5px solid; border-bottom: 0; border-radius: 5px 5px 0 0; }
.local { color: var(--muted); display: flex; align-items: center; gap: 8px; font-size: .82rem; }
.local i { width: 7px; height: 7px; border-radius: 50%; background: #a6ce77; }

main { width: min(100% - 36px, 570px); margin: 54px auto 32px; }
.intro { text-align: center; margin-bottom: 30px; }
.eyebrow { color: var(--mint); font: 600 .69rem ui-monospace, monospace; letter-spacing: .2em; }
h1 { margin: 12px 0; font: 400 clamp(3rem, 9vw, 5rem)/.98 Georgia, serif; letter-spacing: -.055em; }
h1 em { color: var(--mint); font-weight: inherit; }
.intro > p:last-child { margin: 17px auto 0; max-width: 360px; line-height: 1.5; color: var(--muted); font-size: .95rem; }
.card { border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 5vw, 32px); background: #1a2118; box-shadow: 0 22px 70px #0004; }
h2 { margin: 0 0 19px; font-size: 1.25rem; letter-spacing: -.02em; }
label { display: block; margin: 0 0 7px; font-size: .85rem; font-weight: 650; }
label span, .message-meta, .detail { color: var(--muted); font-weight: 400; }
label span { margin-left: 4px; font-size: .75rem; }
textarea, select, input, pre {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 11px 12px;
  background: #11170f;
  color: #f1eee7;
  font: inherit;
  font-size: .88rem;
}
textarea { display: block; resize: vertical; min-height: 102px; }
::placeholder { color: #939b8c; opacity: 1; }
.message-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 7px; font-size: .72rem; }
.fields { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 20px; }
button { cursor: pointer; font: inherit; }
button:disabled { cursor: progress; opacity: .7; }
.primary {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 19px;
  padding: 12px 15px;
  border: 0;
  border-radius: 9px;
  background: var(--mint);
  color: #1b2512;
  font-weight: 750;
}
.primary:hover { background: #e7ffc0; }
.detail { font-size: .9rem; line-height: 1.5; }
a, .quiet { color: var(--mint); }
.quiet { border: 0; background: none; text-decoration: underline; padding: 0; }
.actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; font-size: .85rem; }
.error { background: #35211b; border: 1px solid #764a3e; color: #ffd5c7; padding: 12px; border-radius: 9px; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; font-family: ui-monospace, monospace; }
#start-over { display: inline-block; margin-top: 12px; }
#hide-secret { margin-right: 14px; }
footer { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 21px; color: var(--muted); font-size: .75rem; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
@media (max-width: 420px) {
  .top { padding: 19px 18px; }
  main { margin-top: 38px; }
  .fields { grid-template-columns: 1fr; }
}
