/* update 140+: the email field on the fp Discovery page's sign-in (sheet and dialog), the same field as the rebuilt pages'
   (assets/rb-email.css, whose rules these are, scoped to Discovery). Discovery has fp.css's tokens, not rb.css's; the
   --em-* names take the overhaul look's tokens (--ov-*, the rebuilt pages' own colours; fp.css's where the page runs without it) and touch nothing else. Loaded only with
   EMAIL_SIGNIN on (src/fp/discoveryPage.ts, rb/document.ts emailHead); markup from src/fp/rb/emailSignIn.client.js. */
body[data-fp="discovery"] { --em-surf: var(--ov-surf, var(--surface)); --em-surf2: var(--ov-surf2, var(--raised-2)); --em-fg: var(--ov-fg, var(--ink)); --em-muted: var(--ov-muted, var(--muted));
  --em-faint: var(--ov-faint, var(--faint)); --em-line: var(--ov-line, var(--line)); --em-sig: var(--ov-sig, var(--amber)); --em-dn: var(--ov-dn, var(--down)); --em-body: var(--ov-body, var(--ui)); }
body[data-fp="discovery"] .rb-em { display: grid; gap: 10px; width: 100%; max-width: 360px; min-width: 0; text-align: left; }
body[data-fp="discovery"] .rb-em > * { margin: 0; min-width: 0; }
body[data-fp="discovery"] .rb-em-or { display: flex; align-items: center; gap: 10px; font-size: .75rem; line-height: 1.3; color: var(--em-muted); }
body[data-fp="discovery"] .rb-em-or::before, body[data-fp="discovery"] .rb-em-or::after { content: ""; flex: 1; height: 1px; background: var(--em-line); }
body[data-fp="discovery"] .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(--em-line); background: var(--em-surf); }
body[data-fp="discovery"] .rb-em-f:focus-within { border-color: color-mix(in srgb, var(--em-sig) 70%, var(--em-line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--em-sig) 18%, transparent); }
body[data-fp="discovery"] .rb-em-f:has(input[aria-invalid="true"]) { border-color: var(--em-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 */
body[data-fp="discovery"] .rb-em-f input { flex: 999 1 8em; min-width: 0; width: 100%; padding: 12px 0; background: none; border: 0; outline: 0; color: var(--em-fg); font: 500 1rem/1.2 var(--em-body); color-scheme: dark; }
body[data-fp="discovery"] .rb-em-f input::placeholder { color: var(--em-faint); }
body[data-fp="discovery"] .rb-em-code input { font-variant-numeric: tabular-nums; letter-spacing: .12em; }
body[data-fp="discovery"] .rb-em-code input::placeholder { letter-spacing: 0; }
body[data-fp="discovery"] .rb-em-go { flex: 1 0 auto; min-height: 44px; padding: 0 14px; border-radius: 11px; background: var(--em-surf2); color: var(--em-fg); font: 600 .8125rem/1 var(--em-body); white-space: nowrap; }
body[data-fp="discovery"] .rb-em-go:hover { background: var(--em-line); }
body[data-fp="discovery"] .rb-em-go[aria-disabled="true"], body[data-fp="discovery"] .rb-em-link[aria-disabled="true"] { color: var(--em-faint); cursor: default; }
body[data-fp="discovery"] .rb-em-note { font-size: .84375rem; line-height: 1.45; color: var(--em-muted); text-align: center; text-wrap: balance; }
body[data-fp="discovery"] .rb-em-note b { color: var(--em-fg); font-weight: 600; overflow-wrap: anywhere; }
body[data-fp="discovery"] .rb-em-err { font-size: .8125rem; line-height: 1.4; color: var(--em-dn); text-align: center; text-wrap: balance; }
body[data-fp="discovery"] .rb-em-err:empty { display: none; }
body[data-fp="discovery"] .rb-em-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 18px; font-size: .8125rem; color: var(--em-muted); }
body[data-fp="discovery"] .rb-em-wait { display: inline-flex; align-items: center; gap: .25em; min-height: 44px; }
body[data-fp="discovery"] .rb-em-wait b { color: var(--em-fg); font-weight: 600; font-variant-numeric: tabular-nums; }
body[data-fp="discovery"] .rb-em-link { min-height: 44px; color: var(--em-fg); font: 600 .8125rem/1.3 var(--em-body); text-decoration: underline; text-decoration-color: var(--em-line); text-underline-offset: 3px; }
body[data-fp="discovery"] .rb-em-link:hover { text-decoration-color: var(--em-faint); }
/* the boxed sheets (alerts need an account) and the Alerts page's card: the field takes the box's width */
body[data-fp="discovery"] :is(.sheet, .dlg):not([data-ref="sheet.signin"], [data-ref="dialog.signin"]) .rb-em { max-width: none; }
@media (prefers-reduced-motion: no-preference) { body[data-fp="discovery"] .rb-em-f, body[data-fp="discovery"] .rb-em-go { transition: border-color var(--rb-t-fast, 160ms) var(--rb-ease, cubic-bezier(.2, .8, .2, 1)), box-shadow var(--rb-t-fast, 160ms) var(--rb-ease, cubic-bezier(.2, .8, .2, 1)), background-color var(--rb-t-fast, 160ms) var(--rb-ease, cubic-bezier(.2, .8, .2, 1)); } }
/* 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. */
body[data-fp="discovery"] :is(.btn.ggl, .gbtn, .rb-si-g, [data-rb="google"]):has(+ .rb-em .rb-em-code) { background: transparent !important; border: 1px solid var(--em-line) !important; border-color: var(--em-line) !important; color: var(--em-fg) !important; box-shadow: none !important; }
