/* Sago Accounts: one stylesheet, no inline style, so the CSP allows styles from this host only. */
:root {
  --ink: #14213d;
  --muted: #5b6475;
  --line: #dde2ea;
  --page: #f5f7fb;
  --card: #ffffff;
  --brand: #2b59c3;
  --brand-ink: #ffffff;
  --ok: #1f7a4d;
  --ok-bg: #e7f6ee;
  --wait: #8a5a00;
  --wait-bg: #fff4dc;
  --bad: #b42318;
  --bad-bg: #fdecea;
  --info-bg: #eaf0fd;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
header.top { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; }
header.top .brand { font-weight: 700; font-size: 20px; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
header.top form { margin: 0; }
main { max-width: 560px; margin: 24px auto 64px; padding: 0 16px; }
main.wide { max-width: 860px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 24px; margin-bottom: 16px; }
h1 { font-size: 24px; margin: 0 0 8px; letter-spacing: -0.01em; }
h2 { font-size: 18px; margin: 0 0 12px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); font-size: 14px; }
label { display: block; font-weight: 600; margin: 12px 0 4px; }
input[type=email], input[type=text] {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit;
}
input[type=checkbox] { margin-right: 8px; }
.check { display: flex; align-items: flex-start; font-weight: 400; }
button, .button {
  display: inline-block; margin-top: 16px; padding: 10px 16px; border-radius: 8px; border: 1px solid var(--brand);
  background: var(--brand); color: var(--brand-ink); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
}
button.secondary, .button.secondary { background: var(--card); color: var(--brand); }
button.danger { background: var(--bad); border-color: var(--bad); }
button.link { background: none; border: none; color: var(--brand); padding: 0; margin: 0; font-weight: 500; }
.stack > * + * { margin-top: 12px; }
.or { text-align: center; color: var(--muted); margin: 16px 0; font-size: 14px; }
.notice { border-radius: 8px; padding: 12px 14px; margin-bottom: 16px; }
.notice.ok { background: var(--ok-bg); color: var(--ok); }
.notice.wait { background: var(--wait-bg); color: var(--wait); }
.notice.bad { background: var(--bad-bg); color: var(--bad); }
.notice.info { background: var(--info-bg); color: var(--ink); }
.codes { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 16px; }
.qr { width: 200px; height: 200px; display: block; margin: 8px 0; }
table { width: 100%; border-collapse: collapse; }
td, th { text-align: left; padding: 8px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 13px; color: var(--muted); font-weight: 600; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.tag.ok { background: var(--ok-bg); color: var(--ok); }
.tag.wait { background: var(--wait-bg); color: var(--wait); }
.tag.info { background: var(--info-bg); color: var(--brand); }
.inline { display: inline; }
