/* Account pages (/account/*). Loaded after the site's /style.css and uses its tokens (--ink, --bone, --hazard, ...).
   No animations or flashing; focus rings match the site (hazard yellow). */

/* The `hidden` attribute must win over the display rules below (cards are grids). */
.acct [hidden] { display: none !important; }

main.acct { max-width: 980px; margin: 0 auto; padding: clamp(32px, 6vw, 64px) var(--gutter) 72px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.acct-head { display: grid; gap: 12px; }
#dash { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.acct-head h1 { font-size: clamp(38px, 6vw, 64px); text-shadow: 4px 4px 0 var(--blood-deep); }
.acct a:not(.btn) { color: var(--hazard); }
.acct h2 { font-size: clamp(24px, 3vw, 30px); text-shadow: 2px 2px 0 var(--blood-deep); }
.acct h3 { font-size: 20px; }

.acct-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.acct-card { background: var(--ink-2); border: 1px solid var(--line); border-top: 3px solid var(--tile); border-radius: 6px; padding: clamp(18px, 3vw, 28px); display: grid; gap: 14px; align-content: start; min-width: 0; }
.acct-narrow { max-width: 620px; width: 100%; }
.acct-card > .btn, .acct-card > .cta { justify-self: start; }
.acct-danger { border-top-color: var(--blood); }
.acct-soon { border-style: dashed; border-top-style: solid; border-top-color: var(--line); background: transparent; }
.acct-tag { font: var(--label); letter-spacing: .14em; text-transform: uppercase; color: var(--hazard); border: 1px solid var(--hazard); border-radius: 3px; padding: 5px 9px 4px; width: fit-content; }

.acct-form { display: grid; gap: 10px; min-width: 0; }
.acct-form + .acct-form { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 4px; }
.acct-form label { font-weight: 700; font-size: 15px; }
.acct-form input[type="email"], .acct-form input[type="text"] {
  width: 100%; min-width: 0; font: 500 17px/1.3 var(--body); color: var(--bone); background: var(--ink); border: 2px solid var(--line);
  border-radius: 4px; padding: 11px 12px; }
.acct-form input:focus-visible { outline: 2px solid var(--hazard); outline-offset: 2px; border-color: var(--hazard); }
.acct-form input:disabled, .btn:disabled { opacity: .55; cursor: not-allowed; }
.acct-form .btn { justify-self: start; }
.acct-code { font-family: var(--mono) !important; letter-spacing: .2em; max-width: 16ch; }
.acct-row { display: flex; gap: 10px; flex-wrap: wrap; }
.acct-row input { flex: 1 1 220px; }
.acct-check { display: flex; gap: 10px; align-items: flex-start; }
.acct-check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--hazard); }
.acct-check label { font-weight: 700; }
.acct-turnstile { min-height: 65px; }

button.btn { cursor: pointer; }
.btn.danger { border-color: var(--blood); color: #ffd9d6; }
.btn.danger:hover { background: rgba(208, 58, 49, .18); }

.acct-msg { border: 1px solid var(--blood); border-left-width: 6px; background: #1c0f0e; border-radius: 4px; padding: 12px 14px; }
.acct-msg.ok { border-color: var(--tile); background: #0e1a16; }
.acct-msg.info { border-color: var(--hazard); background: #1b170c; }
.acct-dev { font-family: var(--mono); border: 2px dashed var(--hazard); color: var(--hazard); padding: 10px 14px; border-radius: 4px; }

.acct-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.acct-list li { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 4px; padding: 12px 14px; background: var(--ink-3); }
.acct-list li > div:first-child { display: grid; gap: 2px; min-width: 0; }
.acct-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.acct-dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; }
.acct-dl dt { font-weight: 700; color: var(--fog); }
.acct-dl dd { margin: 0; overflow-wrap: anywhere; }

.acct-steps { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.acct-secret { font-family: var(--mono); background: var(--ink); border: 1px solid var(--line); padding: 2px 6px; border-radius: 3px; overflow-wrap: anywhere; user-select: all; }
.acct-qr { width: min(240px, 100%); background: #fff; border-radius: 4px; padding: 0; }
.acct-qr svg { display: block; width: 100%; height: auto; }
.acct-recovery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr)); gap: 8px; }
.acct-recovery li { font: 700 16px/1.2 var(--mono); letter-spacing: .04em; white-space: nowrap; background: var(--ink); border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px; text-align: center; }

@media (max-width: 430px) { .acct-list li { align-items: flex-start; } }
