/* Account, members and installer pages. Builds on club.css. */
.wrap.narrow { max-width: 640px; }
.wrap.mid { max-width: 980px; }
.page-account .section { padding-top: clamp(48px, 7vw, 90px); }
.page-account h1 { font-size: clamp(2.8rem, 6vw, 4.6rem); }

.stack { display: grid; gap: 20px; }
.stack .btn { justify-self: start; }
.panel.stack { padding: clamp(24px, 4vw, 36px); }
.field .form-control + .hint, .field .help { display: block; color: var(--dim); font-size: .9rem; margin-top: 6px; }
.check-row { display: flex; gap: 12px; align-items: center; font-weight: 700; cursor: pointer; }
.check-row input { width: 24px; height: 24px; accent-color: var(--amber); }
.row-links { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; margin-top: 4px; }

.note { padding: 16px 18px; border-radius: 4px; margin: 0 0 20px; font-weight: 700; border: 1px solid var(--line); background: var(--velvet); }
.note-ok { background: rgba(127, 216, 154, .12); border-color: rgba(127, 216, 154, .55); color: #c8f3d4; }
.note-error { background: rgba(255, 75, 62, .12); border-color: rgba(255, 107, 107, .6); color: #ffc0b8; }
.note-info { background: rgba(255, 178, 56, .1); border-color: rgba(255, 178, 56, .5); color: #ffe0a8; }
.note code, .checks code { background: rgba(0,0,0,.3); padding: 1px 5px; border-radius: 3px; }

.checks { list-style: none; padding: 0; margin: 0 0 28px; }
.checks li { padding: 10px 0 10px 30px; border-top: 1px solid var(--line); position: relative; }
.checks li::before { position: absolute; left: 0; font-weight: 900; }
.checks li.ok::before { content: "\2713"; color: var(--ok); }
.checks li.bad::before { content: "!"; color: #ff8a8a; left: 6px; }
.checks li.bad { color: #ffc0b8; }

.acct-grid { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: start; }
.acct-nav { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 4px; }
.acct-nav a { color: var(--screen); text-decoration: none; font-weight: 700; padding: 10px 12px; border-radius: 3px; }
.acct-nav a:hover { background: var(--velvet); color: var(--amber); }
.acct-card { background: var(--velvet); border-radius: 6px; padding: clamp(22px, 4vw, 34px); margin-bottom: 26px; scroll-margin-top: calc(var(--header-h) + 20px); }
.acct-card h2 { font-size: 2.1rem; margin-bottom: 6px; }
.acct-card > p.muted { margin-bottom: 22px; }
.acct-card .form { grid-template-columns: 1fr; max-width: 520px; }
@media (max-width: 860px) { .acct-grid { grid-template-columns: 1fr; gap: 20px; } .acct-nav { position: static; display: flex; flex-wrap: wrap; } }

.pill { display: inline-block; font-size: .82rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; background: var(--velvet-2); color: var(--screen); }
.pill.on { background: rgba(127, 216, 154, .18); color: #b9f0c9; }
.pill.off { background: rgba(255, 178, 56, .14); color: #ffd99a; }

.qr { background: #fff; padding: 14px; border-radius: 6px; width: 220px; height: 220px; margin: 8px 0 16px; }
.qr svg { width: 100%; height: 100%; display: block; }
.secret { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.05rem; letter-spacing: .08em; background: var(--ink); padding: 10px 14px; border-radius: 4px; display: inline-block; word-break: break-all; }
.codes { display: grid; grid-template-columns: repeat(2, max-content); gap: 8px 28px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.15rem; background: var(--ink); padding: 18px 22px; border-radius: 4px; margin: 12px 0 18px; }
.code-input { font-size: 1.6rem !important; letter-spacing: .3em; max-width: 220px; text-align: center; font-variant-numeric: tabular-nums; }

.devices { list-style: none; padding: 0; margin: 0 0 18px; }
.devices li { padding: 12px 0; border-top: 1px solid var(--line); }
.devices .muted { font-size: .92rem; }

.announce { border-top: 1px solid var(--line); padding: 26px 0; }
.announce h2 { font-size: 2rem; margin-bottom: 4px; }
.announce .when { color: var(--dim); font-size: .92rem; margin-bottom: 12px; }
.announce .body { max-width: 42em; }
.announce.pinned { border-top: 3px solid var(--amber); }
.welcome { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .welcome { grid-template-columns: 1fr; } }
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { border-top: 1px solid var(--line); }
.link-list a, .link-list button { display: block; width: 100%; text-align: left; padding: 14px 0; color: var(--screen); font: 700 1.02rem var(--body); text-decoration: none; background: none; border: 0; cursor: pointer; }
.link-list a:hover, .link-list button:hover { color: var(--amber); }

/* header account button */
.account-btn.signed-in { border-color: rgba(255, 178, 56, .55); color: var(--amber); }
