:root {
  color-scheme: light;
  --ink: #17211b;
  --muted: #647068;
  --line: #dce5de;
  --paper: #ffffff;
  --canvas: #f4f7f4;
  --brand: #176b45;
  --brand-dark: #0f5033;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); }
a { color: var(--brand); }
.relay-header { min-height: 64px; padding: 0 5vw; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); background: var(--paper); }
.relay-header nav { display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 14px; }
.relay-header nav form { display: inline; }
.relay-header .nav-button { min-height: 0; padding: 0; border: 0; background: transparent; color: var(--brand); font-size: 14px; font-weight: 500; }
.relay-brand { color: var(--ink); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.03em; }
.relay-main { width: min(1180px, 92vw); margin: 38px auto 80px; }
.relay-footer { width: min(1180px, 92vw); margin: 0 auto 32px; display: flex; gap: 18px; color: var(--muted); font-size: 14px; }
.relay-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.relay-heading h1, .public-form-card h1 { margin: 3px 0 8px; font-size: clamp(30px, 4vw, 46px); letter-spacing: -.04em; }
.relay-heading p, .relay-panel p { color: var(--muted); }
.eyebrow { margin: 0; color: var(--brand) !important; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.relay-panel, .relay-summary, .relay-alert, .relay-secret, .relay-success, .relay-error { border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.relay-panel { padding: 24px; margin-bottom: 22px; }
.relay-panel.narrow { max-width: 620px; }
.relay-panel h2 { margin-top: 0; }
.relay-panel h3 { margin-top: 28px; }
.relay-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.relay-summary { display: flex; flex-wrap: wrap; gap: 32px; padding: 18px 22px; margin-bottom: 22px; }
.relay-summary div { min-width: 120px; display: grid; gap: 4px; }
.relay-summary small, td small { color: var(--muted); display: block; margin-top: 4px; }
.relay-alert, .relay-secret, .relay-success, .relay-error { padding: 16px 18px; margin-bottom: 22px; }
.relay-alert { border-color: #e2bd72; background: #fff9e9; }
.relay-secret { display: grid; gap: 8px; border-color: #77b793; background: #effaf4; }
.relay-success { border-color: #77b793; background: #effaf4; }
.relay-error { border-color: #d99393; background: #fff1f1; }
form { display: grid; gap: 15px; }
label { display: grid; gap: 7px; font-size: 14px; font-weight: 700; }
label span { color: var(--muted); font-size: 12px; font-weight: 400; }
input, select, textarea, button { width: 100%; min-height: 44px; border: 1px solid #bdcac0; border-radius: 9px; background: #fff; color: var(--ink); padding: 10px 12px; font: inherit; }
textarea { resize: vertical; }
button, .relay-button { display: inline-flex; width: auto; align-items: center; justify-content: center; border-color: var(--brand); background: var(--brand); color: #fff; text-decoration: none; font-weight: 750; cursor: pointer; padding: 10px 16px; border-radius: 9px; }
button:hover { background: var(--brand-dark); }
.relay-button.secondary { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.check input { width: 18px; min-height: 18px; }
.plain-list { padding: 0; list-style: none; }
.plain-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.plain-list code { margin-left: 8px; }
code { overflow-wrap: anywhere; }
.code-block { display: block; padding: 12px; border-radius: 8px; background: #eef2ef; }
.docs-section { max-width: 920px; }
.docs-section pre { overflow-x: auto; padding: 16px; border-radius: 9px; background: #17211b; color: #e9f4ed; line-height: 1.55; }
.docs-section pre code { overflow-wrap: normal; white-space: pre; }
.endpoint-label { display: inline-block; margin: 0 0 4px !important; padding: 4px 8px; border-radius: 6px; background: #dff3e7; color: var(--brand) !important; font-size: 12px; font-weight: 800; }
.relay-table { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.inline-form { min-width: 310px; grid-template-columns: 1fr 80px auto; gap: 8px; }
.public-form-page { min-height: 100vh; display: grid; place-items: center; padding: 28px; }
.public-form-card { width: min(560px, 100%); padding: 32px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.relay-hero { max-width: 850px; padding: 72px 0 48px; }
.relay-hero h1 { margin: 8px 0 18px; font-size: clamp(42px, 7vw, 76px); line-height: 1; letter-spacing: -.055em; }
.relay-hero > p:not(.eyebrow) { max-width: 720px; color: var(--muted); font-size: 20px; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.landing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.auth-card { margin: 70px auto; }
.legal-copy { max-width: 820px; }
.legal-copy h2 { margin-top: 30px; }
.legal-copy p, .legal-copy li { color: var(--muted); line-height: 1.65; }
.google-button { width: 100%; margin-top: 8px; background: #fff; color: var(--ink); border-color: var(--line); }
.google-button:hover { background: #f7f9f7; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: 12px; text-transform: uppercase; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 760px) {
  .relay-grid { grid-template-columns: 1fr; }
  .relay-header { padding: 14px 4vw; align-items: flex-start; }
  .relay-header nav { align-items: flex-end; flex-direction: column; gap: 5px; }
  .relay-heading { align-items: flex-start; flex-direction: column; }
  .relay-main { margin-top: 24px; }
  .public-form-card { padding: 22px; }
}
