/* Okayform app. Mobile first, usable at 360 px. Tokens and type follow okayform.com's globals.css. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/static/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("/static/fonts/inter-latin-700-normal.woff2") format("woff2"); }
:root {
  --ink: #0f1b2d; --body: #334155; --muted: #64748b; --line: #e2e8f0; --bg: #ffffff; --soft: #f5f7fb; --soft-2: #eef3fb;
  --brand: #1d5fd6; --brand-dark: #154aa8; --brand-tint: #e8f0fd; --ok: #15803d; --ok-tint: #e7f6ec; --warn-tint: #fff7e6;
  --cta: #c2410c; --cta-dark: #9a3412; --danger: #b91c1c; --radius: 14px; --shadow: 0 1px 2px rgba(15, 27, 45, .06), 0 8px 24px rgba(15, 27, 45, .06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--body); font: 16px/1.55 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--brand); text-underline-offset: 2px; }
h1, h2, h3 { color: var(--ink); letter-spacing: -0.015em; line-height: 1.2; }
h1 { font-size: 1.6rem; margin: 18px 0 10px; }
h2 { font-size: 1.2rem; margin: 26px 0 8px; }
h3 { font-size: 1.05rem; margin: 16px 0 6px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 20; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
main { max-width: 720px; margin: 0 auto; padding: 0 16px 40px; }
header { position: sticky; top: 0; z-index: 10; background: #fff; border-bottom: 1px solid var(--line); }
.header-row { display: flex; justify-content: space-between; align-items: center; min-height: 56px; gap: 8px; flex-wrap: wrap; }
.brand-link { text-decoration: none; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.brand-mark { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--brand); color: #fff; font-size: .9rem; }
header nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
header nav a, header nav button.link { color: var(--body); text-decoration: none; font-weight: 600; font-size: .88rem; padding: 10px 8px; border-radius: 8px; min-height: 44px; display: inline-flex; align-items: center; }
header nav a:hover { background: var(--soft); }
form.inline { display: inline; margin: 0; }
button.link { background: none; border: 0; font: inherit; cursor: pointer; }
label { display: block; font-weight: 600; color: var(--ink); margin: 14px 0 6px; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; min-height: 44px; padding: 10px 0; margin: 0; }
label.check input { width: 22px; height: 22px; flex: 0 0 22px; margin: 1px 0 0; }
input[type=text], input[type=email], input[type=tel], input[type=date], input:not([type]), select, textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; font-size: 16px; color: var(--ink); background: #fff;
  border: 1.5px solid #cbd5e1; border-radius: 10px; }
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-tint); }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 600; color: var(--ink); padding: 0; margin: 14px 0 6px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 16px; border-radius: 10px;
  border: 1.5px solid #c9d8f5; background: #fff; color: var(--brand); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--brand); background: var(--brand-tint); }
.btn.primary { background: var(--cta); border-color: var(--cta); color: #fff; }
.btn.primary:hover { background: var(--cta-dark); }
.btn.big { width: 100%; min-height: 54px; font-size: 1.05rem; margin-top: 20px; }
.btn.small { min-height: 44px; padding: 8px 12px; font-size: .9rem; }
.btn.danger { color: var(--danger); border-color: #f3c4c4; }
.btn[disabled], button[disabled] { opacity: .5; cursor: not-allowed; }
.stack > * + * { margin-top: 10px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.row > span { flex: 1 1 140px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .mono { font-family: ui-monospace, monospace; font-size: .85rem; }
.notice { padding: 12px 14px; border-radius: 10px; background: var(--soft-2); border: 1px solid #cfdcf5; margin: 12px 0; }
.notice.warn { background: var(--warn-tint); border-color: #f6dfae; }
.notice.error { background: #fdecec; border-color: #f3c4c4; color: #7f1d1d; }
ul.notice { padding-left: 30px; }
.test-banner { margin: 0; padding: 8px 16px; background: #fde68a; color: #713f12; font-weight: 700; text-align: center; font-size: .9rem; }
.cards { list-style: none; padding: 0; display: grid; gap: 10px; }
.card { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.card-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.pill { font-size: .75rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--soft); color: var(--muted); }
.pill.live { background: var(--ok-tint); color: var(--ok); } .pill.test { background: #fde68a; color: #713f12; }
.field-error { color: var(--danger); font-size: .9rem; margin: 4px 0; }
.form-error { color: #7f1d1d; background: #fdecec; border: 1px solid #f3c4c4; padding: 10px 12px; border-radius: 10px; }
.req { color: var(--muted); font-weight: 500; font-size: .8rem; }
.field { margin: 6px 0 14px; }
.block { margin: 18px 0; padding: 14px; background: var(--soft); border-radius: 12px; }
.block h2, .block h3 { margin-top: 0; }
.biz { margin: 16px 0 0; font-weight: 600; }
.sig { border: 1.5px solid #cbd5e1; border-radius: 12px; padding: 4px 12px 12px; }
.seg { display: inline-flex; border: 1.5px solid #c9d8f5; border-radius: 10px; overflow: hidden; margin: 4px 0 10px; }
.seg-btn { min-height: 44px; min-width: 80px; border: 0; background: #fff; color: var(--brand); font: inherit; font-weight: 700; cursor: pointer; }
.seg-btn.on { background: var(--brand); color: #fff; }
canvas.sig-pad { display: block; width: 100%; height: 160px; background: #fff; border: 1px dashed #94a3b8; border-radius: 10px; touch-action: none; -webkit-user-select: none; user-select: none; }
.typed-sig { font-size: 1.4rem; font-style: italic; display: block; }
.sig-img { max-width: 100%; height: auto; border-bottom: 1px solid var(--line); background: #fff; }
footer.safety { max-width: 720px; margin: 0 auto; padding: 16px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
footer.safety a { color: var(--muted); }
.builder-bar { position: sticky; top: 57px; z-index: 5; background: #fff; display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--line); }
.builder-bar [data-of="save-state"] { margin-right: auto; font-size: .9rem; }
ol.fields { list-style: none; padding: 0; display: grid; gap: 12px; margin: 16px 0; }
.field-card label:first-of-type { margin-top: 8px; }
.add select { flex: 1 1 180px; }
.status-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
table.facts { border-collapse: collapse; width: 100%; font-size: .9rem; table-layout: fixed; }
table.facts th, table.facts td { border: 1px solid var(--line); padding: 8px; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
table.facts th { background: var(--soft); width: 38%; }
.ans { padding: 10px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.search { padding: 12px; background: var(--soft); border-radius: 12px; margin: 10px 0; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 16px 0; }
canvas[data-of="qr"] { display: block; width: 240px; height: 240px; image-rendering: pixelated; margin: 8px 0; }
#link { flex: 1 1 200px; }
@media (min-width: 720px) { h1 { font-size: 2rem; } main { padding-bottom: 60px; } }
