/* Accounts and the member area: sign in and up, the account page, the app's /device page.
   The same night as the home page: site.css tokens, Fraunces heads, the route's glowing line. */

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Page frame: the head every page has, then one column */
.acct { position: relative; padding-top: 56px; padding-bottom: 12px; }
.acct::before { content: ""; position: absolute; inset: -80px 0 auto; height: 460px; pointer-events: none; z-index: -1;
  background: radial-gradient(46% 60% at 18% 30%, rgba(90, 209, 255, .11), transparent 70%); }
.acct-head { margin: 0 0 32px; max-width: 760px; }
.acct-head h1 { margin: 0; }
.acct-head .lead { margin: 18px 0 0; }
.acct-col { max-width: 520px; }
.acct-col .acct-head h1 { font-size: clamp(44px, 5.4vw, 72px); }
@media (max-width: 700px) { .acct { padding-top: 30px; } .acct-head { margin-bottom: 24px; } }

/* Forms: big fields (members.css), one button */
.acct .form-card { gap: 0; padding: 30px; }
.acct .field { margin: 0 0 20px; }
.acct .code-form input { min-height: 54px; font-size: 18px; padding: 12px 16px; }
.btn-wide { width: 100%; margin-top: 6px; }
.acct .form-card .btn-wide { justify-self: stretch; }
.form-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin: 22px 0 0; font-size: 15.5px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.dev-note { margin: 22px 0 0; padding: 12px 16px; border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); color: var(--muted); font-size: 14.5px; }
@media (max-width: 480px) { .acct .form-card { padding: 22px 18px; } }

.gap-after { margin-bottom: 18px; }
.acct-head .address { color: var(--text); overflow-wrap: anywhere; }
.code-note { margin: 18px 0 0; }
.glow-danger { box-shadow: inset 0 0 0 1px rgba(255, 138, 122, .45), 0 30px 80px -30px rgba(0, 0, 0, .9), 0 0 80px -36px rgba(255, 138, 122, .45); }
.pending .help { margin: 0 0 6px; }
.pending .address { margin: 0 0 14px; color: var(--text); }

/* Sign in and up: the form, and a screen from the app beside it (as on the waitlist page) */
.entrance { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 72px; align-items: start; }
@media (max-width: 1000px) { .entrance { grid-template-columns: minmax(0, 1fr); } .entrance-aside { display: none; } }

/* The account page: licence, PC and bot as stops on a short route, settings beside them */
.acct-home { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 48px 72px; align-items: start; }
@media (max-width: 1000px) { .acct-home { grid-template-columns: minmax(0, 1fr); } }
.status { list-style: none; margin: 0; padding: 0; }
.status > li { --c: var(--accent); position: relative; padding: 0 0 46px 62px; }
.status > li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--core); z-index: 1;
  box-shadow: 0 0 0 5px var(--bg), 0 0 0 7px var(--c), 0 0 26px var(--c); }
.status > li::after { content: ""; position: absolute; left: 9px; top: 14px; bottom: -14px; width: 4px;
  background: linear-gradient(90deg, transparent 1.25px, rgba(240, 250, 255, .7) 1.25px 2.75px, transparent 2.75px), linear-gradient(var(--c), var(--c-next, var(--c)));
  box-shadow: 0 0 14px 1px color-mix(in srgb, var(--c) 50%, transparent); }
.status > li:last-child { padding-bottom: 8px; }
.status > li:last-child::after { display: none; }
.status > li.off { --c: #4a5872; }
.status > li.off::before { background: var(--surface-2); box-shadow: 0 0 0 5px var(--bg), 0 0 0 7px var(--c); }
.status > li.off::after { box-shadow: none; }
.status .group { margin: 0 0 10px; line-height: 1; }
.status > li.off .group { color: var(--muted); }
.status h2 { margin: 0; font-size: clamp(30px, 3.1vw, 44px); line-height: 1.05; }
.status .status-note { margin: 10px 0 0; color: var(--muted); }
.status .act { margin: 18px 0 0; }
.status form { margin: 0; }
.code-form { display: flex; gap: 10px; max-width: 440px; }
.code-form input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .08em; }
.code-form input::placeholder { text-transform: none; letter-spacing: 0; }
.code-form .btn { flex: none; min-height: 54px; }
.go { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 0 62px; }
@media (max-width: 700px) {
  .status > li { padding-left: 46px; padding-bottom: 38px; }
  .go { margin-left: 0; }
  .code-form { flex-direction: column; }
}

