/* update 139 (email codes): the email field under "Continue with Google" on the rebuilt pages' sign-in (board
   07-account-nav.html #signin: one field, 50px tall, the signal colour on focus; "or", the small lines under it).
   Loaded only with EMAIL_SIGNIN on (src/fp/rb/document.ts emailHead); markup from src/fp/rb/emailSignIn.client.js.
   Needs rb.css (tokens): no colour of its own. */
[data-rb-page] .rb-em { display: grid; gap: 10px; width: 100%; max-width: 360px; min-width: 0; text-align: left; }
[data-rb-page] .rb-em > * { margin: 0; min-width: 0; }
[data-rb-page] .rb-em-or { display: flex; align-items: center; gap: 10px; font-size: .75rem; line-height: 1.3; color: var(--muted); }
[data-rb-page] .rb-em-or::before, [data-rb-page] .rb-em-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
[data-rb-page] .rb-em-f { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; min-height: 50px; padding: 3px 3px 3px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surf); }
[data-rb-page] .rb-em-f:focus-within { border-color: color-mix(in srgb, var(--sig) 70%, var(--line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sig) 18%, transparent); }
[data-rb-page] .rb-em-f:has(input[aria-invalid="true"]) { border-color: var(--dn); }
/* 1rem: an iPhone zooms the page on a field whose text is smaller */
/* large text (Head of Design, 200%): the row wraps once the input would be under 8em, and the button then takes the full width */
[data-rb-page] .rb-em-f input { flex: 999 1 8em; min-width: 0; width: 100%; padding: 12px 0; background: none; border: 0; outline: 0; color: var(--fg); font: 500 1rem/1.2 var(--body); color-scheme: dark; }
[data-rb-page] .rb-em-f input::placeholder { color: var(--faint); }
[data-rb-page] .rb-em-code input { font-variant-numeric: tabular-nums; letter-spacing: .12em; }
[data-rb-page] .rb-em-code input::placeholder { letter-spacing: 0; }
[data-rb-page] .rb-em-go { flex: 1 0 auto; justify-content: center; text-align: center; min-height: 44px; padding: 0 14px; border-radius: 11px; background: var(--surf2); color: var(--fg); font: 600 .8125rem/1 var(--body); white-space: nowrap; }
[data-rb-page] .rb-em-go:hover { background: var(--line); }
[data-rb-page] .rb-em-go[aria-disabled="true"], [data-rb-page] .rb-em-link[aria-disabled="true"] { color: var(--faint); cursor: default; }
[data-rb-page] .rb-em-note { font-size: .84375rem; line-height: 1.45; color: var(--muted); text-align: center; text-wrap: balance; }
[data-rb-page] .rb-em-note b { color: var(--fg); font-weight: 600; overflow-wrap: anywhere; }
[data-rb-page] .rb-em-err { font-size: .8125rem; line-height: 1.4; color: var(--dn); text-align: center; text-wrap: balance; }
[data-rb-page] .rb-em-err:empty { display: none; }
[data-rb-page] .rb-em-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 18px; font-size: .8125rem; color: var(--muted); }
[data-rb-page] .rb-em-wait { display: inline-flex; align-items: center; gap: .25em; min-height: 44px; }
[data-rb-page] .rb-em-wait b { color: var(--fg); font-weight: 600; font-variant-numeric: tabular-nums; }
[data-rb-page] .rb-em-link { min-height: 44px; color: var(--fg); font: 600 .8125rem/1.3 var(--body); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
[data-rb-page] .rb-em-link:hover { text-decoration-color: var(--faint); }
/* the boxed sheets (alerts need an account) and the Alerts page's card: the field takes the box's width */
[data-rb-page] :is(.sheet, .dlg):not([data-ref="sheet.signin"], [data-ref="dialog.signin"]) .rb-em { max-width: none; }
@media (prefers-reduced-motion: no-preference) { [data-rb-page] .rb-em-f, [data-rb-page] .rb-em-go { transition: border-color var(--rb-t-fast) var(--rb-ease), box-shadow var(--rb-t-fast) var(--rb-ease), background-color var(--rb-t-fast) var(--rb-ease); } }
/* the code step (Head of Design g1, board 07): the code field is the one loud thing, so the Continue with Google just
   above it takes the quiet outline look (transparent, 1px line, the text colour). !important: fp.css and ov.css paint
   that button white with selectors up to two ids deep; this applies only while the code step is drawn after it. */
[data-rb-page] :is(.btn.ggl, .gbtn, .rb-si-g, [data-rb="google"]):has(+ .rb-em .rb-em-code) { background: transparent !important; border: 1px solid var(--line) !important; border-color: var(--line) !important; color: var(--fg) !important; box-shadow: none !important; }
