/* Two70 Sign, the signer's page. A plain document look: a white page, black type, hairline rules,
   the system font, and nothing decorative. Served under a strict CSP, so the markup carries no
   inline style; every dynamic position is set from sign.js through element.style. The Terms files
   in /disclosures load this sheet with body.doc-page and are styled from here only (their bytes
   are consent evidence and are never edited). Built by SR Visual LLC. */

:root {
  --ink: #111111;          /* text */
  --ink-2: #555555;        /* secondary text */
  --ink-3: #767676;        /* tertiary text, 4.5:1 on white; never on the gray ground */
  --rule: #e1e1e1;         /* the brokerage's rule color */
  --line: #8f8f8f;         /* the edge of anything to type in or tap: 3.2:1 on white (WCAG 1.4.11) */
  --link: #0b6c96;         /* the brokerage's link blue */
  --focus: #0f86b8;        /* Real Estate Two70 blue, one step deeper so the ring clears 3:1 */
  --red: #b3261e;
  --green: #1e7d4a;
  --ground: #f2f2f2;       /* behind the PDF pages, so each page reads as paper */
  --paper: #d9d9d9;        /* the edge of a sheet of paper */
  --todo: #fff4c2;         /* a spot waiting for the signer */
  --todo-line: #a67c00;    /* 3.8:1 on white, so an open spot is found on a busy page */
  --todo-ink: #4a3800;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --gutter: 16px;
  --top-h: 56px;
  --bar-h: 0px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  background: #fff;
  scroll-padding-top: calc(var(--top-h) + 16px);
  scroll-padding-bottom: calc(var(--bar-h) + 16px);
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
}
body {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  overflow-x: hidden;
  font-family: var(--sans); font-size: 16px; line-height: 1.5; color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
body.in-docs { background: var(--ground); }
body.sheet-open { overflow: hidden; }
a { color: var(--link); text-underline-offset: 2px; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
/* A heading or panel focused by script (to be announced) shows no ring. */
h1[tabindex="-1"]:focus, .app:focus, .sheet:focus { outline: none; }
h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; }
svg { display: block; }

.skip { position: absolute; left: 8px; top: -60px; z-index: 2000; padding: 10px 14px; border-radius: 8px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 600; text-decoration: none; }
.skip:focus { top: 8px; }

/* ---------------------------------------------------------------- top bar */
.topbar { position: sticky; top: 0; z-index: 900; background: #fff; border-bottom: 1px solid var(--rule); padding-top: env(safe-area-inset-top); }
.topbar-in { position: relative; max-width: calc(520px + 2 * var(--gutter)); height: var(--top-h); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 14px; }
body.in-docs .topbar-in { max-width: calc(860px + 2 * var(--gutter)); }
body.doc-page .topbar-in { max-width: calc(600px + 2 * var(--gutter)); }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand-logo { display: block; width: auto; height: 22px; }
.brand-div, .brand-name { display: none; } /* the 09-23 Terms file still carries these */
.topbar-title { flex: 1; min-width: 0; font-size: 14px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-title:not(:empty) { padding-left: 14px; border-left: 1px solid var(--rule); line-height: 22px; }
.menu-btn { flex-shrink: 0; margin-left: auto; min-height: 44px; padding: 0 2px; font-size: 16px; font-weight: 600; color: var(--link); }
.menu-btn[aria-expanded="true"] { text-decoration: underline; text-underline-offset: 3px; }
.menu-btn svg { display: none; }
.menu { position: absolute; right: var(--gutter); top: calc(var(--top-h) + 6px); min-width: 260px; max-width: calc(100vw - 2 * var(--gutter)); padding: 4px 0; background: #fff; border: 1px solid var(--rule); border-radius: 8px; box-shadow: 0 8px 30px rgba(0,0,0,.12); animation: fade .15s ease; }
.menu-item { display: flex; align-items: center; width: 100%; min-height: 48px; padding: 12px 16px; font-size: 16px; line-height: 1.3; color: var(--ink); text-align: left; text-decoration: none; }
.menu-item + .menu-item { border-top: 1px solid var(--rule); }
.menu-item svg { display: none; }
.menu-item:focus-visible { background: #f5f5f5; outline: 2px solid var(--focus); outline-offset: -2px; }
.menu-item.danger { color: var(--red); }

/* ---------------------------------------------------------------- page layout */
.app { flex: 1; width: 100%; padding: 28px var(--gutter) 32px; padding-bottom: calc(32px + var(--bar-h)); }
.col { max-width: 520px; margin: 0 auto; }
.title { font-size: 24px; font-weight: 600; line-height: 1.25; letter-spacing: -.2px; color: var(--ink); overflow-wrap: anywhere; }
.meta { margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--ink-2); overflow-wrap: anywhere; }
.lede { margin-top: 12px; font-size: 16px; color: var(--ink); }
.fine { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.fine a { font-weight: 600; }
.err { margin-top: 12px; font-size: 16px; line-height: 1.45; font-weight: 500; color: var(--red); }
.slow { margin-top: 10px; }
.cant { margin-top: 16px; }
.cant .err { margin-top: 0; }

.loading { display: flex; align-items: center; gap: 12px; max-width: 520px; margin: 8px auto 0; }
.loading-text { font-size: 16px; color: var(--ink-2); }
.spinner { flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--rule); border-top-color: var(--ink-2); animation: spin .9s linear infinite; }

/* ---------------------------------------------------------------- first screen */
.hosted { margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); font-size: 16px; font-weight: 600; color: var(--ink); }
.hosted svg { display: none; }
.subject { display: flex; align-items: flex-start; gap: 16px; margin-top: 24px; }
/* Page 1 of the first document, drawn before the signer agrees (the consent evidence). It sits
   like a sheet of paper: white, a thin gray edge, no shadow. Blank until it is drawn. */
.subject-icon { flex-shrink: 0; width: 80px; aspect-ratio: 612 / 792; background: #fff; border: 1px solid var(--paper); }
.subject-icon svg { display: none; }
.subject-icon.has-thumb { aspect-ratio: auto; height: auto; }
.subject-icon.has-thumb canvas { display: block; width: 100%; height: auto; }
.subject-text { flex: 1; min-width: 0; padding-top: 1px; }
.subject-name { font-size: 17px; font-weight: 600; line-height: 1.35; color: var(--ink); overflow-wrap: anywhere; }
.doclist { list-style: none; margin-top: 4px; }
.doclist li { padding: 1px 0; font-size: 16px; line-height: 1.45; color: var(--ink-2); }
.doclist .doc-title { overflow-wrap: anywhere; }
.doclist .pages { white-space: nowrap; }
.doclist .pages::before { content: "\00b7"; padding: 0 .45em; }
.doclist svg { display: none; }
.subject-meta { margin-top: 8px; font-size: 16px; color: var(--ink); }

.note { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--rule); }
.note-label { font-size: 14px; font-weight: 600; color: var(--ink); }
.note-text { margin-top: 4px; font-size: 16px; line-height: 1.5; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }

/* The agree row: a plain square box, the sentence beside it. The whole row is the tap target. */
.check { position: relative; display: flex; align-items: flex-start; gap: 12px; margin-top: 24px; padding: 18px 0 6px; border-top: 1px solid var(--rule); cursor: pointer; }
.check input { position: absolute; left: 0; top: 19px; width: 22px; height: 22px; margin: 0; opacity: 0; cursor: pointer; }
.check-box { display: grid; place-items: center; flex-shrink: 0; width: 22px; height: 22px; margin-top: 1px; border-radius: 4px; background: #fff; border: 1.5px solid var(--ink-3); }
.check-box svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; visibility: hidden; }
.check input:checked + .check-box { background: var(--ink); border-color: var(--ink); }
.check input:checked + .check-box svg { visibility: visible; }
.check input:focus-visible + .check-box { outline: 2px solid var(--focus); outline-offset: 2px; }
.check.invalid .check-box { border-color: var(--red); border-width: 2px; }
.check-text { font-size: 16px; line-height: 1.45; color: var(--ink); }
.linklike { display: inline; padding: 0; margin: 0; border: 0; background: none; font: inherit; color: var(--link); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.linklike:focus-visible { border-radius: 2px; }

/* The contact line at the foot of a screen. */
.agent { margin-top: 32px; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.agent-name { font-weight: 600; color: var(--ink); }
.agent-role { white-space: nowrap; }
.agent-links { display: flex; flex-wrap: wrap; gap: 0 24px; }
.agent-links a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; font-size: 16px; font-weight: 600; text-decoration: none; }

/* ---------------------------------------------------------------- buttons */
.actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 20px; border-radius: 8px; border: 1px solid transparent; font-size: 17px; font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none; }
.btn svg { display: none; }
.btn.primary { color: #fff; background: var(--ink); border-color: var(--ink); }
.btn.primary:active { background: #000; transform: scale(.98); }
.btn.secondary { color: var(--ink); background: #fff; border-color: var(--line); }
.btn.secondary:active { background: #f2f2f2; transform: scale(.98); }
.btn.quiet { min-height: 44px; padding: 10px 2px; font-size: 16px; font-weight: 500; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.actions .btn.quiet { align-self: flex-start; }
.btn.danger { color: #fff; background: var(--red); border-color: var(--red); }
.btn.danger:active { background: #8f1d17; transform: scale(.98); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { opacity: 1; cursor: progress; } /* the wait label must stay readable */
.btn .spin { display: inline-block; flex-shrink: 0; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
.btn.block { width: 100%; }

/* ---------------------------------------------------------------- fields and forms */
.field { display: flex; flex-direction: column; gap: 6px; margin-top: 20px; }
.field label, .label { font-size: 16px; font-weight: 600; color: var(--ink); }
.input { width: 100%; min-height: 48px; padding: 11px 12px; border-radius: 8px; font-size: 17px; line-height: 1.35; color: var(--ink); background: #fff; border: 1px solid var(--line); }
.input:focus { border-color: var(--ink-2); }
.input[aria-invalid="true"] { border-color: var(--red); }
textarea.input { min-height: 112px; resize: vertical; line-height: 1.45; }
.input.code { font-size: 24px; letter-spacing: 6px; text-align: center; font-variant-numeric: tabular-nums; }
.hint { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.count { align-self: flex-end; font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.fit-note { margin-top: 8px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.fit-note.bad { color: var(--red); font-weight: 500; }
.tell { margin-top: 12px; }

/* ---------------------------------------------------------------- documents */
.docs { max-width: 860px; margin: 0 auto; }
.docs-intro { max-width: 860px; margin: 0 auto; }
.docs-intro p { font-size: 16px; line-height: 1.45; color: var(--ink); }
.docs-intro strong { font-weight: 600; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 8px; font-size: 14px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { display: inline-block; width: 18px; height: 12px; border-radius: 2px; background: var(--todo); box-shadow: inset 0 0 0 1.5px var(--todo-line); }
.legend i.done { background: #fff; box-shadow: inset 0 0 0 1px var(--green); }
.legend i.optional { background: #fff; box-shadow: none; outline: 1px dashed var(--todo-line); outline-offset: -1px; }
.doc { margin: 0 auto 8px; }
.doc-head { margin: 32px 0 12px; }
.doc:first-child .doc-head { margin-top: 24px; }
.doc-num { font-size: 14px; color: var(--ink-2); }
.doc-name { font-size: 17px; font-weight: 600; line-height: 1.3; letter-spacing: -.1px; color: var(--ink); overflow-wrap: anywhere; }
.doc-sub { font-size: 14px; color: var(--ink-2); }
/* A PDF page: white paper with a thin gray edge. The edge is a ring outside the box, so the
   canvas and the field layer share one exact box. */
.page { position: relative; margin: 0 auto 16px; background: #fff; box-shadow: 0 0 0 1px var(--paper); overflow: hidden; }
.page canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.page-ph { position: absolute; inset: 0; display: grid; place-items: center; background: #fff; }
.page-ph::after { content: ''; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--rule); border-top-color: var(--ink-3); animation: spin .9s linear infinite; }
.page.ready .page-ph { display: none; }
.page-no { display: none; }
.layer { position: absolute; inset: 0; z-index: 2; }

/* Fields on the page. The signer's open spots use the pale yellow every client knows from other
   signing tools; a done spot shows the mark with a thin green edge; everything else is faint. */
.fld { position: absolute; display: block; padding: 0; border-radius: 2px; color: var(--ink); overflow: visible; -webkit-tap-highlight-color: transparent; }
.fld-in { position: absolute; left: 0; top: 0; display: flex; align-items: center; transform-origin: 0 0; pointer-events: none; }
.fld.mine { background: var(--todo); box-shadow: inset 0 0 0 1.5px var(--todo-line); cursor: pointer; }
/* An optional spot has no fill, only a dashed edge, so it never reads as one that is required.
   Every state below (done, current, waiting, answered, focused) clears the dashed edge. */
.fld.mine.optional { background: transparent; box-shadow: none; outline: 1px dashed var(--todo-line); outline-offset: -1px; }
.fld.mine.filled { background: transparent; box-shadow: inset 0 0 0 1px var(--green); outline: none; }
.fld.mine.current { z-index: 2; box-shadow: inset 0 0 0 2px #8f6c00, 0 0 0 2px #fff, 0 0 0 4px var(--todo-line); outline: none; }
.fld.mine.optional.current:not(.filled) { background: var(--todo); }
.fld.mine.filled.current { box-shadow: inset 0 0 0 1.5px var(--green); }
/* The spot the signer is on answers a tap anywhere in a 44px square around it, so a small box on a
   phone-sized page is easy to hit. It sits above its neighbors (z-index 2), so it wins overlaps. */
.fld.mine.current:not(.grp)::after { content: ''; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%, -50%); }
/* CONTRACT-v3 G: the options of one question are one step. A bigger tap target than the printed
   box, sideways only (a question's answers sit far apart on one line; the next line is close). */
.fld.mine.grp::after { content: ''; position: absolute; top: 0; bottom: 0; left: calc(var(--k, 1px) * -6px); right: calc(var(--k, 1px) * -6px); }
/* A question's options are often tiny boxes: the ring around the current one stays thin. */
.fld.mine.grp.current:not(.filled) { box-shadow: inset 0 0 0 1.5px #8f6c00, 0 0 0 1.5px #fff, 0 0 0 3px var(--todo-line); }
/* Once a question is answered (or an election initialed) the choices not taken go quiet. */
.fld.mine.grp.answered:not(.filled) { background: transparent; box-shadow: inset 0 0 0 1px var(--line); outline: none; }
.fld.mine.grp.answered.current:not(.filled) { box-shadow: inset 0 0 0 1px var(--line), 0 0 0 2px #fff, 0 0 0 3px var(--ink-3); }
/* Keyboard focus shows the Two70 blue ring on any spot, current or not. */
.fld.mine:focus-visible, .fld.mine.grp.current:focus-visible, .fld.mine.grp.answered.current:focus-visible { z-index: 3; outline: none; box-shadow: inset 0 0 0 1.5px var(--todo-line), 0 0 0 2px #fff, 0 0 0 4px var(--focus); }
.fld.mine.filled:focus-visible, .fld.mine.filled.current:focus-visible { box-shadow: inset 0 0 0 1px var(--green), 0 0 0 2px #fff, 0 0 0 4px var(--focus); }
/* Filled in automatically (a date, a time, an A.M./P.M. box), and spots that wait for a mark. */
.fld.auto { background: transparent; box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); cursor: default; }
.fld.auto.waiting, .fld.mine.linked.waiting { background: transparent; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); outline: none; }
.fld.mine.linked.waiting .fld-label { opacity: .6; }
.fld.other { pointer-events: none; }
.fld-label { display: flex; align-items: center; padding: 0 .35em; font-family: var(--sans); font-weight: 600; line-height: 1; color: var(--todo-ink); white-space: nowrap; overflow: hidden; }
.fld-label svg { display: none; }
.fld.optional .fld-label { font-weight: 500; }
.fld.auto .fld-label, .fld.waiting .fld-label { color: var(--ink-2); }
.fld-text { padding: 0 .2em; font-family: Helvetica, Arial, sans-serif; line-height: 1; color: #0d1f33; white-space: nowrap; overflow: hidden; }
.fld-mark, .fld-x { width: 100%; height: 100%; }
.fld-mark svg { width: 100%; height: 100%; overflow: visible; }
.fld-x svg { width: 100%; height: 100%; fill: none; stroke: #0d1f33; stroke-width: 1.4; stroke-linecap: round; }
.fld.auto.box .fld-x svg { stroke: var(--ink-2); }
/* The small flag beside the current spot when the spot is too small to read its own label. */
.fld-tag { position: absolute; z-index: 4; left: 0; bottom: 100%; margin-bottom: 4px; padding: 4px 8px; border-radius: 4px; font-family: var(--sans); font-size: 13px; font-weight: 600; line-height: 1.2; white-space: nowrap; color: #fff; background: var(--ink); pointer-events: none; }
.fld-tag svg { display: none; }
.fld-tag.below { bottom: auto; top: 100%; margin: 4px 0 0; }
.fld-tag.right { left: auto; right: 0; }

/* ---------------------------------------------------------------- bottom bar */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 800; background: #fff; border-top: 1px solid var(--rule); padding-bottom: env(safe-area-inset-bottom); }
.bar-in { max-width: calc(860px + 2 * var(--gutter)); margin: 0 auto; padding: 10px var(--gutter); display: flex; align-items: center; gap: 12px; }
.prog { flex: 1; min-width: 0; }
.prog-text { font-size: 16px; font-weight: 600; line-height: 1.3; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prog-sub { font-size: 14px; line-height: 1.35; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prog-track { height: 3px; margin-top: 7px; border-radius: 2px; background: var(--rule); overflow: hidden; }
.prog-fill { width: 0; height: 100%; background: var(--ink); }
.prog-fill.full { background: var(--green); }
.bar .btn { flex-shrink: 0; min-height: 48px; padding: 10px 24px; }
.bar .btn.bar-finish { padding: 10px 16px; }

/* ---------------------------------------------------------------- sheets */
.sheet-wrap { position: fixed; inset: 0; z-index: 1500; display: flex; align-items: flex-end; justify-content: center; background: rgba(0,0,0,.4); animation: fade .15s ease; }
.sheet { position: relative; width: 100%; max-width: 560px; max-height: 92vh; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; background: #fff; border-radius: 12px 12px 0 0; }
.sheet.wide { max-width: 720px; }
.sheet-head { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 6px 8px 6px 20px; background: #fff; border-bottom: 1px solid var(--rule); }
.sheet-title { flex: 1; min-width: 0; font-size: 18px; font-weight: 600; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; }
.sheet-close { flex-shrink: 0; min-height: 44px; padding: 0 12px; font-size: 16px; font-weight: 600; color: var(--link); }
.sheet-close svg { display: none; }
.sheet-body { padding: 16px 20px 24px; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
.sheet-sub { font-size: 16px; line-height: 1.45; color: var(--ink-2); }
.sheet .actions { margin-top: 20px; }
.sheet-row { display: flex; gap: 10px; }
.sheet-row .btn { flex: 1; }

/* Type or Draw */
.seg { display: grid; grid-template-columns: 1fr 1fr; margin-top: 16px; padding: 2px; border-radius: 8px; background: #efefef; }
.seg button { min-height: 44px; border-radius: 6px; font-size: 16px; font-weight: 500; color: var(--ink-2); }
.seg button[aria-selected="true"] { color: var(--ink); font-weight: 600; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.names { display: grid; grid-template-columns: 1fr 104px; gap: 12px; }
.styles { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.style-opt { position: relative; display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 8px 14px; border-radius: 8px; background: #fff; border: 1px solid var(--line); cursor: pointer; }
.style-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.style-opt:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.style-opt:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.style-opt.off { opacity: .45; cursor: not-allowed; }
.style-prev { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; }
.style-prev canvas { display: block; height: 56px; }
.style-prev canvas.sig { flex: 1; min-width: 0; width: 100%; }
.style-prev canvas.ini { flex-shrink: 0; width: 70px; padding-left: 10px; border-left: 1px solid var(--rule); }
.style-dot { flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--ink-3); background: #fff; }
.style-opt:has(input:checked) .style-dot { border-color: var(--ink); background: var(--ink); box-shadow: inset 0 0 0 4px #fff; }
.style-name { display: none; }
.pad-wrap { position: relative; margin-top: 16px; border-radius: 8px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.pad { display: block; width: 100%; height: 190px; touch-action: none; cursor: crosshair; }
.pad-line { position: absolute; left: 20px; right: 20px; bottom: 44px; height: 1px; background: var(--line); pointer-events: none; }
.pad-x { position: absolute; left: 20px; bottom: 50px; font-size: 20px; line-height: 1; color: var(--ink-3); pointer-events: none; }
.pad-hint { position: absolute; left: 0; right: 0; top: 38%; text-align: center; font-size: 16px; color: var(--ink-3); pointer-events: none; }
.pad-wrap.inked .pad-hint { visibility: hidden; }
.pad-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.pad-tools .btn { min-height: 44px; padding: 8px 2px; font-size: 16px; }
.legal { margin-top: 16px; font-size: 16px; line-height: 1.5; color: var(--ink-2); }

/* A plain list of rows with hairlines: downloads, contact, the options for a placed mark. */
.opts { margin-top: 12px; border-top: 1px solid var(--rule); }
.sheet-body > .opts:first-child { margin-top: -4px; border-top: 0; }
.opt { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 56px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 16px; font-weight: 500; line-height: 1.35; color: var(--ink); text-align: left; text-decoration: none; }
.opt svg { display: none; }
.opt small { display: block; margin-top: 1px; font-size: 14px; font-weight: 400; color: var(--ink-2); }
.opt .grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.opt-act { flex-shrink: 0; font-size: 16px; font-weight: 600; color: var(--link); }
.opt:focus-visible { outline-offset: 0; }
.opt.danger { color: var(--red); }

/* A question or an election answered from large buttons (52px or more). */
.choices { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.choice { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 14px; border-radius: 8px; background: #fff; border: 1px solid var(--line); font-size: 16px; font-weight: 500; line-height: 1.35; color: var(--ink); text-align: left; cursor: pointer; }
.choice.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choice .grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.choice-dot { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--ink-3); }
.choice.on .choice-dot { border-color: var(--ink); background: var(--ink); }
.choice-dot svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------------------------------------------------------- review, done, waiting */
.summary { margin-top: 20px; border-top: 1px solid var(--rule); }
.sum-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 16px; line-height: 1.4; }
.sum-row span { flex: 1; min-width: 0; color: var(--ink-2); overflow-wrap: anywhere; }
.sum-row strong { flex-shrink: 0; max-width: 60%; font-weight: 600; color: var(--ink); text-align: right; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.sum-row.doc span { color: var(--ink); }
.sum-row.doc strong { font-weight: 400; color: var(--ink-2); }
.adopted { display: flex; gap: 12px; margin-top: 20px; }
.adopted-box { flex: 1; min-width: 0; padding: 8px 12px 6px; border-radius: 8px; border: 1px solid var(--rule); }
.adopted-box.ini { flex: 0 0 104px; }
.adopted-box .label { font-size: 14px; font-weight: 400; color: var(--ink-2); }
.adopted-box .art { height: 56px; margin-top: 2px; }
.adopted-box svg { width: 100%; height: 100%; }
.blank-q { margin-top: 16px; }
.blank-q .fine { margin-top: 0; }
.consent-line { margin-top: 20px; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.done-mark { width: 36px; height: 36px; margin: 0 0 14px -6px; color: var(--green); }
.done-mark svg { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.done-mark.muted, .done-mark.warn { display: none; }
.col > .opts { margin-top: 20px; }
.opts + .summary { margin-top: 0; border-top: 0; }
.opts + .agent, .summary + .agent { margin-top: 12px; padding-top: 0; border-top: 0; }
.wait { display: flex; align-items: center; gap: 12px; margin-top: 16px; font-size: 16px; line-height: 1.45; color: var(--ink); }
.wait svg { display: none; }
.wait .spin { flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--rule); border-top-color: var(--ink-2); animation: spin .9s linear infinite; }
.people { list-style: none; margin-top: 16px; border-top: 1px solid var(--rule); }
.people li { padding: 10px 0; font-size: 16px; color: var(--ink); border-bottom: 1px solid var(--rule); }

/* ---------------------------------------------------------------- the Terms, in the sheet */
.disclosure-text .eyebrow { display: none; }
.disclosure-text .title { font-size: 20px; }
.disclosure-text .title + p { margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.disclosure-text h2 { margin-top: 22px; font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.disclosure-text p, .disclosure-text li { margin-top: 6px; font-size: 16px; line-height: 1.55; color: var(--ink); }
.disclosure-text ul { margin: 6px 0 0 20px; }

/* ---------------------------------------------------------------- the Terms page (body.doc-page) */
.card { max-width: 520px; margin: 0 auto; }
.card.prose { max-width: 600px; }
.prose .eyebrow { display: none; }
.prose .title + p { margin-top: 6px; font-size: 14px; color: var(--ink-2); }
.prose h2 { margin-top: 28px; font-size: 18px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.prose p { margin-top: 8px; font-size: 16px; line-height: 1.6; color: var(--ink); }
.prose ul.req { margin: 8px 0 0 22px; font-size: 16px; line-height: 1.6; color: var(--ink); }
.prose ul.req li { margin-top: 4px; }
body.doc-page .app { padding-top: 32px; }

/* ---------------------------------------------------------------- toast and footer */
.toast { position: fixed; left: 50%; bottom: calc(16px + var(--bar-h)); z-index: 1800; width: max-content; max-width: min(480px, calc(100vw - 32px)); padding: 12px 16px; border-radius: 8px; font-size: 16px; font-weight: 500; line-height: 1.4; color: #fff; background: var(--ink); opacity: 0; pointer-events: none; transform: translateX(-50%); transition: opacity .15s ease; }
.toast:empty { display: none; }
.toast.show { opacity: 1; }

.foot { width: 100%; max-width: calc(520px + 2 * var(--gutter)); margin: 0 auto; padding: 8px var(--gutter) 32px; padding-bottom: calc(32px + var(--bar-h)); }
.foot p { font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px; }
.foot-links a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
body.in-docs .foot { max-width: calc(860px + 2 * var(--gutter)); }
body.in-docs .foot p { color: var(--ink-2); } /* #767676 is under 4.5:1 on the gray ground */
body.doc-page .foot { max-width: calc(600px + 2 * var(--gutter)); }
.foot-secure, .foot-eho, .foot-credit { display: none; }

/* Hover only where a pointer can hover: on a phone a tap leaves :hover stuck. */
@media (hover: hover) {
  .menu-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
  .menu-item:hover { background: #f5f5f5; }
  .agent-links a:hover { text-decoration: underline; }
  .btn.primary:hover { background: #000; }
  .btn.secondary:hover { border-color: var(--ink-2); }
  .btn.quiet:hover { text-decoration-thickness: 2px; }
  .sheet-close:hover { text-decoration: underline; text-underline-offset: 3px; }
  .opt:hover .opt-act, .opt:hover > .grow:only-child { text-decoration: underline; text-underline-offset: 3px; }
  .choice:hover { border-color: var(--ink-2); }
  .foot-links a:hover { color: var(--ink); }
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .app { padding-top: 48px; }
  .title { font-size: 26px; }
  .actions { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .actions .btn { min-width: 168px; }
  .actions .btn.quiet { min-width: 0; align-self: center; }
  .sheet .actions .btn { min-width: 150px; }
  .sheet-wrap { align-items: center; padding: 24px; }
  .sheet { border-radius: 12px; max-height: 86vh; box-shadow: 0 8px 30px rgba(0,0,0,.12); }
  .sheet-head { padding-left: 24px; }
  .sheet-body { padding: 18px 24px 24px; }
}
@media (max-width: 420px) {
  .bar .wide-only { display: none; }
  .bar .btn { padding: 10px 18px; }
  .bar .btn.bar-finish { padding: 10px 12px; }
  .bar-in:has(.bar-finish:not([hidden])) .prog-sub { display: none; }
  .names { grid-template-columns: 1fr 86px; }
  .style-prev canvas.ini { width: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .btn:active { transform: none; }
}
@media print {
  .topbar, .bar, .foot, .sheet-wrap, .toast { display: none !important; }
  body, body.in-docs { background: #fff !important; }
}
