/* TangoSign styles in the Tango Seal brand (burgundy and brass on warm bone, Figtree).
   Source of truth for the colours and fonts: middlefieldgs/mgs content/product_branding/assets/tango-seal/tokens.css
   Fonts are self-hosted from /static/fonts (see scripts/download-fonts.py), so pages load nothing from other sites.
   Pages may not carry inline styles or scripts (the security header forbids them), so every look lives here. */
:root {
  --ink:#2A1A17; --soft:#6F605B; --faint:#A2958F; --line:#E4DCD5; --edge:#D3C8C0; --bg:#F8F5F1; --card:#FFFFFF; --wash:#FCFAF8;
  --go:#7B1E3A; --go-hover:#671830; --go-press:#56132A; --tint:#F4E6EA; --ring:rgba(123,30,58,.22);
  --brass:#B4832A; --brass-pale:#F5ECDB; --brass-dark:#8F6620;
  --good:#2F7D4F; --good-bg:#EAF4EE; --good-line:#A9D2BA;
  --bad:#B3261E; --bad-bg:#FCEDEB; --bad-line:#E9AAA4;
  --warn:#8F6620; --warn-bg:#F5ECDB; --warn-line:#D9B36A;
  --sans:'Figtree',system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --mono:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,monospace;
  --r:10px; --r-lg:14px;
  --lift:0 1px 2px rgba(42,26,23,.05);
  --float:0 10px 32px rgba(42,26,23,.16), 0 2px 6px rgba(42,26,23,.08);
  /* Icons are drawn as masks so they take the colour of the text around them. */
  --i-check:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M4.5 10.5l3.6 3.6 7.4-8'/%3E%3C/svg%3E");
  --i-alert:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10' cy='10' r='7.5'/%3E%3Cpath d='M10 6.2v4.4M10 13.7v.1'/%3E%3C/g%3E%3C/svg%3E");
  --i-up:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 15.5V4.5M7.5 8.7L12 4.2l4.5 4.5M4.5 15v3.2a1.8 1.8 0 0 0 1.8 1.8h11.4a1.8 1.8 0 0 0 1.8-1.8V15'/%3E%3C/g%3E%3C/svg%3E");
  --i-doc:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13.5 3.5h-6a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2h9a2 2 0 0 0 2-2v-10z'/%3E%3Cpath d='M13.5 3.5v5h5M9 13h6M9 16.5h4'/%3E%3C/g%3E%3C/svg%3E");
  --i-chev:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M7.5 5l5 5-5 5'/%3E%3C/svg%3E");
}
* { box-sizing:border-box; }
html { scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body { margin:0; font:16px/1.55 var(--sans); color:var(--ink); background:var(--bg); -webkit-font-smoothing:antialiased; }
[hidden] { display:none !important; }

/* ------------------------------------------------------------ page frame */
.top { display:flex; align-items:center; justify-content:space-between; gap:8px 12px; padding:12px 20px; background:var(--card); border-bottom:1px solid var(--line); flex-wrap:wrap; }
.brand { display:inline-flex; align-items:center; gap:8px; font-weight:800; font-size:20px; line-height:1; color:var(--ink); text-decoration:none; letter-spacing:-.03em; border-radius:8px; }
.brand img, .brand svg { width:30px; height:30px; display:block; color:var(--go); }
.brand b { font-weight:inherit; color:var(--go); }
/* The menu: one button, one slide-out panel, the same at every screen size. */
.menu { margin:0; }
.menu > summary { position:relative; z-index:32; width:44px; height:44px; margin:-6px -8px -6px 0; display:grid; place-items:center; border-radius:10px; cursor:pointer; color:var(--ink); list-style:none; }
.menu > summary::-webkit-details-marker { display:none; }
.menu > summary::before { display:none; }
.menu > summary:hover { background:var(--bg); color:var(--ink); }
.menu[open] > summary { margin-bottom:-6px; }
.bars, .bars::before, .bars::after { display:block; width:20px; height:2px; border-radius:2px; background:currentColor; transition:transform .18s, background .18s; }
.bars { position:relative; }
.bars::before, .bars::after { content:""; position:absolute; left:0; }
.bars::before { top:-6px; } .bars::after { top:6px; }
.menu[open] .bars { background:transparent; }
.menu[open] .bars::before { transform:translateY(6px) rotate(45deg); }
.menu[open] .bars::after { transform:translateY(-6px) rotate(-45deg); }
.menu[open]::before { content:""; position:fixed; inset:0; z-index:30; background:rgba(42,26,23,.36); animation:fade .18s ease-out; }
.menu-panel { position:fixed; z-index:31; top:0; right:0; bottom:0; width:min(320px, 86vw); display:flex; flex-direction:column; gap:2px; padding:68px 14px 20px; background:var(--card); border-left:1px solid var(--line); box-shadow:-12px 0 40px rgba(42,26,23,.16); overflow-y:auto; animation:slide .2s ease-out; }
@keyframes slide { from { transform:translateX(24px); opacity:0; } }
@keyframes fade { from { opacity:0; } }
.menu-panel a, .menu-panel button { font:inherit; font-size:16.5px; font-weight:500; line-height:1.3; color:var(--ink); text-decoration:none; text-align:left; justify-content:flex-start; width:100%; min-height:46px; padding:11px 12px; border:0; border-radius:10px; background:none; box-shadow:none; cursor:pointer; display:flex; align-items:center; }
.menu-panel a:hover, .menu-panel button:hover { background:var(--bg); color:var(--ink); }
.menu-panel a[aria-current] { background:var(--tint); color:var(--go); font-weight:600; }
.menu-panel a.menu-go { background:var(--go); color:#fff; font-weight:600; justify-content:center; margin-bottom:8px; }
.menu-panel a.menu-go:hover { background:var(--go-hover); color:#fff; }
.menu-panel form { margin-top:auto; padding-top:10px; border-top:1px solid var(--line); }
.menu-panel form button { color:var(--soft); }
.menu-who { margin:0 0 8px; padding:0 12px 12px; border-bottom:1px solid var(--line); font-size:13.5px; color:var(--soft); overflow-wrap:anywhere; }
main { max-width:860px; margin:0 auto; padding:24px 16px 56px; }
.site-foot { max-width:860px; margin:0 auto; padding:18px 16px 40px; color:var(--soft); font-size:14px; display:flex; gap:6px 16px; flex-wrap:wrap; border-top:1px solid var(--line); }
.site-foot a { color:var(--soft); }
.site-foot a:hover { color:var(--ink); }

/* ------------------------------------------------------------------ text */
h1 { font-size:30px; font-weight:800; line-height:1.12; margin:12px 0 14px; letter-spacing:-.03em; overflow-wrap:anywhere; text-wrap:balance; }
h2 { font-size:19px; font-weight:700; margin:28px 0 10px; letter-spacing:-.015em; }
h3 { font-size:16px; font-weight:700; margin:0 0 4px; }
p { margin:0 0 12px; }
a { color:var(--go); text-underline-offset:2px; }
a:hover { color:var(--go-hover); }
.meta { color:var(--soft); font-size:14px; }
.bad { color:var(--bad); }
.mono { font-family:var(--mono); font-size:12.5px; overflow-wrap:anywhere; }
.crumb { margin:0; font-size:14px; }
.crumb a { color:var(--soft); text-decoration:none; }
.crumb a:hover { color:var(--ink); }
.foot { margin-top:30px; }
.section-label { font-size:12px; font-weight:700; letter-spacing:.07em; text-transform:uppercase; color:var(--soft); margin:26px 0 8px; }
:focus-visible { outline:2px solid var(--go); outline-offset:2px; }

/* ----------------------------------------------------------------- cards */
.card { display:block; background:var(--card); border:1px solid var(--line); border-radius:var(--r-lg); padding:18px 20px; margin:12px 0; box-shadow:var(--lift); }
.card > :last-child, .card form > :last-child { margin-bottom:0; }
.card h2 { margin-top:0; }
.card + h1 { margin-top:26px; }
.card.link { color:inherit; text-decoration:none; display:grid; grid-template-columns:1fr auto; align-items:center; gap:4px 18px; transition:border-color .15s, box-shadow .15s, transform .15s; }
.card.link:hover { border-color:var(--edge); box-shadow:0 4px 14px rgba(42,26,23,.08); }
.card.link > * { grid-column:1; min-width:0; }
.card.link strong { font-size:17px; overflow-wrap:anywhere; }
.card.link .button { grid-column:2; grid-row:1 / span 3; align-self:center; }
.card.link.slim { grid-template-columns:auto 1fr auto; gap:12px; padding:12px 16px; box-shadow:none; }
.card.link.slim > * { grid-column:auto; }
.card.link.slim strong { font-size:15.5px; font-weight:600; }
.card.link.slim { grid-template-columns:auto 1fr auto auto; position:relative; }
.card.link.slim .stretch { color:inherit; text-decoration:none; min-width:0; }
.card.link.slim .stretch::after { content:""; position:absolute; inset:0; border-radius:var(--r-lg); }
.card.link.slim .button { position:relative; z-index:1; grid-column:auto; grid-row:auto; }
.button.small { min-height:34px; padding:5px 12px; font-size:14px; border-radius:8px; }
.count { display:inline-grid; place-items:center; min-width:30px; height:30px; padding:0 9px; margin-left:6px; border-radius:99px; background:var(--go); color:#fff; font-size:16px; font-weight:700; letter-spacing:0; vertical-align:4px; }
.quiet-lead { margin:0 0 18px; }
/* "Sign something new": the words on one side, the things to copy on the other. */
.card.start { display:grid; grid-template-columns:minmax(0,4fr) minmax(0,7fr); gap:10px 28px; align-items:center; margin-top:20px; background:var(--wash); box-shadow:none; }
.card.start h2 { font-size:17px; margin:0 0 4px; }
.card.start p { margin:0; }
.card.start .copy { background:#fff; margin:0 0 8px; }
.card.start > div > :last-child { margin-bottom:0; }
/* Notices: what just happened, or what is in the way. */
.card.good, .card.bad, .card.warn { position:relative; padding-left:48px; box-shadow:none; }
.card.good::before, .card.bad::before, .card.warn::before { content:""; position:absolute; left:18px; top:19px; width:20px; height:20px; background:currentColor; -webkit-mask:var(--i-alert) center/contain no-repeat; mask:var(--i-alert) center/contain no-repeat; }
.card.good::before { -webkit-mask-image:var(--i-check); mask-image:var(--i-check); }
.card.warn { border-color:var(--warn-line); background:var(--warn-bg); }
.card.warn::before { color:var(--warn); }
.card.bad { border-color:var(--bad-line); background:var(--bad-bg); color:var(--bad); }
.card.good { border-color:var(--good-line); background:var(--good-bg); color:#1F5C39; }
.card.good .meta, .card.good dt { color:#3F7355; }
.card.good a:not(.button) { color:inherit; }
/* Nothing here yet. */
.empty { text-align:center; padding:34px 20px; border:1.5px dashed var(--edge); border-radius:var(--r-lg); color:var(--soft); margin:12px 0; }
.empty::before { content:""; display:block; width:34px; height:34px; margin:0 auto 10px; background:var(--faint); -webkit-mask:var(--i-doc) center/contain no-repeat; mask:var(--i-doc) center/contain no-repeat; }
.empty strong { display:block; color:var(--ink); font-size:17px; margin-bottom:2px; }
.empty p { max-width:440px; margin:0 auto; }
.empty .copy { max-width:440px; margin:14px auto 0; text-align:left; }

/* ---------------------------------------------------------- facts, pills */
.why { font-size:18px; line-height:1.4; margin:0 0 14px; }
.why .meta, .label { display:block; font-size:12px; font-weight:700; letter-spacing:.07em; text-transform:uppercase; color:var(--soft); margin-bottom:3px; }
dl { display:grid; grid-template-columns:minmax(96px,auto) 1fr; gap:7px 16px; margin:0; font-size:15px; }
dt { color:var(--soft); } dd { margin:0; overflow-wrap:anywhere; } dd a { white-space:nowrap; }
/* The summary at the top of a request: who signs, each on a row of their own, and what the owner adds. */
h2.label { margin:18px 0 6px; }
.people, .adds { list-style:none; margin:0; padding:0; }
.people li { display:flex; align-items:center; gap:10px 12px; flex-wrap:wrap; padding:9px 0; border-top:1px solid var(--line); }
.people li:first-child { border-top:0; padding-top:2px; }
.people .num { flex:none; width:24px; height:24px; border-radius:50%; background:#EFE9E3; color:var(--soft); font-size:12.5px; font-weight:700; display:grid; place-items:center; }
.people .who { flex:1 1 200px; min-width:0; display:flex; flex-direction:column; overflow-wrap:anywhere; }
.people .who .meta { font-size:13.5px; }
.adds { display:flex; flex-wrap:wrap; gap:8px; }
.adds li { padding:5px 12px; border:1px solid var(--line); border-radius:8px; background:var(--wash); font-size:14.5px; }
.adds li .meta { font-size:13px; }
.asked { margin:14px 0 6px; font-size:13.5px; }
.pill { display:inline-flex; align-items:center; gap:6px; padding:2px 10px; border-radius:99px; font-size:12.5px; font-weight:600; line-height:1.6; background:#EFE9E3; color:var(--soft); border:1px solid transparent; white-space:nowrap; vertical-align:1px; }
.pill.signed { background:var(--brass-pale); border-color:#DDBE85; color:#6B4B12; }
.pill.signed::before { content:""; width:11px; height:11px; margin-left:-2px; background:currentColor; -webkit-mask:var(--i-check) center/contain no-repeat; mask:var(--i-check) center/contain no-repeat; }
.pill.declined { background:var(--bad-bg); color:var(--bad); }
.pill.wait { background:var(--tint); color:var(--go); }
details { margin:12px 0 0; }
details summary { cursor:pointer; font-weight:600; font-size:14.5px; color:var(--soft); list-style:none; display:inline-flex; align-items:center; gap:4px; border-radius:6px; }
details summary::-webkit-details-marker { display:none; }
details summary::before { content:""; width:14px; height:14px; background:currentColor; -webkit-mask:var(--i-chev) center/contain no-repeat; mask:var(--i-chev) center/contain no-repeat; transition:transform .15s; }
details[open] > summary::before { transform:rotate(90deg); }
details summary:hover { color:var(--ink); }
details[open] > summary { margin-bottom:10px; }
details.card { margin:12px 0; }

/* --------------------------------------------------------------- buttons */
button, .button { font:inherit; font-size:15.5px; font-weight:600; line-height:1.2; min-height:44px; padding:10px 18px; border-radius:var(--r); border:1px solid var(--edge); background:var(--card); color:var(--ink); cursor:pointer; text-decoration:none; display:inline-flex; align-items:center; justify-content:center; gap:8px; text-align:center; box-shadow:var(--lift); transition:background .15s, border-color .15s, box-shadow .15s, transform .05s; -webkit-tap-highlight-color:transparent; }
button:hover, .button:hover { background:var(--wash); border-color:#B9ACA4; color:var(--ink); }
button:active, .button:active { transform:translateY(1px); box-shadow:none; }
button:focus-visible, .button:focus-visible { outline:2px solid var(--go); outline-offset:2px; box-shadow:0 0 0 5px var(--ring); }
button.go, .button.go { background:var(--go); border-color:var(--go); color:#fff; box-shadow:inset 0 1px 0 rgba(255,255,255,.14), 0 1px 2px rgba(86,19,42,.4); }
button.go:hover, .button.go:hover { background:var(--go-hover); border-color:var(--go-hover); color:#fff; }
button.go:active, .button.go:active { background:var(--go-press); }
button.big, .button.big { min-height:54px; padding:14px 26px; font-size:17px; border-radius:12px; }
button.wide { width:100%; }
button.quiet, .button.quiet { border-color:transparent; background:none; box-shadow:none; color:var(--soft); padding-left:10px; padding-right:10px; }
button.quiet:hover, .button.quiet:hover { background:rgba(42,26,23,.06); color:var(--ink); }
button.small { min-height:34px; padding:5px 12px; font-size:14px; border-radius:8px; }
button:disabled { opacity:.55; cursor:default; transform:none; }
button.busy::before { content:""; width:15px; height:15px; border-radius:50%; border:2px solid currentColor; border-right-color:transparent; animation:spin .7s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
.row { display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin:12px 0; }

/* ---------------------------------------------------------------- fields */
label { display:block; font-weight:600; font-size:14.5px; margin:0 0 6px; }
.stack label { margin-top:16px; } .stack label:first-of-type { margin-top:0; } .stack button { margin-top:18px; }
.hint { color:var(--soft); font-size:13.5px; margin:6px 0 0; }
.field { margin:0 0 16px; }
input[type=text], input[type=email], input[type=password], select { font:inherit; width:100%; min-height:44px; padding:9px 12px; border:1px solid var(--edge); border-radius:var(--r); background:#fff; color:var(--ink); box-shadow:inset 0 1px 2px rgba(42,26,23,.04); transition:border-color .15s, box-shadow .15s; }
input::placeholder { color:var(--faint); }
input[type=text]:hover, input[type=email]:hover, input[type=password]:hover, select:hover { border-color:#B9ACA4; }
input[type=text]:focus, input[type=email]:focus, input[type=password]:focus, select:focus { outline:none; border-color:var(--go); box-shadow:0 0 0 4px var(--ring); }
select { appearance:none; -webkit-appearance:none; padding-right:38px; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%236F605B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M5.5 8l4.5 4.5L14.5 8'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 10px center; background-size:18px; cursor:pointer; }
input.code { font-family:var(--mono); font-size:24px; font-weight:500; letter-spacing:.32em; text-align:center; max-width:230px; min-height:56px; padding-left:.32em; }
input.code::placeholder { letter-spacing:.32em; }
.inline { display:flex; gap:8px; align-items:flex-start; }
.inline > input, .inline > .grow { flex:1; min-width:0; }
.pair { display:grid; grid-template-columns:1fr 1fr; gap:0 12px; }
.check { display:flex; gap:10px; align-items:flex-start; font-weight:500; font-size:16px; }
.check input { width:20px; height:20px; margin:2px 0 0; flex:none; accent-color:var(--go); }
input[type=radio] { accent-color:var(--go); }
/* Two-way choice drawn as one control. */
.seg { display:inline-flex; padding:3px; border-radius:var(--r); background:#EFE9E3; margin:0 0 12px; }
.seg label { position:relative; margin:0; font-size:14.5px; font-weight:600; color:var(--soft); padding:7px 16px; border-radius:8px; cursor:pointer; }
.seg input { position:absolute; opacity:0; inset:0; margin:0; cursor:pointer; }
.seg label:has(input:checked) { background:#fff; color:var(--ink); box-shadow:0 1px 3px rgba(42,26,23,.14); }
.seg label:has(input:focus-visible) { outline:2px solid var(--go); outline-offset:1px; }
/* Choose-a-file control: one big target that also takes a dropped file. */
.drop { position:relative; display:flex; flex-direction:column; align-items:center; gap:2px; text-align:center; padding:22px 16px; margin:0 0 12px; border:1.5px dashed #C7B9AF; border-radius:var(--r-lg); background:var(--wash); color:var(--soft); font-weight:400; font-size:14px; cursor:pointer; transition:border-color .15s, background .15s; }
.drop::before { content:""; width:28px; height:28px; margin-bottom:6px; background:var(--go); -webkit-mask:var(--i-up) center/contain no-repeat; mask:var(--i-up) center/contain no-repeat; }
.drop strong { color:var(--go); font-size:15.5px; font-weight:600; }
.drop:hover, .drop.over { border-color:var(--go); background:#FBF3F5; }
.drop.over { border-style:solid; }
.drop:focus-within { border-color:var(--go); box-shadow:0 0 0 4px var(--ring); }
.drop input { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; }
.drop.has { border-style:solid; border-color:var(--good-line); background:var(--good-bg); }
.drop.has::before { background:var(--good); -webkit-mask-image:var(--i-check); mask-image:var(--i-check); }
.drop.has strong { color:#1F5C39; overflow-wrap:anywhere; }
.drop.plain.has { border-color:var(--edge); background:var(--wash); }
.drop.plain.has::before { background:var(--soft); -webkit-mask-image:var(--i-doc); mask-image:var(--i-doc); }
.drop.plain.has strong { color:var(--ink); }
.drop.slim { flex-direction:row; justify-content:center; gap:10px; padding:12px 16px; }
.drop.slim::before { width:20px; height:20px; margin:0; }
/* Your own signature, shown back to you on a slip of paper with a line under it. */
.sig-preview { display:inline-block; max-width:100%; padding:16px 22px 10px; margin:0 0 12px; background:#fff; border:1px solid var(--line); border-radius:var(--r); box-shadow:inset 0 -1px 0 var(--line); }
.sig-preview img { display:block; max-width:100%; width:auto; height:auto; max-height:110px; border-bottom:1.5px solid var(--edge); padding-bottom:6px; }
/* A value to copy, such as the connector address. */
.copy { display:flex; align-items:center; gap:16px; padding:10px 10px 10px 16px; border:1px solid var(--line); border-radius:var(--r); background:var(--wash); margin:0 0 12px; }
.copy .mono { flex:1; min-width:0; font-size:13.5px; line-height:1.55; color:var(--ink); user-select:all; }
.copy button { flex:none; }
/* The same kind of value sitting in running text (the start page, a fingerprint). */
p.mono:not(.meta), .steps .mono { display:inline-block; max-width:100%; margin:6px 0 12px; padding:9px 12px; font-size:13.5px; background:var(--wash); border:1px solid var(--line); border-radius:8px; user-select:all; }
.mono:empty { display:none; }

/* ----------------------------------------------------- reading a document */
.doc-head h1 { margin-bottom:6px; }
.pages figure { margin:14px 0; scroll-margin-top:12px; }
.pages img { width:100%; height:auto; min-height:120px; display:block; background:#fff; border:1px solid var(--line); border-radius:6px; box-shadow:0 2px 10px rgba(42,26,23,.08); }
.pages figcaption { text-align:center; color:var(--soft); font-size:13px; margin-top:6px; }
.pages + .fine { margin-top:20px; }
.fine { font-size:13.5px; color:var(--soft); scroll-margin-top:12px; }
.fine h3 { font-size:13.5px; color:var(--ink); }
/* The one thing to do next, always on screen while the document scrolls. */
.actionbar { position:sticky; bottom:12px; z-index:5; display:flex; align-items:center; gap:10px 20px; flex-wrap:wrap; margin:18px -6px 0; padding:14px 14px 14px 20px; background:#fff; border:1px solid var(--edge); border-radius:16px; box-shadow:var(--float); padding-bottom:max(14px, env(safe-area-inset-bottom)); max-height:calc(100vh - 24px); overflow-y:auto; }
.actionbar-text { flex:1 1 300px; min-width:0; }
.actionbar-text p { margin:0; }
.actionbar-text .say { font-weight:600; font-size:15.5px; line-height:1.35; }
.actionbar-text .meta { margin-top:2px; font-size:13.5px; }
.actionbar > button, .actionbar > .button { flex:0 0 auto; }
.actionbar details { margin:4px 0 0; }
.actionbar details summary { font-size:13.5px; font-weight:500; text-decoration:underline; text-decoration-color:var(--edge); text-underline-offset:3px; }
.actionbar details summary::before { display:none; }
.actionbar details[open] { margin-top:10px; padding-top:12px; border-top:1px solid var(--line); }
.actionbar details[open] > summary { color:var(--ink); font-weight:600; text-decoration:none; }
.actionbar details[open] > summary::after { content:"Close"; margin-left:auto; font-weight:500; color:var(--soft); text-decoration:underline; text-decoration-color:var(--edge); }
.actionbar details[open] > summary { display:flex; }
.actionbar .how { display:flex; align-items:center; gap:8px 12px; flex-wrap:wrap; margin:2px 0 8px; }
.actionbar .how .seg { margin:0; }
.actionbar .looks-like { margin:0 0 4px; }
.actionbar .typed-preview { font-size:30px; line-height:1.3; min-height:52px; margin:0 0 10px; padding:6px 14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
/* A signer's form holds a name, fields and a signature style: too tall to
   float over the document, so it sits under the last page. */
.actionbar.inflow { position:static; max-height:none; overflow:visible; scroll-margin-top:16px; }
.actionbar .sigfonts { grid-template-columns:repeat(auto-fit, minmax(210px, 1fr)); margin:0 0 10px; }
.actionbar .sigfonts .look { font-size:26px; min-height:36px; }
.actionbar .fill { display:flex; gap:0 14px; flex-wrap:wrap; margin:10px 0 6px; }
.actionbar .fill .field { flex:1 1 180px; margin:0 0 8px; }
.actionbar .fill .meta { flex:1 1 100%; }
.actionbar .twins { display:flex; gap:4px 18px; flex-wrap:wrap; }
.actionbar .twins > button.quiet { min-height:0; margin:4px 0 0; padding:0; font-size:13.5px; font-weight:500; text-decoration:underline; text-decoration-color:var(--edge); text-underline-offset:3px; background:none; }
.actionbar .twins:has(details[open]) details:not([open]) { display:none; }
.actionbar .twins details[open] { flex:1 1 100%; }
.actionbar .signas { margin-bottom:8px; }
.typed-preview { font:italic 700 30px/1.2 "Times New Roman",Times,serif; color:#0d1a66; margin:0 0 12px; min-height:36px; overflow-wrap:anywhere; padding:8px 14px; border-bottom:1.5px solid var(--edge); background:var(--wash); border-radius:8px 8px 0 0; } /* pen ink, matches what gets stamped */
.draw { margin:0 0 12px; }
.draw canvas { width:100%; max-width:680px; height:auto; aspect-ratio:17/5; display:block; background:#fff; border:1.5px dashed #C7B9AF; border-radius:var(--r); touch-action:none; cursor:crosshair; }
.draw.needs canvas { border-color:var(--bad); background:var(--bad-bg); }
.draw .hint { display:flex; justify-content:space-between; align-items:center; }
.result { font-size:16.5px; font-weight:600; line-height:1.45; margin:14px 0 8px; padding:14px 16px; border-radius:var(--r); border:1px solid var(--line); background:var(--wash); } .result:empty { display:none; }
.result.good { color:#1F5C39; background:var(--good-bg); border-color:var(--good-line); } .result.bad { color:var(--bad); background:var(--bad-bg); border-color:var(--bad-line); } .result.warn { color:#6B4B12; background:var(--warn-bg); border-color:var(--warn-line); }

/* --------------------------------------------------------- settings rows */
.rows { padding:0; }
.rows > section { padding:18px 20px; border-top:1px solid var(--line); display:grid; grid-template-columns:190px 1fr; gap:6px 24px; }
.rows > section:first-child { border-top:0; }
.rows h2 { font-size:15.5px; margin:0; line-height:1.4; }
.rows section > div > :last-child { margin-bottom:0; }
.rows .line { display:flex; align-items:center; gap:8px 10px; flex-wrap:wrap; margin:0 0 10px; }
.rows .line .grow { flex:1; min-width:0; overflow-wrap:anywhere; }
.rows details.company { margin:-4px 0 14px; }
.rows details.company > summary { font-size:13.5px; font-weight:500; color:var(--soft); }
.rows details.company[open] > summary { margin-bottom:8px; }
.steps-form .step { display:grid; grid-template-columns:30px 1fr; gap:0 12px; margin:0 0 20px; }
.steps-form .step > b { width:28px; height:28px; border-radius:50%; background:var(--tint); color:var(--go); font-size:14px; display:grid; place-items:center; margin-top:-2px; }
.steps-form .step > div > label:not(.drop), .steps-form .step > div > h3 { font-size:16px; font-weight:700; margin:0 0 8px; }

/* ----------------------------------------------------------- public pages */
.hero h1 { font-size:40px; margin-top:32px; }
.hero .lead, .lead { font-size:19px; color:var(--soft); max-width:640px; }
.doc-head .lead { font-size:17px; margin:0 0 4px; max-width:none; }
.steps { padding-left:22px; } .steps li { margin:8px 0; } .steps li::marker { color:var(--go); font-weight:700; }
.legal h2 { margin-top:30px; } .legal p, .legal li { max-width:700px; }

@media (max-width:640px) {
  .hero h1 { font-size:32px; } h1 { font-size:25px; }
  main { padding-top:16px; }
  .top { padding:10px 14px; }
  .card { padding:16px; }
  .card.link { grid-template-columns:1fr; }
  .card.link .button { grid-column:1; grid-row:auto; justify-self:stretch; margin-top:8px; }
  .card.link.slim { grid-template-columns:auto 1fr auto; }
  .card.link.slim .meta { grid-column:1 / 3; grid-row:2; }
  .card.link.slim .button { grid-column:3; grid-row:1 / span 2; justify-self:end; margin:0; }
  .card.start { grid-template-columns:1fr; }
  .rows > section { grid-template-columns:1fr; padding:16px; }
  .pair { grid-template-columns:1fr; }
  .actionbar { margin:16px -8px 0; padding:12px; bottom:8px; gap:10px; }
  .actionbar-text { flex-basis:100%; }
  .actionbar > button, .actionbar > .button { width:100%; }
  .row > input.code { max-width:none; flex:1 1 100%; }
  .row > .big { flex:1 1 100%; }
  dl { grid-template-columns:1fr; gap:0; } dt { font-size:13px; margin-top:8px; } dt:first-child { margin-top:0; }
}
@media (prefers-reduced-motion:reduce) { * { transition:none !important; scroll-behavior:auto !important; } button.busy::before { animation-duration:2s; } }

/* contact page and closing an account */
.trap { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
textarea { font:inherit; width:100%; padding:10px 12px; border:1.5px solid var(--line); border-radius:10px; margin:8px 0 10px; background:#fff; color:var(--ink); resize:vertical; transition:border-color .15s, box-shadow .15s; }
.note-form { margin:14px 0 2px; padding-top:14px; border-top:1px solid var(--line); }
.note-form textarea { margin:0 0 8px; }
.lines { white-space:pre-line; }
textarea:hover { border-color:#CFC4BB; }
textarea:focus { outline:none; border-color:var(--go); box-shadow:0 0 0 3px var(--tint); }
button.danger { background:var(--bad); border-color:var(--bad); color:#fff; }
button.danger:hover { filter:brightness(.92); }
input[readonly] { background:var(--wash); color:var(--soft); }
.pass-on { margin:16px 0 4px; padding-top:14px; border-top:1px solid var(--line); }
.pass-on form.row { margin:6px 0; }
.pass-on .meta { margin:6px 0 0; }
.wrap { overflow-wrap:anywhere; }
.or-google { margin:14px 0 0; }
.note-form label.check { display:flex; gap:8px; align-items:flex-start; font-weight:500; margin:2px 0 10px; }
.note-form label.check input { margin-top:4px; }

/* ------------------------------------------------- how documents are moving */
/* A document out with others: its name, each signer's five steps, and who it waits for. */
.card.link.moving { display:block; }
.moving-head { display:flex; justify-content:space-between; align-items:baseline; gap:6px 16px; flex-wrap:wrap; }
.track { list-style:none; margin:10px 0 0; padding:0; display:grid; gap:6px; }
.track > li { display:grid; grid-template-columns:minmax(80px,160px) auto 1fr; align-items:center; gap:4px 12px; font-size:14.5px; }
.track .who { font-weight:600; overflow-wrap:anywhere; }
.track .meta { font-size:13.5px; }
/* Each signer's steps in words, done ones marked: Emailed › Opened › Signed. */
.trail { list-style:none; margin:0; padding:0; display:inline-flex; flex-wrap:wrap; align-items:center; gap:2px 0; font-size:13.5px; font-weight:600; }
.trail li { display:inline-flex; align-items:center; gap:4px; color:var(--faint); }
.trail li + li::before { content:""; order:-2; width:14px; height:14px; margin:0 6px; background:var(--edge); -webkit-mask:var(--i-chev) center/contain no-repeat; mask:var(--i-chev) center/contain no-repeat; }
.trail li.done { color:var(--go); }
.trail li.done::after { content:""; order:-1; width:12px; height:12px; background:currentColor; -webkit-mask:var(--i-check) center/contain no-repeat; mask:var(--i-check) center/contain no-repeat; }
.trail li.bad { color:var(--bad); }
.holdup { display:block; margin:10px 0 0; padding:7px 12px; border-radius:8px; background:var(--warn-bg); color:#6B4B12; font-size:14px; }
@media (max-width:560px) { .track > li { display:flex; flex-wrap:wrap; align-items:center; gap:2px 12px; } .track .who { flex-basis:100%; } }
/* The account's numbers, under the lists. */
.numbers { display:grid; grid-template-columns:repeat(auto-fit, minmax(170px, 1fr)); gap:10px; margin:8px 0; }
.number { background:var(--card); border:1px solid var(--line); border-radius:var(--r-lg); padding:14px 16px; display:flex; flex-direction:column; gap:1px; }
.number strong { font-size:24px; line-height:1.2; letter-spacing:-.01em; }
.number > span:not(.meta) { font-weight:600; font-size:14.5px; }
.number .meta { font-size:13px; line-height:1.4; margin-top:3px; }
/* One document's story, oldest first, on its own page. */
.timeline { list-style:none; margin:4px 0 10px; padding:0 0 0 14px; border-left:2px solid var(--line); }
.timeline li { position:relative; display:grid; grid-template-columns:132px 1fr; gap:2px 14px; padding:4px 0; font-size:14.5px; }
.timeline li::before { content:""; position:absolute; left:-21px; top:10px; width:10px; height:10px; border-radius:50%; background:var(--card); border:2px solid var(--go); }
.timeline li.now::before { background:var(--go); }
.timeline time { color:var(--soft); font-size:13.5px; white-space:nowrap; }
@media (max-width:560px) { .timeline li { grid-template-columns:1fr; } }
.card > h2.label:first-child { margin-top:0; }

/* ------------------------------------------------------------ choices
   A small set of options, all in sight: a segmented control. A grey track
   holds the options and a white pill slides under the one picked (ui.js
   moves it; without the script the picked one simply turns white). Use this
   instead of a dropdown (<select>) for anything with a handful of choices:
   nothing pops up, one tap picks, and it is still a real radio group for
   keyboards and screen readers. */
.choice { border:0; padding:0; margin:0 0 6px; min-width:0; }
.choice legend { padding:0; margin:0 0 6px; font-weight:600; font-size:15px; }
.choice .track { position:relative; display:inline-flex; flex-wrap:wrap; max-width:100%; padding:3px; gap:2px; background:#EFE8E2; border-radius:12px; }
.choice .pill { position:absolute; left:0; top:0; border-radius:9px; background:var(--card); box-shadow:0 1px 3px rgba(42,26,23,.14), 0 1px 1px rgba(42,26,23,.06); transition:transform .22s cubic-bezier(.3,.7,.4,1), width .22s cubic-bezier(.3,.7,.4,1), height .22s; pointer-events:none; }
.choice label { position:relative; z-index:1; margin:0; cursor:pointer; }
.choice input { position:absolute; opacity:0; width:1px; height:1px; margin:0; }
.choice label > span { display:flex; justify-content:center; align-items:center; gap:6px; min-height:36px; padding:6px 14px; border-radius:9px; color:var(--soft); font-weight:500; font-size:15px; white-space:nowrap; transition:color .15s; }
.choice label:hover > span { color:var(--ink); }
.choice input:checked + span { color:var(--ink); font-weight:600; background:var(--card); box-shadow:0 1px 3px rgba(42,26,23,.14); }
.choice .track.slides input:checked + span { background:none; box-shadow:none; }
.choice input:focus-visible + span { box-shadow:0 0 0 3px var(--ring); }
.choice small { color:var(--soft); font-weight:500; font-size:13px; }
@media (prefers-reduced-motion:reduce) { .choice .pill { transition:none; } }
.settle { margin:14px 0 6px; }
.saved { font-weight:500; margin-left:6px; color:var(--good); }
.saved.bad { color:var(--bad); }
@media (max-width:520px) {
  .choice .track { display:flex; }
  .choice label { flex:1 1 auto; }
  .choice label > span { padding:6px 8px; font-size:14px; }
  .choice.signas label { flex:1 1 100%; }
}
