/* Poll Worker Application Maker: the paper application (paper.js), the QR code sign, and the
   tool's own bits of page. The paper is always black on white, in the preview and on paper. */
.paper { width: 7.5in; background: #fff; color: #111; font: 11pt/1.35 'Noto Sans', Arial, sans-serif; padding: 0; }
.paper-view { width: 100%; overflow: hidden auto; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.18); margin: 0 0 12px; padding: 0; }
.paper-scale { transform-origin: 0 0; padding: 0.4in 0.5in; box-sizing: content-box; }
.paper-scale .paper { width: 7.5in; }
.phead { display: flex; gap: 14px; align-items: center; border-bottom: 2px solid #111; padding-bottom: 8px; margin-bottom: 8px; }
.phead img { max-height: 0.8in; max-width: 1.6in; }
.phead h2 { font-size: 18pt; margin: 0; line-height: 1.15; }
.phead > div:not(.pqr) { flex: 1; }
.poff { margin: 2px 0 0; font-weight: 700; }
.pcon { margin: 2px 0 0; font-size: 9pt; }
.pqr { display: flex; align-items: center; gap: 8px; font-size: 8.5pt; max-width: 2.6in; }
.pqr svg { width: 0.95in; height: 0.95in; flex: none; }
.pqr p { margin: 0; }
.purl { word-break: break-all; }
.pintro { margin: 4px 0 6px; }
.ps { font-size: 12pt; margin: 12px 0 2px; padding: 2px 6px; background: #e8e8e8; break-after: avoid; }
.pq { margin: 6px 0 4px; break-inside: avoid; }
.pl { display: block; font-weight: 700; font-size: 10pt; }
.ph { display: block; font-size: 8.5pt; color: #333; }
.pline { display: block; border-bottom: 1px solid #111; height: 22px; }
.prow { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.sig { display: grid; grid-template-columns: 1fr 1.6in; gap: 0 18px; }
.popts { display: flex; flex-wrap: wrap; gap: 2px 16px; margin-top: 3px; }
.popts.cols2 { display: grid; grid-template-columns: 1fr 1fr; }
.popts.cols3 { display: grid; grid-template-columns: 1fr 1fr 1fr; font-size: 9.5pt; }
.po { display: inline-flex; align-items: flex-start; gap: 6px; }
.pbox { display: inline-block; width: 12px; height: 12px; border: 1.5px solid #111; flex: none; margin-top: 3px; }
.agree { display: flex; gap: 8px; font-weight: 700; }
.preturn { margin-top: 12px; padding: 6px 8px; border: 1.5px solid #111; break-inside: avoid; }
.pfoot { margin-top: 10px; font-size: 8.5pt; color: #444; border-top: 1px solid #999; padding-top: 4px; }
.sign { text-align: center; padding-top: 0.6in; }
.sign .slogo { max-height: 1.2in; max-width: 3in; }
.sign h2 { font-size: 44pt; margin: 0.2in 0 0.1in; }
.slead { font-size: 16pt; margin: 0 0.4in; }
.sqr svg { width: 4in; height: 4in; margin: 0.3in auto 0.1in; display: block; }
.sscan { font-size: 24pt; font-weight: 700; margin: 0; }
.surl { font-size: 14pt; margin: 6px 0; word-break: break-all; }
.soff { font-size: 13pt; margin-top: 0.3in; }

#printArea { display: none; }
@media print {
  @page { size: letter; margin: 0.5in; }
  body > *:not(#printArea) { display: none !important; }
  #printArea { display: block !important; }
  #printArea .paper { width: auto; }
}

/* the tool's page */
.preview h3 { font-size: 17px; margin: 18px 0 4px; }
.sendto { margin: 6px 0; }
.prefix { align-self: center; color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; }
.live { overflow-wrap: anywhere; }
.qr-row { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.qr-box { width: 140px; height: 140px; background: #fff; padding: 4px; border-radius: 6px; flex: none; }
.qr-box svg { width: 100%; height: 100%; }
.apps details.app { border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; margin: 6px 0; background: var(--card); }
.apps summary { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.apps .an { font-weight: 700; flex: 1; }
.apps .ad { color: var(--muted); font-size: 14px; }
.apps dl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 2px 10px; font-size: 14px; margin: 8px 0; }
.apps dt { color: var(--muted); }
.apps dd { margin: 0; overflow-wrap: anywhere; }
.tag.bad { border-color: var(--red); color: var(--red); }
.saved-row .tag, .step .tag { font-size: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 1px 8px; color: var(--muted); font-weight: 400; }
.step.head summary .st { text-transform: uppercase; letter-spacing: .04em; font-size: 14px; }
.diy ol { padding-left: 1.3em; } .diy li { margin: 6px 0; }
pre.code { white-space: pre-wrap; word-break: break-word; font-size: 12.5px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 10px; max-height: 360px; overflow: auto; }
.gate a.btn, #hostOutAct a.btn { display: inline-block; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 6px; text-decoration: none; font-weight: 700; }
#readersList label { font-weight: 400; }
