/* Login, confirm, onboarding and account pages (on top of style.css). */
.acc { margin: auto; width: 100%; max-width: 440px; padding: 28px 16px calc(env(safe-area-inset-bottom) + 28px); box-sizing: border-box; }
.acc .brand { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; font: 700 20px var(--display); }
.acc .brand img { width: 36px; height: 36px; border-radius: 10px; }
.acc h1 { font: 600 28px var(--display); margin: 0 0 6px; }
.acc h2 { font: 600 18px var(--display); margin: 26px 0 8px; }
.acc p { color: var(--muted); margin: 0 0 16px; line-height: 1.5; }
.acc form { display: grid; gap: 14px; }
.acc label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.acc label small { font-weight: 400; color: var(--muted); }
.acc input, .acc select { font: inherit; font-size: 17px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); min-width: 0; min-height: 48px; box-sizing: border-box; width: 100%; }
.acc input:focus-visible, .acc select:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.acc .primary { width: 100%; min-height: 52px; font-size: 17px; }
.acc .ghost { min-height: 44px; }
.acc .err { color: var(--bad); font-weight: 600; margin: 0; }
.acc .ok-box { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.acc .ok-box b { display: block; font-size: 18px; margin-bottom: 6px; color: var(--ink); }
.acc .choices { display: grid; gap: 8px; }
.acc .choice { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface); font-weight: 500; min-height: 48px; box-sizing: border-box; }
.acc .choice input { flex: none; width: 22px; height: 22px; min-height: 0; margin: 0; padding: 0; accent-color: var(--accent-text); }
.acc .choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent); }
.acc .choice:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.acc .choice span small { display: block; color: var(--muted); font-weight: 400; }
.acc .sess { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface); margin-bottom: 8px; }
.acc .sess span { color: var(--muted); font-size: 14px; }
.acc .row { display: flex; gap: 10px; flex-wrap: wrap; }
.acc .linkish { background: none; border: 0; color: var(--accent-text); padding: 8px 0; font-weight: 600; text-decoration: underline; min-height: 44px; }
.acc [hidden] { display: none !important; }
.acc .dev-out { display: grid; gap: 12px; margin-top: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.acc .dev-out .qr { width: min(240px, 100%); aspect-ratio: 1; justify-self: center; background: #fff; border-radius: 12px; overflow: hidden; }
.acc .dev-out .qr svg { display: block; width: 100%; height: 100%; }
.acc .dev-out code { font: 600 13px/1.4 ui-monospace, monospace; overflow-wrap: anywhere; word-break: break-all; user-select: all; }
/* Notices at onboarding (AI, voice, private details, age) and the danger zone on the account page. */
.acc .notice { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; display: grid; gap: 8px; }
.acc .notice h3 { font: 600 16px var(--display); margin: 0; color: var(--ink); }
.acc .notice p, .acc .notice ul { margin: 0; color: var(--muted); line-height: 1.5; font-size: 15px; }
.acc .notice ul { padding-inline-start: 20px; }
.acc .notice .choice { font-weight: 600; align-items: flex-start; }
.acc .notice .choice input { margin-top: 3px; width: 20px; height: 20px; flex: none; }
.acc .legal { font-size: 14px; color: var(--muted); margin-top: 22px; display: flex; gap: 16px; flex-wrap: wrap; }
.acc .legal a { color: var(--accent-text); display: inline-flex; align-items: center; min-height: 44px; }
.acc .danger { border: 1px solid var(--bad); border-radius: 18px; padding: 14px 16px; display: grid; gap: 10px; }
.acc .danger p { margin: 0; }
.acc .danger .del { background: var(--bad); color: var(--surface); border: 0; border-radius: 14px; min-height: 48px; font: inherit; font-weight: 700; padding: 0 20px; }
.acc .danger .del:disabled { opacity: .5; }
/* Legal pages (privacy, contact): longer text, wider column, tables that scroll on phones. */
.acc.doc { max-width: 720px; }
.acc.doc h2 { scroll-margin-top: 16px; }
.acc.doc h3 { font: 600 16px var(--display); margin: 18px 0 6px; }
.acc.doc p, .acc.doc li { color: var(--ink); line-height: 1.55; }
.acc.doc ul, .acc.doc ol { margin: 0 0 16px; padding-inline-start: 22px; line-height: 1.55; }
.acc.doc li { margin-bottom: 4px; }
.acc.doc a { color: var(--accent-text); overflow-wrap: anywhere; }
.acc.doc .meta { color: var(--muted); font-size: 14px; }
.acc.doc .box { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; margin: 0 0 18px; }
.acc.doc .box h2 { margin-top: 0; }
.acc.doc .box p:last-child, .acc.doc .box ul:last-child { margin-bottom: 0; }
.acc.doc .toc ol { margin: 0; padding-inline-start: 22px; columns: 2 220px; }
.acc.doc .scroll { overflow-x: auto; margin: 0 0 16px; -webkit-overflow-scrolling: touch; }
.acc.doc table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 14px; }
.acc.doc th, .acc.doc td { text-align: start; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); line-height: 1.45; }
.acc.doc th { font-weight: 700; background: var(--surface); }
.acc.doc code { font: 600 13px ui-monospace, monospace; overflow-wrap: anywhere; }
/* Login help (login-help.js): button-style links, the "switch account?" warning, the login code. */
.acc a.ask-link { display: grid; place-items: center; text-align: center; text-decoration: none; min-height: 52px; box-sizing: border-box; padding: 8px 16px; border-radius: 16px; }
.acc .bad-acts { display: grid; gap: 10px; }
.acc .bad-acts p { margin: 0; }
.acc .warn-box { border-color: var(--accent); }
.acc .code-input { font: 700 22px ui-monospace, monospace; letter-spacing: 3px; text-transform: uppercase; text-align: center; }
.acc .code-box { margin-top: 28px; padding-top: 6px; border-top: 1px solid var(--line); }
.acc .code-box.first { margin-top: 0; border-top: 0; padding-top: 0; margin-bottom: 28px; }
.acc .dev-code, .dev-code { font: 700 18px ui-monospace, monospace; letter-spacing: 2px; user-select: all; white-space: nowrap; }
.acc .step-no { font-size: 14px; font-weight: 700; color: var(--accent-text); margin: 0 0 4px; min-height: 1em; }
.acc .hint-box { background: var(--chip); color: var(--chip-ink); border-radius: 14px; padding: 10px 14px; font-size: 15px; margin: 0; }
.acc .hint-box:empty { display: none; }
/* Reminders (public/reminders.js) */
.acc .rm-toggle { display: flex; align-items: center; gap: 12px; min-height: 48px; margin-bottom: 8px; }
.acc .rm-toggle input { flex: none; width: 24px; height: 24px; min-height: 0; margin: 0; padding: 0; accent-color: var(--accent-text); }
.acc .rm-form { margin-bottom: 12px; }
.acc .rm-quiet { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; color: var(--ink); font-weight: 600; font-size: 15px; margin: 0; }
.acc .rm-quiet input { width: auto; flex: 0 1 8.5em; }
.acc .choice select { width: auto; display: inline-block; margin-inline-start: 6px; font-size: 15px; min-height: 40px; padding: 6px 10px; }
