:root {
  color-scheme: dark;
  font: 16px/1.5 system-ui, -apple-system, "Microsoft YaHei", sans-serif;
  color: #f4f1ed;
  background: #121212;
  --muted: #bdb7b0;
  --border: #403b37;
  --orange: #ff7846;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
main { width: min(100% - 2rem, 34rem); margin: 4rem auto; }
.brand { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.brand a { color: inherit; font-weight: 750; letter-spacing: .07em; text-decoration: none; }
.panel { padding: clamp(1.2rem, 5vw, 2rem); background: #20201f; border: 1px solid #353332; border-radius: 18px; }
h1, h2, p { margin: 0 0 .65rem; }
h1 { font-size: 1.65rem; }
h2 { font-size: 1.15rem; }
.muted, .hint { color: var(--muted); }
.hint { font-size: .9rem; margin-top: .35rem; }
.badge { color: #9ad8ad; font-weight: 650; }
form { margin-top: 1rem; }
label { display: block; margin: .7rem 0 .35rem; font-weight: 600; }
button, input { font: inherit; border-radius: 8px; }
button { padding: .55rem .78rem; color: inherit; background: #34312e; border: 1px solid var(--border); cursor: pointer; }
button:hover { background: #49433d; }
button:disabled { cursor: wait; opacity: .65; }
input { width: 100%; min-width: 0; padding: .6rem .7rem; background: #161615; border: 1px solid var(--border); color: inherit; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
button.primary { color: #1c0c04; background: var(--orange); border-color: var(--orange); font-weight: 730; }
button.primary:hover { background: #ffa17e; }
button.quiet { background: transparent; }
form > button { margin-top: 1rem; }
.tabs, .account-bar, .inline { display: flex; align-items: center; gap: .65rem; }
.tabs { margin-top: 1rem; }
.tabs [aria-pressed="true"] { border-color: var(--orange); }
.account-bar { justify-content: space-between; border-top: 1px solid #353332; border-bottom: 1px solid #353332; padding: .7rem 0; margin: .8rem 0 1.2rem; }
.inline { flex-wrap: wrap; }
.inline input { flex: 1 1 9rem; }
#issued { margin-top: .8rem; }
output { display: inline-block; padding: .5rem .65rem; color: #ffd4c3; background: #171512; font-family: ui-monospace, monospace; border-radius: 6px; overflow-wrap: anywhere; }
#status { color: #ffd2be; }
#status:empty { display: none; }
a { color: #ff9974; }
