/* Signed forms: public signing pages, editor, poster. */
.rowbtns { display: flex; align-items: center; gap: .2rem; }
.filterchips { flex-wrap: wrap; overflow: visible; margin: -.3rem 0 1rem; padding: 0; align-items: center; }   /* the filters wrap on a phone too */ .chipsep { width: 1px; height: 22px; background: var(--line-2); margin: 0 .2rem; }
.toolbar select.auto { width: auto; flex: 0 1 240px; min-width: 0; max-width: 100%; }
.dl.small dd { font-size: .875rem; } .break code { word-break: break-all; }
.sigimg { display: block; width: 100%; max-width: 360px; height: auto; border: 1px solid var(--line); border-radius: var(--r-s); background: #fff; }

/* starters */
.starters { display: grid; gap: .7rem; }
.starter { display: grid; grid-template-columns: auto 1fr; gap: .1rem .7rem; align-items: center; text-align: left; padding: .9rem 1rem; border: 1px solid var(--line-2);
  border-radius: var(--r); background: #fff; color: var(--text); font: inherit; cursor: pointer; }
.starter:hover { border-color: var(--accent); background: var(--accent-soft); }
.starter .ic { grid-row: span 2; color: var(--accent); } .starter strong { color: var(--ink); } .starter span { grid-column: 2; font-size: .8125rem; color: var(--muted); }

/* editor */
.lockednote { margin-bottom: 1rem; } .lockednote span { flex: 1 1 14rem; }
.editor { display: grid; gap: 1.1rem; align-items: start; }
.grid-title { display: grid; gap: 1rem; }
.flds { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
/* phones: grip · name · remove on the first line, the «required» tick WITH its word on a second line */
.fld { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .3rem .4rem; padding: .5rem; border: 1px solid var(--line); border-radius: var(--r-s); background: #fff; }
.fld.dragging { border-color: var(--accent); box-shadow: 0 8px 24px rgba(10, 10, 11, .14); position: relative; z-index: 2; }
.fld.fixed { background: var(--panel); }
.fld-main { flex: 1; min-width: 0; display: grid; gap: .4rem; } .fld-main .pill { justify-self: start; }
.fld-req { grid-column: 2; grid-row: 2; display: flex; align-items: center; gap: .45rem; min-height: 32px; font-size: .8125rem; color: var(--muted); white-space: nowrap; }
.fld-req span { margin: 0; font-weight: 500; color: var(--text); }
/* the name of a question grows with its text, so a long sentence is never cut */
.fld-main textarea { min-height: 44px; resize: none; overflow: hidden; line-height: 1.4; padding-top: .62rem; padding-bottom: .62rem; }
.fld.fixed .fld-req { min-height: 0; }
/* the form text: two buttons instead of marks to remember, and what the customer will read */
.bodybar { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-bottom: .45rem; }
.bodygrid { display: grid; gap: .8rem; align-items: start; }
.bodyprev { min-width: 0; } .bodyprev > span { display: block; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }
.bodyprev .doc-text { margin: 0; max-height: 22rem; overflow: auto; } .bodyprev .doc-text:empty::before { content: attr(data-empty); color: var(--muted); }
.grip { cursor: grab; touch-action: none; } .grip-ph { width: 40px; flex: none; }
.addrow { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: .9rem; }

/* public pages (the frame is kit.css): a form and its text need a wider page */
.pub-main { max-width: 640px; }
.sign h1 { font-size: 1.45rem; margin-bottom: .8rem; }
.doc-text { padding: 1rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); margin-bottom: 1.3rem; font-size: .95rem; }
.doc-text h3 { margin: 1rem 0 .3rem; } .doc-text h3:first-child { margin-top: 0; } .doc-text p { margin-bottom: .6rem; } .doc-text ul { margin: 0 0 .6rem; padding-left: 1.2rem; }
.doc-text > :last-child { margin-bottom: 0; }
.sign-fields { display: grid; gap: 1.05rem; margin-bottom: 1.4rem; }
.sign em { font-style: normal; font-weight: 400; color: var(--muted); font-size: .8125rem; }
.tick, .opt { display: flex; align-items: flex-start; gap: .7rem; padding: .8rem .9rem; border: 1px solid var(--field-line); border-radius: var(--r-s); cursor: pointer; background: #fff; }
.tick input, .opt input { width: 24px; height: 24px; margin-top: 1px; }
.tick span, .opt span { margin: 0; font-weight: 500; font-size: .95rem; color: var(--ink); }
.tick:has(input:checked), .opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice { border: 0; padding: 0; margin: 0; display: grid; gap: .45rem; } .choice legend { font-size: .875rem; font-weight: 600; color: var(--ink); margin-bottom: .35rem; padding: 0; }
.f.bad .tick, .f.bad .opt, .sigbox.bad .pad { border-color: var(--red); }
.sigbox { margin-bottom: 1.2rem; }
.sig-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .35rem; } .sig-head > span { font-size: .875rem; font-weight: 600; color: var(--ink); }
.pad { position: relative; border: 1.5px dashed var(--field-line); border-radius: var(--r); background: #fff; height: 190px; overflow: hidden; }
.pad canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.pad-hint { position: absolute; inset: auto 0 14px 0; text-align: center; color: var(--muted); font-size: .9rem; pointer-events: none; }
.pad::after { content: ""; position: absolute; left: 8%; right: 8%; bottom: 44px; border-bottom: 1px solid var(--line-2); pointer-events: none; }
.pad.inked .pad-hint { display: none; }
.sign-legal { margin-top: .9rem; text-align: center; }
.cf-turnstile { margin-bottom: 1rem; }
.donebox { text-align: center; padding-top: 1.2rem; } .donebox > p { margin-bottom: .9rem; }
.done-ic { display: inline-grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--green-soft); color: var(--green); }
.done-code span { color: var(--muted); font-size: .875rem; } .done-code code { font-size: 1.05rem; letter-spacing: .06em; }
.verify h1 { font-size: 1.4rem; margin-bottom: .5em; }
.vcard { border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem; margin-bottom: 1.2rem; }
.vcard.good { border-color: var(--green-line); background: #f6fbf8; } .vcard.bad { border-color: var(--red-line); background: #fffbfa; }
.vcard h2 { margin-bottom: .4rem; } .v-ic { margin: 0 0 .3rem; } .vcard.good .v-ic { color: var(--green); } .vcard.bad .v-ic { color: var(--red); }
.vform { display: flex; gap: .6rem; align-items: flex-end; } .vform label { flex: 1; } .vform input { text-transform: uppercase; letter-spacing: .08em; }

/* poster */
.poster { background: var(--bg-2); }
.poster-bar { text-align: center; margin: 1rem 0; }
.poster-sheet { width: min(100% - 2rem, 190mm); margin: 0 auto 2rem; padding: 14mm 12mm; background: #fff; border-radius: var(--r); text-align: center; box-shadow: var(--shadow); }
.poster-logo { max-height: 70px; margin-bottom: .6rem; } .poster-biz { font-weight: 700; color: var(--muted); margin-bottom: .4rem; }
.poster-sheet h1 { font-size: 2rem; margin-bottom: 1.2rem; }
.poster-qr svg { width: min(100%, 110mm); height: auto; }
.poster-how { font-size: 1.25rem; font-weight: 600; color: var(--ink); margin: 1.2rem 0 .5rem; } .poster-link { color: var(--muted); font-size: .9rem; word-break: break-all; }

@media (min-width: 620px) {
  .starters { grid-template-columns: 1fr 1fr; } .grid-title { grid-template-columns: 1fr 190px; }
  .fld { display: flex; gap: .4rem; } .fld-req { min-height: 0; } .fld-main { grid-template-columns: auto 1fr; align-items: center; } .fld-main input[name="f_options[]"] { grid-column: 2; }
  .pad { height: 210px; }
}
@media (min-width: 1000px) { .editor { grid-template-columns: minmax(0, 1fr) 280px; } .sharebox { position: sticky; top: calc(var(--top) + 1rem); } }
@media (min-width: 1240px) { .bodygrid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .bodygrid textarea { min-height: 22rem; } }
@media print { .poster-bar { display: none; } .poster { background: #fff; } .poster-sheet { box-shadow: none; width: 100%; margin: 0; } }

/* 2026-11-19 round 4: «try with a sample» under the code field of a demo */
.sample { margin: 1rem 0 0; } .sample a { display: inline-flex; align-items: center; gap: .3rem; min-height: 40px; font-weight: 600; }
.bodyfield > small { display: block; margin-top: .45rem; font-size: .8125rem; }
/* 2026-11-19 judges round 4: how to reach the business on the customer's pages, the privacy link, a link that is gone, delete for good */
.sign .note, .donebox .note { margin-bottom: 1rem; text-align: left; }
.sign-privacy { display: block; margin-top: .4rem; overflow-wrap: anywhere; } a.sign-privacy { font-weight: 600; }
.shopcard { margin: 1.4rem 0 0; text-align: left; }
.vcard.test { border-color: var(--amber-line); background: var(--amber-soft); } .vcard.test .v-ic { color: var(--amber); }
.delhint { text-align: right; margin: 0 0 1.5rem; }
/* The pad keeps one shape on every screen: a signature drawn with the phone upright and sent with it turned is not stretched. */
@supports (aspect-ratio: 1) { .pad { height: auto; aspect-ratio: 2 / 1; } }
/* 2026-11-19 judges round 5: the keyboard's mark on a tick box or a choice is the whole box; «Clear» is easy to press; an empty overview leads on */
.tick:has(input:focus-visible), .opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.tick input:focus-visible, .opt input:focus-visible { outline: none; }
.sigbox:focus { outline: none; } .sigbox.bad:focus .pad { outline: 2px solid var(--red); outline-offset: 2px; }
.sig-head .btn { min-height: 44px; }
.empty .btn { margin-top: .9rem; }
/* 2026-11-20: signing by typing the name, for somebody who cannot draw. The keyboard reaches the pad and the link under it;
   the typing field looks like the pad's signature line. The check page says its one sentence in the card's heading. */
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.pad canvas:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; border-radius: var(--r-s); }
.sig-alt { margin: .45rem 0 0; }
.sig-link { appearance: none; background: none; border: 0; padding: .55rem 0; min-height: 44px; font: inherit; font-size: .9375rem; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: left; border-radius: var(--r-s); }
.sig-typed > label { display: block; font-size: .875rem; font-weight: 600; color: var(--ink); margin-bottom: .35rem; }
.pad.typed { height: 104px; aspect-ratio: auto; }
.pad.typed::after { bottom: 22px; }
.pad.typed input { position: relative; z-index: 1; display: block; width: 100%; height: 100%; border: 0; border-radius: 0; background: transparent; padding: 0 .9rem 12px; text-align: center; font-size: 1.6rem; font-weight: 500; color: var(--ink); box-shadow: none; }
.pad.typed input:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; border-radius: var(--r-s); }
.sig-typed > .small { margin: .4rem 0 0; }
.v-state { margin: 0 0 .7rem; font-weight: 600; color: var(--ink); }
.vcard h2 { font-size: 1.0625rem; line-height: 1.4; }
