/* Mail-Block Connected Accounts. WCAG 2.2 AA oriented. No external fonts or scripts. */
:root {
  --blue: #004797; --blue-dark: #003564; --ink: #1a1f2e; --muted: #3d4a5c; --line: #b7c2d0;
  --bg: #f3f6fa; --card: #ffffff; --ok: #0b5e34; --ok-bg: #e4f6ec; --warn: #5c3300; --warn-bg: #fff3d9;
  --danger: #8e1515; --danger-bg: #fdecec; --focus: #004890; --stage: #fff3d9;
}
* { box-sizing: border-box; }
html { font-size: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 1.0625rem/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.wrap { max-width: 62rem; margin: 0 auto; padding: 0 1rem; }
main { padding-top: 1rem; padding-bottom: 3rem; }
main:focus { outline: none; }
h1 { font-size: 2rem; line-height: 1.2; margin: 1rem 0 .75rem; color: var(--navy, #0a2540); }
h2 { font-size: 1.35rem; margin: 2rem 0 .5rem; color: #0a2540; }
p { margin: .6rem 0; max-width: 46rem; }
.lead { font-size: 1.2rem; }
.small { font-size: .95rem; color: var(--muted); }
a { color: var(--blue); text-decoration: underline; text-underline-offset: .15em; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 5px #fff; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; color: var(--blue-dark); padding: .75rem 1rem; z-index: 10; border: 2px solid var(--blue); }
.skip:focus { left: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.stagebar { background: var(--stage); color: var(--warn); border-bottom: 1px solid #e3c88a; text-align: center; padding: .4rem 1rem; font-size: .95rem; }
header.site { background: #fff; border-bottom: 1px solid var(--line); }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding-top: .6rem; padding-bottom: .6rem; }
.brand { font-weight: 700; font-size: 1.3rem; color: #0a2540; text-decoration: none; }
.brand-sub { font-weight: 400; font-size: 1rem; color: var(--muted); }
.nav { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin: 0; padding: 0; align-items: center; }
.nav a, .linklike { display: inline-block; min-height: 44px; line-height: 44px; padding: 0 .25rem; color: var(--blue); }
.nav a[aria-current="page"] { font-weight: 700; color: #0a2540; text-decoration-thickness: 3px; }
.linklike { background: none; border: 0; font: inherit; text-decoration: underline; cursor: pointer; }
form.inline { display: inline; margin: 0; }
footer.site { border-top: 1px solid var(--line); background: #fff; padding: 1rem 0; color: var(--muted); }
footer.site p { margin: .2rem 0; }
.live { min-height: 0; }
.live:not(:empty) { margin: 1rem 0 0; padding: .75rem 1rem; border-radius: 8px; border: 2px solid var(--ok); background: var(--ok-bg); color: var(--ok); font-weight: 600; max-width: 46rem; }
#alert:not(:empty) { border-color: var(--danger); background: var(--danger-bg); color: var(--danger); }
.btn { display: inline-block; min-height: 44px; min-width: 44px; padding: .55rem 1.1rem; border-radius: 8px; border: 2px solid var(--blue); background: #fff; color: var(--blue-dark); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; text-align: center; }
.btn:hover { background: #e7f0f8; }
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-dark); }
.btn.danger { border-color: var(--danger); color: var(--danger); background: #fff; }
.btn.danger:hover { background: var(--danger-bg); }
.btn.small { min-height: 44px; padding: .3rem .8rem; }
.btn.disabled { opacity: 1; background: #5b6675; border-color: #5b6675; color: #fff; cursor: not-allowed; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.25rem; margin-top: 1.5rem; max-width: 46rem; }
.panel h2 { margin-top: .25rem; }
.notice { background: var(--warn-bg); color: var(--warn); border: 1px solid #d9b45f; border-radius: 8px; padding: .6rem .9rem; }
.banner { border-radius: 12px; padding: .5rem 1rem; margin: 1rem 0; max-width: 46rem; }
.banner.warn { background: var(--warn-bg); color: var(--warn); border: 2px solid #b27a00; }
.banner h2 { margin-top: .5rem; color: var(--warn); }
.steps, .plain { max-width: 46rem; padding-left: 1.4rem; }
.steps li, .plain li { margin: .5rem 0; }
.count { font-weight: 400; color: var(--muted); }
.tablewrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; min-width: 46rem; }
th, td { text-align: left; vertical-align: top; padding: .7rem .8rem; border-bottom: 1px solid var(--line); }
thead th { background: #e7f0f8; color: #0a2540; }
tbody tr:last-child > * { border-bottom: 0; }
tbody th { font-weight: 600; }
.addr { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .95rem; color: var(--muted); word-break: break-all; }
.subject { overflow-wrap: anywhere; }
.actions { white-space: nowrap; }
.actions form { display: inline-block; margin: 0 .35rem .35rem 0; }
.empty { color: var(--muted); padding: .5rem 0; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.5rem; max-width: 46rem; }
dl.facts dt { font-weight: 600; } dl.facts dd { margin: 0; }
.entries { list-style: none; padding: 0; margin: .5rem 0; max-width: 46rem; }
.entries li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .35rem 0; border-bottom: 1px solid var(--line); }
.check { display: flex; gap: .6rem; align-items: flex-start; }
.check input { width: 1.5rem; height: 1.5rem; margin-top: .15rem; }
@media (max-width: 40rem) { h1 { font-size: 1.6rem; } dl.facts { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media (forced-colors: active) { .btn { border: 2px solid ButtonText; } .btn.primary { forced-color-adjust: none; background: Highlight; color: HighlightText; } }
.left { white-space: nowrap; } .left .small { white-space: normal; display: inline-block; max-width: 14rem; }
.left.soon { color: var(--warn); font-weight: 600; }
/* Google's official sign-in button artwork (unaltered SVG); button keeps a visible focus ring. */
.gsi-btn { display: inline-block; padding: 0; border: 0; background: transparent; border-radius: 20px; cursor: pointer; line-height: 0; min-height: 44px; }
.gsi-btn img { display: block; height: 44px; width: auto; }
.gsi-btn:focus-visible { outline: 3px solid var(--blue-dark); outline-offset: 3px; }
/* Official Google artwork is not recoloured; opacity shows it is not available until the Privacy box is ticked. */
.gsi-btn.is-disabled, .gsi-btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
form:has(#agree:checked) .gsi-btn, form:has(#agree:checked) .gsi-btn.is-disabled, form:has(#agree:checked) .gsi-btn[aria-disabled="true"] { opacity: 1; cursor: pointer; }
