/* Settings > Account (the opt-in accounts build only; prototype/ACCOUNTS.md). The app's tokens and classes
   (template.html: .btn, .set-h4, .how, .note, .set-status, .sheet-sec) do most of the work; these rules add the
   form fields, the name choices, the parent notice and the platforms' sign-in buttons.
   No inline styles anywhere (the CSP has no 'unsafe-inline'): accounts.js only sets classes and attributes. */

.acct[hidden]{display:none}
/* a sign-up, sign-in or reset step fills the sheet: the other Settings sections step aside until it ends */
#set-body.acct-flow > :not(#acct){display:none}
.acct-step{margin-top:6px}
.acct-step:focus{outline:none}
.acct-step:focus-visible{outline:2.5px solid var(--focus);outline-offset:3px;border-radius:8px}
.acct .how + .how{margin-top:8px}
.acct .set-acts{margin-top:18px}
/* a long label (the parent's button in English) wraps onto two even lines with room between them */
.acct .btn-block{line-height:1.25;padding-top:11px;padding-bottom:11px;text-align:center;text-wrap:balance}
.acct .note{margin-top:14px}
.acct-who{font:400 17px/1.45 var(--font-read);color:var(--ink)}
.acct-who b{font-family:var(--font-ui);font-weight:600;overflow-wrap:anywhere}
.acct-danger{color:var(--accent-text)}

/* fields */
.acct-label{display:block;font:600 15px/1.3 var(--font-ui);color:var(--ink);margin:16px 0 6px}
.acct-input{display:block;width:100%;min-height:52px;padding:0 16px;border-radius:16px;border:0;background:var(--surface-strong);color:var(--ink);
  font:500 17px/1.2 var(--font-ui);box-shadow:inset 0 0 0 1.5px var(--hair)}
.acct-input:focus{outline:2.5px solid var(--focus);outline-offset:2px}
/* a label kept for screen readers only (it would repeat the step's heading, R141): the field keeps its room */
.acct-label.sr-only + .acct-input{margin-top:16px}
.acct-hint{margin-top:6px;font-size:14px;line-height:1.45;color:var(--ink-2)}
.acct-check{display:flex;align-items:flex-start;gap:12px;min-height:44px;padding:10px 0;font:400 16px/1.45 var(--font-ui);color:var(--ink);cursor:pointer}
.acct-check input{flex:none;width:22px;height:22px;margin:1px 0 0;accent-color:var(--btn-bg)}
.acct-link-p{margin-top:12px}
.acct-link{display:inline-flex;align-items:center;min-height:44px;font:600 16px/1.3 var(--font-ui);color:var(--accent-text);
  text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1.5px}
.acct-ver{margin-top:8px;font-size:13.5px;color:var(--ink-2)}
.acct .text-btn{margin-top:6px}
.acct-or{display:flex;align-items:center;gap:12px;margin:18px 0 0;font:600 13px/1 var(--font-ui);letter-spacing:.08em;text-transform:uppercase;color:var(--ink-2)}
.acct-or::before,.acct-or::after{content:"";flex:1;border-top:1px solid var(--hair)}
.acct[aria-busy="true"]{cursor:progress}
/* the live region stays in place, empty and unseen until a message arrives */
.acct .acct-msg:empty{padding:0;margin:0;background:none;box-shadow:none}

/* "Cách đăng nhập": one row per way in, its name and, while another remains, "Bỏ" (>= 52 px) */
.acct-ways{margin-top:20px}
.acct-way-list{list-style:none;margin:8px 0 0;padding:0;border-top:1px solid var(--hair)}
.acct-way{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;padding:4px 0;border-bottom:1px solid var(--hair)}
.acct-way-name{font:500 16px/1.35 var(--font-ui);color:var(--ink);overflow-wrap:anywhere}
.acct-way-rm{flex:none;margin:0}
.acct .acct-way .text-btn{margin-top:0}

/* the suggested names: radio rows, one name each (>= 52 px) */
.acct-names{display:grid;gap:10px;margin-top:16px}
.acct-name{display:flex;align-items:center;gap:14px;min-height:56px;padding:0 16px;border-radius:16px;background:var(--surface-strong);
  box-shadow:inset 0 0 0 1.5px var(--hair);font:600 18px/1.2 var(--font-ui);color:var(--ink);cursor:pointer;overflow-wrap:anywhere}
.acct-name input{flex:none;width:22px;height:22px;margin:0;accent-color:var(--btn-bg)}
.acct-name:has(input:checked){box-shadow:inset 0 0 0 2.5px var(--btn-bg)}
.acct-name:has(input:focus-visible){outline:2.5px solid var(--focus);outline-offset:2px}

/* the parent notice: set apart, so who is reading is clear */
.acct-parent{margin-top:4px;padding:16px 16px 18px;border-radius:18px;background:var(--surface-sunk);box-shadow:inset 0 0 0 1.5px var(--hair)}
.acct-parent .how{color:var(--ink)}
.acct-parent .note{background:var(--surface-strong)}

/* Google's and Facebook's own buttons: their wording ("Continue with Google" / "Tiếp tục với Google") and colours
   (Google: white with a #747775 edge and the four-colour G, its dark variant on the dark themes; Facebook: the
   brand blue #0866FF with the white f). The logos are drawn in the page (accounts.js), never fetched. Height 48 px
   (the app's touch size, over Google's 40); the system sans, since Roboto is not shipped. */
.acct-social{appearance:none;display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:48px;padding:0 20px;
  border-radius:999px;border:0;cursor:pointer;font:500 16px/1.2 ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;letter-spacing:.01em}
.acct-social .acct-social-logo{flex:none}
.acct-google{background:#FFFFFF;color:#1F1F1F;box-shadow:inset 0 0 0 1px #747775}
.acct-google:hover{background:#F8F9FA}
:root[data-theme="navy"] .acct-google,:root[data-theme="chalk"] .acct-google{background:#131314;color:#E3E3E3;box-shadow:inset 0 0 0 1px #8E918F}
:root[data-theme="navy"] .acct-google:hover,:root[data-theme="chalk"] .acct-google:hover{background:#1F1F21}
.acct-facebook{background:#0866FF;color:#FFFFFF;font-weight:600}
.acct-facebook:hover{background:#0758DB}
.acct-social:focus-visible{outline:2.5px solid var(--focus);outline-offset:3px}
.acct-social:disabled,.acct .btn:disabled{opacity:.55;cursor:default}
.acct-socials{gap:10px}
.acct-socials + .how{margin-top:12px}

/* Outside Settings (template.html's two @accounts rows; accounts.js fills and shows them). The first screen's "Đã có
   tài khoản? Đăng nhập" takes the import link's place under Start, with the grid's gap: this build has no first-screen
   import link (accounts_build.ielts_page, 17 October 2026; Settings keeps the import). The result screen's one-time
   "Lưu tiến độ để học trên máy khác" sits under its main button, as quiet as that link; it comes in with the button (.r5). */
/* production's "accounts are coming later" line: this build has them (accounts.js also removes it, after the first screen) */
#w-later{display:none}
.r-acct{margin-top:10px;text-align:center}

/* the draft accounts notice (accounts-notice/): its tables and placeholders on the trust pages' styles */
.doc table{border-collapse:collapse;width:100%;margin:16px 0;font-size:15px;line-height:1.45}
.doc th,.doc td{text-align:left;vertical-align:top;padding:8px 10px 8px 0;border-top:1px solid var(--hair)}
.doc thead th{border-top:0}
mark.ph{background:var(--accent-soft);color:inherit;padding:0 2px;border-radius:3px}