/* A small confirm in place: the summary is the button, the real action is inside */
details.confirm { border: 0; padding: 0; }
details.confirm:last-child { border: 0; }
details.confirm > summary { list-style: none; display: inline-flex; }
details.confirm > summary::-webkit-details-marker { display: none; }
details.confirm[open] > summary { opacity: .6; }
details.confirm .confirm-body { margin-top: 14px; padding: 16px 18px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); max-width: 460px; }
details.confirm .confirm-body p { margin: 0 0 14px; color: var(--text-2); font-size: 15px; }
details.confirm .confirm-body .btn { margin: 0; }
details.disclose { border: 0; padding: 0; }
details.disclose:last-child { border: 0; }
details.disclose > summary { list-style: none; display: inline-block; font-weight: 400; color: var(--text-2); border-bottom: 1px solid rgba(195, 203, 216, .35); padding-bottom: 2px; }
details.disclose > summary::-webkit-details-marker { display: none; }
details.disclose > summary:hover { color: var(--text); border-color: var(--accent); }
details.disclose[open] > summary { margin-bottom: 14px; }

/* Settings: label, value, one link per row */
.settings { padding: 8px 26px 18px; }
.settings h2 { margin: 18px 0 6px; font-size: 24px; }
.rows { margin: 0; }
.rows > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--border); }
.rows > div:last-child { border-bottom: 0; }
.rows dt { color: var(--text); font-weight: 600; font-size: 15.5px; }
.rows dd { margin: 0; }
.rows .value { grid-column: 1; color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }
.rows .do { grid-column: 2; grid-row: 1 / span 2; font-size: 15px; }
.rows .on { color: var(--ok); }
.settings .leave { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 15px; }
.settings .leave form { margin: 0; }
/* A button that looks like the site's quiet link (beats site.css "form button:not(.btn)") */
button.link-button, form button.link-button { min-height: 0; padding: 0 0 2px; border: 0; border-bottom: 1px solid rgba(195, 203, 216, .35); border-radius: 0;
  background: none; color: var(--text-2); font: inherit; font-weight: 400; cursor: pointer; }
button.link-button:hover, form button.link-button:hover { color: var(--text); border-color: var(--accent); }
.danger-link { color: var(--danger); border-color: rgba(255, 138, 122, .45); }
.danger-link:hover { color: var(--danger); border-color: var(--danger); }

/* The app's sign-in page (/device): the code, large */
.code-input { min-height: 76px !important; font-size: clamp(28px, 4vw, 38px) !important; letter-spacing: .2em; }
.ticket { display: grid; gap: 6px; justify-items: center; margin: 0 0 24px; padding: 20px 16px; border-radius: 14px; background: var(--bg); text-align: center;
  box-shadow: inset 0 0 0 1px rgba(90, 209, 255, .45), 0 0 46px -14px rgba(90, 209, 255, .6); }
.ticket b { font: 600 clamp(30px, 4.4vw, 42px)/1 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .16em; color: var(--core); text-shadow: 0 0 22px rgba(90, 209, 255, .55); }
.ticket span { color: var(--muted); font-size: 14.5px; }
.choose { margin: 0 0 22px; padding: 16px 18px; border: 0; border-radius: 12px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); }
.choose legend { float: left; width: 100%; padding: 0; color: var(--text); font-weight: 600; }
.choose label { clear: both; display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 0 0; font-weight: 500; border-top: 0; }
.choose .help { clear: both; }
.choose label input { flex: none; margin: 0; }
.pair { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 12px; }
.pair .btn { width: 100%; }
.done-mark { width: 22px; height: 22px; border-radius: 50%; background: var(--core); box-shadow: 0 0 0 5px var(--bg), 0 0 0 7px var(--c, var(--ok)), 0 0 30px var(--c, var(--ok)); margin: 6px 0 30px 6px; }

/* Two-step sign-in */
.qr { display: block; width: 216px; height: 216px; padding: 12px; border-radius: 14px; background: #fff; margin: 0 0 18px; }
.secret { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 15px; letter-spacing: .06em; color: var(--text); overflow-wrap: anywhere; user-select: all; }
.step { margin: 0 0 8px; color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; margin: 0 0 22px; padding: 18px; list-style: none; border-radius: 12px; background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--border); font: 17px/1.5 ui-monospace, "Cascadia Mono", Consolas, monospace; color: var(--text); letter-spacing: .06em; }
.acct .actions .btn { margin: 0; }

/* Signed in on: one browser per row */
.browsers .label { margin-left: 8px; }
.acct-after { margin-top: 24px; }
.qr-key { margin: 0 0 4px; }
.step + .field, .secret + .step { margin-top: 14px; }

/* Development outbox */
.mails { display: grid; gap: 16px; max-width: 860px; }
.mail h2 { margin: 0 0 6px; font: 600 19px/1.3 var(--sans); letter-spacing: 0; }
.mail .meta { margin: 0 0 14px; color: var(--muted); font-size: 14.5px; }
.mail pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 15px/1.55 var(--sans); color: var(--text-2); }
.mail .links { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; }
