/* PDF Tools on the web iOS kit (ios.css + page.css): the pages grid, Fill & Sign as a full screen of its own, its
   tool capsule and the signature and request sheets. Paper is white in both looks, as a document is. */
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pro-pill { display: inline-block; font: 700 11px/1 var(--sys); color: var(--tint); background: color-mix(in srgb, var(--tint) 13%, transparent); padding: 3px 7px; border-radius: 999px; margin-left: 6px; vertical-align: 1px; letter-spacing: .02em; }
.is-pro .pro-pill { display: none; }
.glass.danger, .cap-btn.danger { color: var(--red); }
.glass.danger:disabled { color: var(--text3); }
.file-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
.pt-noscript { padding: 24px 4px; color: var(--text2); }
.pt-status { margin: 8px 4px 0; font-size: 15px; line-height: 20px; color: var(--text2); }
.pt-status.ok { color: var(--green); } .pt-status.err { color: var(--red); }
@media (prefers-color-scheme: light) { .pt-status.ok { color: #1f8a4c; } }
:root[data-theme="light"] .pt-status.ok { color: #1f8a4c; }
.est { display: flex; align-items: baseline; justify-content: center; gap: 10px; padding: 18px 0 6px; font-variant-numeric: tabular-nums; }
.est b { font: 700 34px/1 var(--sys); letter-spacing: -0.02em; }
.form.start .drop { margin-top: 10px; }
.drop h2.un-title { margin: 0; }
.drop .acts label { cursor: pointer; }
@media (max-width: 959px) { .form.start { display: flex; flex-direction: column; } .form.start > .side { order: 2; } .pg-cols:not(.start) { display: flex; flex-direction: column; } .pg-cols:not(.start) > .side { order: 2; } }
body.pt-busy .pg-tools .glass:not(.danger) { opacity: .6; }

/* the pages */
.pages-group .group-rows.plain { background: none; border-radius: 0; overflow: visible; }
.pages-group .group-rows > .row { display: block; padding: 0; min-height: 0; }
.pages-group .group-rows > .row + .row::before { display: none; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 12px; padding: 8px 2px 6px; }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 22px 18px; } }
.grid:empty { display: none; }
.pt-page { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: grab; outline: none; border-radius: 10px;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: manipulation; }
.pt-page:focus-visible .paper { box-shadow: 0 0 0 3px var(--tint), 0 3px 10px rgba(0,0,0,.1); }
.paper { position: relative; width: 100%; aspect-ratio: 1 / 1.414; background: #fff; border-radius: 6px; overflow: hidden; display: grid; place-items: center;
  box-shadow: 0 0 0 .5px rgba(0,0,0,.14), 0 3px 10px rgba(0,0,0,.1); transition: box-shadow .2s; }
.paper img { display: block; max-width: 100%; max-height: 100%; transition: transform .2s var(--ease); }
.pt-page.photo .paper { background: #f4f4f6; }
.pg-num { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--text2); font-variant-numeric: tabular-nums; }
.pg-num i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.pt-page .chk { position: absolute; right: 6px; top: 6px; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: 0 0 0 1.5px rgba(0,0,0,.28) inset; display: grid; place-items: center; color: transparent; font-size: 15px; }
.pt-page.on .chk { background: var(--tint); color: #fff; box-shadow: 0 0 0 2px #fff; }
.pt-page.on .paper { box-shadow: 0 0 0 3px var(--tint), 0 3px 10px rgba(0,0,0,.1); }
.pt-page.ghost { opacity: .3; }
.pt-page.lift { cursor: grabbing; transition: none; }
.pt-page.lift .paper { box-shadow: 0 0 0 .5px rgba(0,0,0,.12), 0 18px 36px rgba(0,0,0,.25); }
.pt-page.lift .pg-num { opacity: 0; }
body.pt-dragging, body.pt-dragging * { cursor: grabbing !important; }
.drop.drag { box-shadow: 0 0 0 3px var(--tint) inset; }

/* ---------- Fill & Sign: a screen of its own (the rest of the page hidden) ---------- */
body.signing .pg-bar, body.signing .pg-app, body.signing .pg-read-sep, body.signing .pg-read, body.signing .pg-foot, body.signing #yz-about,
body.hand .pg-bar, body.hand .pg-app, body.hand .pg-read-sep, body.hand .pg-read, body.hand .pg-foot, body.hand #yz-about { display: none !important; }
.signer [hidden], .pt-sheet [hidden] { display: none !important; }
.signer { min-height: 100svh; }
.sg-nav { position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: calc(var(--sat) + 8px) 16px 8px;
  background: color-mix(in srgb, var(--grouped) 80%, transparent); -webkit-backdrop-filter: blur(20px) saturate(1.8); backdrop-filter: blur(20px) saturate(1.8); box-shadow: 0 .5px 0 var(--sep); }
.sg-title { min-width: 0; text-align: center; }
.sg-title h2 { font: 600 17px/22px var(--sys); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-title small { display: block; font-size: 12px; line-height: 15px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-title small:empty { display: none; }
.sg-body { max-width: 860px; margin: 0 auto; padding: 12px 16px calc(var(--sab) + 170px); }
.sg-mode { display: grid; grid-template-columns: 1fr 1fr; max-width: 420px; margin: 0 auto 10px; height: 36px; padding: 2px; border-radius: 18px; background: var(--fill2); }
.sg-mode button { border-radius: 16px; font-size: 14px; font-weight: 500; color: var(--text); text-align: center; transition: background .2s; }
.sg-mode button[aria-pressed="true"] { background: #fff; font-weight: 600; box-shadow: 0 2px 8px rgba(0,0,0,.12), 0 0 0 .5px rgba(0,0,0,.04); }
:root[data-theme="dark"] .sg-mode button[aria-pressed="true"] { background: #636366; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sg-mode button[aria-pressed="true"] { background: #636366; } }
.sg-help { text-align: center; font-size: 13px; line-height: 18px; color: var(--text2); max-width: 520px; margin: 0 auto 12px; }
.rq-mode .sg-row1 > .sg-tools:not(.rq-tools), .rs-mode .sg-row1 > .sg-tools, .rs-mode .sg-mode, .rq-mode .sg-opts, .rs-mode .sg-opts, .rs-mode #sgCtx, .hand .sg-mode { display: none !important; }
.rs-check { font-size: 15px; padding: 10px 14px; border-radius: 16px; margin: 0 auto 10px; line-height: 1.45; max-width: 640px; }
.rs-check.good { background: color-mix(in srgb, var(--green) 14%, transparent); color: #1f8a4c; }
.rs-check.bad { background: color-mix(in srgb, var(--red) 14%, transparent); color: var(--red); }
:root[data-theme="dark"] .rs-check.good { color: var(--green); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rs-check.good { color: var(--green); } }
.rs-more { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: center; margin: 0 auto 12px; max-width: 640px; }
.rs-more small { color: var(--text2); flex: 1; min-width: 220px; font-size: 13px; line-height: 18px; }

/* the pages: PDF.js canvases with the form's fields and the items on top */
.sg-pages { display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 6px 0 10px; }
.sg-page { position: relative; width: 100%; max-width: 820px; background: #fff; box-shadow: 0 0 0 .5px rgba(0,0,0,.12), 0 8px 26px rgba(0,0,0,.14); border-radius: 4px; line-height: 0; }
.sg-page canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; border-radius: 4px; }
.sg-pno { position: absolute; left: 50%; bottom: -18px; transform: translateX(-50%); font: 500 12px/1 var(--sys); color: var(--text2); font-variant-numeric: tabular-nums; }
.sg-layer { position: absolute; inset: 0; line-height: 1.2; }
.placing .sg-layer { cursor: crosshair; }
.placing .sg-f, .placing .sg-item { pointer-events: none; }
.sg-f { position: absolute; margin: 0; border: 0; border-radius: 2px; background: rgba(66,120,235,.13); box-shadow: inset 0 0 0 1px rgba(66,120,235,.45); color: #111; font-family: Helvetica, Arial, sans-serif; padding: 0 .25em; line-height: 1.15; outline: none; min-width: 0; resize: none; letter-spacing: 0; }
.sg-f:focus { background: rgba(255,255,255,.96); box-shadow: inset 0 0 0 2px #2f6fe0; }
.sg-f:disabled { background: transparent; box-shadow: none; }
textarea.sg-f { padding: .15em .25em; overflow: hidden; }
select.sg-f { padding: 0 .1em; appearance: auto; -webkit-appearance: menulist; }
input.sg-f[type=checkbox], input.sg-f[type=radio] { appearance: none; -webkit-appearance: none; padding: 0; cursor: pointer; display: grid; place-items: center; }
input.sg-f[type=radio] { border-radius: 50%; }
input.sg-f[type=checkbox]:checked::after { content: ""; width: 60%; height: 60%; background: #111; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.5 5.4l2.4 2.4L8.6 2' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.5 5.4l2.4 2.4L8.6 2' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
input.sg-f[type=radio]:checked::after { content: ""; width: 46%; height: 46%; border-radius: 50%; background: #111; }
.sg-fsig { display: flex; align-items: center; justify-content: center; gap: .3em; cursor: pointer; color: #1f4f8a; font: 600 11px/1 Helvetica, Arial, sans-serif; border: 1.5px dashed rgba(47,111,224,.7); background: rgba(66,120,235,.08); box-shadow: none; }
.sg-item { position: absolute; touch-action: none; cursor: move; border-radius: 3px; outline: none; }
.sg-item.sel { box-shadow: 0 0 0 1.5px #2f6fe0; background: rgba(47,111,224,.05); }
.sg-item:focus-visible { box-shadow: 0 0 0 2px #2f6fe0; }
.sg-item img, .sg-item svg { display: block; width: 100%; height: 100%; pointer-events: none; user-select: none; -webkit-user-select: none; }
.sg-txt { font-family: Helvetica, Arial, sans-serif; white-space: pre; line-height: 1.2; min-width: .6em; outline: none; cursor: text; padding: 0; -webkit-user-select: text; user-select: text; letter-spacing: 0; }
.sg-txt:empty::before { content: "Type here"; opacity: .45; }
.sg-h { position: absolute; right: -16px; bottom: -16px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px #2f6fe0, 0 1px 4px rgba(0,0,0,.3); cursor: nwse-resize; display: none; touch-action: none; }
.sg-item.sel .sg-h { display: block; }
@media (hover: none) { .sg-h { width: 24px; height: 24px; right: -20px; bottom: -20px; } }

/* Ask others to sign: the boxes */
.sg-item.rq-slot { display: flex; align-items: center; overflow: hidden; background: color-mix(in srgb, var(--c) 14%, transparent); box-shadow: inset 0 0 0 1.5px var(--c); }
.sg-item.rq-slot.sel { box-shadow: inset 0 0 0 2px var(--c), 0 0 0 2px #2f6fe0; }
.rq-l { font: 700 calc(var(--k) * 8px)/1.1 Helvetica, Arial, sans-serif; padding: 0 calc(var(--k) * 3px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--c); pointer-events: none; }
.rs-box { position: absolute; margin: 0; border: 0; border-radius: 2px; padding: 0 .25em; display: flex; align-items: center; overflow: hidden; white-space: nowrap; color: #111; font-family: Helvetica, Arial, sans-serif; line-height: 1.2; --c: #2f6fe0; }
.rs-box img { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.rs-box.done { padding: 0; }
.rs-box.other { background: color-mix(in srgb, var(--c) 7%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent); color: var(--c); font: 600 calc(var(--k) * 7px)/1 Helvetica, Arial, sans-serif; opacity: .8; }
.rs-box.mine { background: color-mix(in srgb, var(--c) 13%, #fff); box-shadow: inset 0 0 0 1.5px var(--c); cursor: pointer; }
.rs-box.mine.sig { justify-content: center; color: var(--c); font: 700 calc(var(--k) * 10px)/1 Helvetica, Arial, sans-serif; padding: 0; }
.rs-box.mine.filled { background: transparent; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 35%, transparent); }
.rs-box.mine:focus { outline: none; box-shadow: inset 0 0 0 2px var(--c), 0 0 0 3px color-mix(in srgb, var(--c) 30%, transparent); }
input.rs-box.chk { appearance: none; -webkit-appearance: none; padding: 0; display: grid; place-items: center; }
input.rs-box.chk:checked::after { content: "✓"; font: 700 calc(var(--k) * 12px)/1 Helvetica, Arial, sans-serif; color: #111; }
.rs-box.flash { animation: rsflash 1.1s; }
@keyframes rsflash { 40% { box-shadow: inset 0 0 0 3px var(--c), 0 0 0 7px color-mix(in srgb, var(--c) 35%, transparent); } }

/* the options under the pages */
.sg-foot { max-width: 640px; margin: 22px auto 0; }
.sg-opts .group { margin-top: 12px; }
.sg-opts .group:first-child { margin-top: 0; }
.sg-opts .toggle-text > span:first-child { font-size: 17px; }
.sg-opts .row-chevron::before { content: "›"; font-size: 22px; line-height: 1; }
.sg-legal { font-size: 13px; line-height: 18px; color: var(--text2); padding: 12px 20px 0; margin: 0; }
.sg-acts { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 0; }

/* the dock: the tools as a floating glass capsule, the selected item's controls above it */
.sg-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 10px calc(var(--sab) + 12px); pointer-events: none;
  background: linear-gradient(to top, color-mix(in srgb, var(--grouped) 92%, transparent) 40%, color-mix(in srgb, var(--grouped) 0%, transparent)); }
@media (min-width: 960px) { .sg-dock { background: none; } }
.sg-dock > * { pointer-events: auto; }
.sg-row1 { display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 100%; }
.capsule { display: flex; align-items: center; gap: 2px; padding: 5px; border-radius: 28px; max-width: 100%; overflow-x: auto; scrollbar-width: none;
  background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(1.8); backdrop-filter: blur(18px) saturate(1.8); box-shadow: 0 0 0 .5px var(--glass-edge), 0 8px 26px rgba(0,0,0,.16); }
.capsule::-webkit-scrollbar { display: none; }
.cap-btn { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 52px; height: 52px; padding: 0 8px; border-radius: 22px; font-size: 11px; font-weight: 500; color: var(--text); transition: background .15s; }
.cap-btn .sf { font-size: 20px; }
.cap-btn[aria-pressed="true"] { background: color-mix(in srgb, var(--tint) 15%, transparent); color: var(--tint); }
.cap-btn:active { background: var(--fill2); }
.cap-btn .mk { font: 600 19px/20px var(--sys); }
.sg-ctx { gap: 0; padding: 4px; }
.sg-ctx .cap-btn { height: 44px; flex-direction: row; gap: 4px; font-size: 14px; min-width: 40px; padding: 0 9px; }
.sg-ctx .sep { width: 1px; height: 22px; background: var(--sep); margin: 0 2px; flex: none; }
.sg-ctx .hint { font-size: 15px; font-weight: 600; padding: 0 10px 0 14px; white-space: nowrap; }
.sg-sw { display: inline-flex; align-items: center; }
.sg-ctx .sg-sw i { width: 20px; height: 20px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px rgba(127,127,127,.5); }
.sg-ctx .sg-sw [aria-pressed="true"] { background: none; }
.sg-ctx .sg-sw [aria-pressed="true"] i { box-shadow: 0 0 0 2px var(--glass), 0 0 0 4px var(--tint); }
.sg-ctx.slot .sg-sw, .sg-ctx.slot .sep { display: none; }
@media (max-width: 420px) { .sg-ctx .cap-btn { padding: 0 6px; font-size: 13px; min-width: 36px; } .cap-btn { min-width: 48px; padding: 0 6px; } }
.rq-bar { display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 100%; }
.rq-people { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; max-width: 100%; }
.rq-people::-webkit-scrollbar { display: none; }
.rq-chip, .rq-add { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 13px 0 11px; border-radius: 20px; font-size: 15px;
  background: var(--glass); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 0 0 .5px var(--glass-edge), 0 4px 14px rgba(0,0,0,.1); }
.rq-chip i, .rq-who i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); flex: none; }
.rq-chip small { font: 600 12px/1 var(--sys); color: var(--text2); background: var(--fill2); padding: 3px 7px; border-radius: 999px; }
.rq-chip[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--c), 0 4px 14px rgba(0,0,0,.1); font-weight: 600; }
.rq-add { color: var(--tint); font-weight: 500; }
.rs-bar { gap: 10px; padding: 5px 5px 5px 18px; }
.rs-bar span { font-weight: 600; font-size: 15px; white-space: nowrap; }
.rs-bar.ready span { color: #1f8a4c; }

/* ---------- sheets (the signature, and the request's steps) ---------- */
dialog.pt-sheet { border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 100%; max-height: calc(100dvh - var(--sat) - 10px); background: var(--grouped); color: var(--text);
  border-radius: 38px 38px 0 0; box-shadow: 0 -2px 30px rgba(0,0,0,.16); overflow: auto; overscroll-behavior: contain; padding-bottom: var(--sab); }
dialog.pt-sheet[open] { animation: ptUp .42s var(--ease); }
dialog.pt-sheet::backdrop { background: rgba(0,0,0,.28); }
@keyframes ptUp { from { transform: translateY(100%); } }
@media (min-width: 700px) { dialog.pt-sheet { margin: auto; width: min(580px, calc(100% - 48px)); max-height: min(860px, calc(100dvh - 64px)); border-radius: 32px; } @keyframes ptUp { from { transform: translateY(40px); opacity: 0; } } }
@media (prefers-reduced-motion: reduce) { dialog.pt-sheet[open] { animation: none; } }
.sh-head { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: minmax(64px, auto) minmax(0, 1fr) minmax(64px, auto); align-items: center; gap: 8px; padding: 14px 16px 8px;
  background: color-mix(in srgb, var(--grouped) 86%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.sh-head h3 { margin: 0; font: 600 17px/22px var(--sys); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-head > :first-child { justify-self: start; } .sh-head > :last-child { justify-self: end; }
.sh-in { padding: 6px 16px 22px; }
.rq-in { padding: 0 0 22px; }
.rq-in > :not(.sh-head) { margin-left: 16px; margin-right: 16px; }
.sh-saved { margin: 4px 0 14px; }
.sh-saved .lbl { font-size: 13px; color: var(--text2); padding: 0 6px 8px; }
.sh-savedwrap { display: flex; flex-wrap: wrap; gap: 10px; }
.sh-sv { position: relative; }
.sh-sv > button:first-child { width: 150px; height: 64px; padding: 6px 10px; background: #fff; border-radius: 16px; display: grid; place-items: center; box-shadow: 0 0 0 .5px var(--sep); }
.sh-sv img { max-width: 100%; max-height: 100%; }
.sh-sv .del { position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--row); color: var(--text2); box-shadow: 0 0 0 .5px var(--sep), 0 2px 6px rgba(0,0,0,.12); }
.sg-tabs { margin: 2px 0 12px; }
.sg-tabs .seg[aria-selected="true"] { font-weight: 600; }
.sg-tabs:has(#shTabType[aria-selected="true"]) { --i: 1; } .sg-tabs:has(#shTabUp[aria-selected="true"]) { --i: 2; } .sg-tabs { --i: 0; }
.pad-wrap { position: relative; background: #fff; border-radius: 22px; height: 190px; overflow: hidden; box-shadow: 0 0 0 .5px var(--sep); }
.pad-wrap::after { content: ""; position: absolute; left: 22px; right: 22px; bottom: 46px; height: 1.5px; background: #c9ccd2; pointer-events: none; }
.pad-x { position: absolute; left: 22px; bottom: 50px; color: #9aa1ab; font: 600 18px/1 var(--sys); pointer-events: none; }
.pad-hint { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; color: #9aa1ab; font-size: 13px; pointer-events: none; line-height: 1; }
#sgPad { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; display: block; }
.sh-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.sh-row .grow { flex: 1; }
.sh-row .sg-sw { gap: 10px; }
.sh-fonts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.sh-fonts button { display: block; height: 64px; background: #fff; color: #111827; border-radius: 16px; font-size: 26px; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 6px 10px; text-align: center; box-shadow: 0 0 0 .5px var(--sep); }
.sh-fonts button[aria-pressed="true"] { box-shadow: 0 0 0 2.5px var(--tint); }
.sh-note { font-size: 13px; line-height: 18px; color: var(--text2); margin: 10px 6px 0; }
.up-prev { border-radius: 22px; min-height: 120px; display: grid; place-items: center; padding: 12px; background: #fff repeating-conic-gradient(#eef0f2 0 25%, #fff 0 50%) 0 0 / 16px 16px; box-shadow: 0 0 0 .5px var(--sep); }
.up-prev canvas { max-width: 100%; max-height: 180px; display: block; }
.up-prev p { color: #6b7280; font-size: 14px; margin: 0; text-align: center; line-height: 1.4; }
.sh-err { color: var(--red); font-size: 14px; margin: 8px 6px 0; }
.sh-err:empty { display: none; }
/* the request's sheets are written as HTML in sign.js: shaped here like the kit's forms */
.rq-f { display: flex; flex-direction: column; gap: 4px; margin: 0 0 12px; font-size: 13px; font-weight: 600; color: var(--text2); }
.rq-f > span { padding: 0 6px; }
.rq-f small { font-weight: 400; }
.rq-f input { font: inherit; font-size: 17px; font-weight: 400; color: var(--text); border: 0; border-radius: 14px; padding: 12px 16px; background: var(--row); min-height: 48px; width: 100%; outline: none; }
.rq-f input:focus { box-shadow: 0 0 0 2px var(--tint); }
.rq-p { margin: 0 0 12px; line-height: 1.5; padding: 0 4px; }
.rq-small { font-size: 13px; color: var(--text2); }
.rq-list, .rq-who { display: flex; flex-direction: column; gap: 0; margin: 0 0 14px; background: var(--row); border-radius: 22px; overflow: hidden; }
.rq-list .btn, .rq-list button, .rq-who button { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 18px; text-decoration: none; color: var(--tint); font-size: 17px; text-align: left; }
.rq-list > * + *, .rq-who > * + * { border-top: .5px solid var(--sep); }
.rq-who button { color: var(--text); }
.rq-who button:disabled { color: var(--text3); }
.rq-who button small { color: var(--text2); margin-left: auto; font-size: 13px; }
.rq-warn { color: var(--orange); font-size: 14px; margin: 0 0 12px; padding: 0 4px; }
.rq-danger { color: var(--red); }
.sg-opt { display: flex; gap: 12px; align-items: flex-start; background: var(--row); border-radius: 18px; padding: 14px 16px; margin: 0 0 12px; line-height: 1.4; }
.sg-opt input { margin-top: 2px; width: 22px; height: 22px; accent-color: var(--tint); flex: none; }
.sg-opt small { color: var(--text2); display: block; margin-top: 2px; font-size: 13px; }
.sg-opt > div { flex: 1; }
#rqIn .sh-acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
#rqIn .sh-acts .grow { flex: 1; }
#rqIn .sh-acts button { min-height: 48px; padding: 0 18px; border-radius: 24px; background: var(--fill2); color: var(--text); font-weight: 500; }
#rqIn .sh-acts .primary { background: var(--tint); color: #fff; font-weight: 600; }
.sh-sp { width: 44px; }

/* the toast for Fill & Sign's messages (longer for errors), above the dock */
.sg-toast { position: fixed; left: 50%; bottom: calc(var(--sab) + 16px); transform: translate(-50%, 20px); opacity: 0; z-index: 60; width: max-content; max-width: min(92vw, 560px); color: #fff; background: rgba(0,0,0,.86);
  padding: 12px 18px; border-radius: 22px; font-size: 15px; line-height: 1.4; box-shadow: 0 8px 28px rgba(0,0,0,.22); transition: opacity .25s, transform .35s var(--ease); pointer-events: none; }
.sg-toast.on { opacity: 1; transform: translate(-50%, 0); }
.sg-toast.err { background: #c62f24; }
body.signing .sg-toast { bottom: calc(var(--sab) + 150px); }
