:root {
  color-scheme: light;
  font: 16px/1.5 Inter, "Segoe UI", Roboto, Arial, sans-serif;
  --night: #171916;
  --paper: #fff;
  --canvas: #f6f5f1;
  --ink: #20231f;
  --muted: #585e56;
  --line: #dedfd6;
  --gold: #d3ad6e;
  --focus: #805714;
  color: var(--ink);
  background: var(--canvas);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
header { background: var(--night); padding: 18px clamp(20px, 5vw, 72px); }
.brand { display: inline-flex; gap: 12px; align-items: center; color: #faf8f3; font-weight: 780; font-size: 19px; line-height: 1.05; letter-spacing: .065em; }
.brand small { display: block; margin-top: 5px; font-size: 9px; font-weight: 680; letter-spacing: .28em; color: #dbb879; }
.mark { width: 39px; height: 39px; border-radius: 10px; background: var(--gold); display: inline-flex; align-items: flex-end; justify-content: center; gap: 2px; padding: 9px; }
.mark i { width: 5px; height: 9px; background: #27271f; border-radius: 1px 1px 0 0; transform: skewY(-13deg); }
.mark i:nth-child(2) { height: 17px; }
.mark i:nth-child(3) { height: 13px; }
main { width: 100%; padding: 40px 16px 70px; flex: 1; display: grid; place-items: center; }
.card { width: min(100%, 460px); padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
h1 { margin: 0; font-size: clamp(25px, 4.3vw, 35px); line-height: 1.15; letter-spacing: -.035em; overflow-wrap: anywhere; }
p { color: var(--muted); }
.intro { margin: 10px 0 26px; }
button, input { font: inherit; border-radius: 8px; min-height: 47px; }
button { width: 100%; cursor: pointer; font-weight: 660; touch-action: manipulation; }
.primary { background: var(--gold); border: 1px solid #b78a45; color: var(--night); }
.primary:hover:enabled { background: #dbb677; }
.secondary { background: var(--paper); color: var(--ink); border: 1px solid #92968f; }
.secondary:hover:enabled { background: var(--canvas); }
button:disabled { opacity: .63; cursor: default; }
summary { cursor: pointer; min-height: 44px; padding-block: 10px; font-size: .94rem; font-weight: 620; }
summary::marker { color: var(--focus); }
details { margin-top: 21px; padding-top: 7px; border-top: 1px solid var(--line); }
form { margin-top: 9px; }
label { font-weight: 640; }
#token-help { margin: 3px 0 10px; font-size: .89rem; }
input { display: block; width: 100%; border: 1px solid #92968f; padding: 8px 12px; background: var(--paper); color: var(--ink); margin-bottom: 14px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
#status:not(:empty) { font-size: .92rem; color: #235541; background: #e8f2e9; margin: 18px 0 0; padding: 11px 13px; border-radius: 8px; }
#status[data-error="true"] { color: #842e22; background: #fff0e9; }
#status:empty { margin: 0; }
@media (max-width: 430px) { main { padding: 40px 16px; align-items: start; } }
