/* FMCapture — Spike #1
   Mobile-first. DATABASE SUCCESS Project Portal design language
   (navy #0B1437 / red #D7263D brand, green done, amber attention;
   16px cards + layered shadow; red-halo brand dot; Roboto / Roboto Mono).
   Self-contained: fonts served from ./fonts. */

@font-face{font-family:'Roboto';src:url('fonts/Roboto-latin.woff2') format('woff2');
  font-weight:300 700;font-style:normal;font-display:swap}
@font-face{font-family:'Roboto Mono';src:url('fonts/RobotoMono-latin.woff2') format('woff2');
  font-weight:400 700;font-style:normal;font-display:swap}

:root{
  /* Database Success Project Portal tokens (mirrors the Captures Inbox) */
  --navy:#0B1437; --navy-2:#142253; --red:#D7263D; --red-dark:#b51e31;
  --red-halo:rgba(215,38,61,.18); --sec:#667eea;
  --chip-grad:linear-gradient(140deg,#6E84EC 0%,#3A4A9E 45%,#0B1437 100%);
  --amber:#8A6400; --amber-bg:#FFF6E0; --amber-line:#EAD9A6;
  --green:#1E7F5C; --green-bg:#EAF6F0; --green-line:#CFE6DC;
  --page:#F4F6FA; --card:#FFFFFF; --line:#E1E6F0; --line-2:#EDF0F6;
  --ink:#1A1A2E; --ink2:#46506A; --ink3:#727C92;
  --radius:16px;
  --shadow:0 1px 2px rgba(11,20,55,.04), 0 10px 28px rgba(11,20,55,.07);
  --mono:'Roboto Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
}
*{box-sizing:border-box}
[hidden]{display:none !important}  /* beat class rules that set display (.btn, .kv) */
html,body{margin:0}
body{
  font-family:'Roboto',system-ui,-apple-system,"Segoe UI",Helvetica,Arial,sans-serif;
  background:var(--page); color:var(--ink);
  font-size:16px; line-height:1.5;
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;
  -webkit-text-size-adjust:100%;
  padding-bottom:env(safe-area-inset-bottom);
}

/* ---- header (Portal masthead: navy bar + red-halo brand dot) ---- */
.hdr{background:var(--navy); color:#fff; padding:16px 16px calc(16px + env(safe-area-inset-top));
     padding-top:calc(16px + env(safe-area-inset-top));}
.hdr-in{max-width:640px;margin:0 auto;display:flex;align-items:flex-start;gap:12px}
.brand-dot{width:11px;height:11px;border-radius:50%;background:var(--red);
     box-shadow:0 0 0 4px var(--red-halo);flex:0 0 auto;margin-top:7px}
.hdr-title{font-size:20px;font-weight:700;letter-spacing:.2px;line-height:1.15}
.hdr-tag{display:inline-block;background:var(--red);color:#fff;font-size:12px;font-weight:700;
         padding:2px 8px;border-radius:10px;vertical-align:middle;margin-left:6px}
.hdr-sub{font-size:13px;color:#A9B3CC;margin-top:4px;letter-spacing:.2px}

/* ---- warning banner ---- */
.warn{max-width:640px;margin:12px auto 0;background:var(--amber-bg);border:1px solid var(--amber-line);
      color:#5a4300;padding:12px 14px;border-radius:12px;font-size:14px;line-height:1.4}
.warn b{color:#3a2c00}

/* ---- layout ---- */
.wrap{max-width:640px;margin:0 auto;padding:16px}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);
      padding:16px;margin-bottom:16px;box-shadow:var(--shadow)}
.card-h{display:flex;align-items:center;gap:11px;margin:0 0 12px}
.card-h h2{font-size:17px;margin:0;font-weight:600;color:var(--ink)}
.num{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;
     background:var(--chip-grad);color:#fff;border-radius:9px;font-size:14px;font-weight:700;flex:0 0 auto;
     box-shadow:inset 0 1px 0 rgba(255,255,255,.22),inset 0 -2px 4px rgba(7,12,38,.40),
                0 1px 1px rgba(11,20,55,.18),0 3px 9px rgba(102,126,234,.32)}

/* ---- buttons ---- */
.btn{appearance:none;border:1px solid var(--line);background:#fff;color:var(--ink);
     font-family:inherit;
     font-size:16px;font-weight:600;padding:13px 16px;border-radius:12px;cursor:pointer;
     min-height:48px;display:inline-flex;align-items:center;justify-content:center;gap:8px}
.btn:active{transform:translateY(1px)}
.btn:disabled{opacity:.45;cursor:default}
.btn:disabled:active{transform:none}
.btn-pri{background:var(--navy-2);border-color:var(--navy-2);color:#fff}
.btn-pri:active{background:var(--navy)}
.btn-ghost{background:var(--line-2);border-color:transparent;color:var(--ink2)}
.btn.full{width:100%}
.row{display:flex;gap:10px;margin-top:12px;flex-wrap:wrap}
.row .btn{flex:1 1 auto}

/* ---- scanner ---- */
.scanwrap{position:relative;width:100%;aspect-ratio:4/3;background:var(--navy);border-radius:12px;
          overflow:hidden;display:flex;align-items:center;justify-content:center}
#video{width:100%;height:100%;object-fit:cover;display:block}
.scanidle{position:absolute;color:#8791ad;font-size:14px;font-weight:600}
.scanline{position:absolute;left:8%;right:8%;top:50%;height:2px;background:var(--red);
          box-shadow:0 0 12px 2px rgba(215,38,61,.7);animation:sweep 2s ease-in-out infinite}
@keyframes sweep{0%{top:22%}50%{top:78%}100%{top:22%}}
.scandbg-wrap{margin-top:10px}
.scandbg{background:var(--navy);color:#7ee0c6;border-radius:10px;padding:10px 12px;font-size:12px;
         line-height:1.5;white-space:pre-wrap;word-break:break-word;font-family:var(--mono)}
.scandbg-wrap .btn{margin-top:8px;width:100%}
.fallback{margin-top:12px}
.hint{font-size:13px;color:var(--ink2);margin:8px 0 0;line-height:1.45}
.lastscan{margin-top:12px;background:var(--green-bg);border:1px solid var(--green-line);border-radius:12px;padding:12px}
.ls-val{font-family:var(--mono);font-size:16px;font-weight:700;color:var(--green);word-break:break-all}
.ls-meta{font-size:12px;color:var(--ink2);margin-top:2px;font-family:var(--mono)}
.manual{margin-top:12px}
.manual-lbl{display:block;margin-top:0}
.manual-row{margin-top:8px}
.manual-in{flex:1;min-width:140px;font-family:var(--mono);font-size:16px;padding:11px 12px;border:1px solid var(--line);border-radius:12px;color:var(--ink);background:#fff}
.manual-in:focus{outline:none;border-color:var(--green)}

/* ---- photo ---- */
.photoOut{margin-top:12px}
#photoImg{width:100%;max-height:320px;object-fit:contain;background:var(--navy);border-radius:12px;display:block}
.kv{font-size:13px;color:var(--ink2);margin-top:10px;display:grid;grid-template-columns:auto 1fr;
    gap:4px 14px;align-items:baseline}
.kv .k{color:var(--ink3);font-weight:600}
.kv .v{color:var(--ink);font-family:var(--mono);word-break:break-all}
.kv .v.pass{color:var(--green);font-weight:700}
.kv .v.fail{color:var(--red);font-weight:700}
.mono{font-family:var(--mono)}

/* ---- send (the payoff — red-accented focal card) ---- */
.send{border:1px solid var(--red);box-shadow:0 1px 2px rgba(11,20,55,.04), 0 10px 28px rgba(215,38,61,.10)}
.sendResult{margin-top:12px;border-radius:12px;padding:12px 14px;font-size:14px;font-weight:600;line-height:1.4}
.sendResult.ok{background:var(--green-bg);border:1px solid var(--green-line);color:var(--green)}
.sendResult.dup{background:var(--amber-bg);border:1px solid var(--amber-line);color:#5a4300}
.sendResult.err{background:#FDECEA;border:1px solid #F2B4AD;color:var(--red)}

/* ---- capture progress strip ---- */
.strip{display:flex;gap:8px;margin-bottom:16px}
.pill{flex:1;display:flex;align-items:center;justify-content:center;gap:7px;background:#fff;border:1px solid var(--line);
      border-radius:12px;padding:11px 6px;font-size:13px;font-weight:600;color:var(--ink3)}
.pill .pdot{width:9px;height:9px;border-radius:50%;background:#cfd6e2;flex:0 0 auto;transition:background .15s}
.pill.done{color:var(--green);border-color:var(--green-line);background:var(--green-bg)}
.pill.done .pdot{background:var(--green)}

/* ---- diagnostics collapsible ---- */
.diagbox{margin-top:4px}
.diagbox>summary{cursor:pointer;list-style:none;color:var(--ink2);font-size:13px;font-weight:600;
      padding:11px 14px;background:var(--line-2);border-radius:12px;user-select:none}
.diagbox>summary::-webkit-details-marker{display:none}
.diagbox>summary::before{content:"\25B8  ";color:var(--ink3)}
.diagbox[open]>summary::before{content:"\25BE  "}
.diagbox[open]>summary{margin-bottom:12px}

/* ---- signature ---- */
.sig{width:100%;height:180px;background:#fff;border:2px dashed #b9c2d6;border-radius:12px;
     touch-action:none;display:block}

/* ---- log ---- */
.summary{background:var(--line-2);border-radius:10px;padding:10px 12px;font-size:14px;font-weight:600;margin:10px 0}
.summary b{color:var(--navy-2)}
.summary .bad{color:var(--red)}
.logscroll{overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--line);border-radius:10px}
.logtbl{border-collapse:collapse;width:100%;font-size:13px;min-width:520px}
.logtbl th,.logtbl td{padding:8px 10px;text-align:left;border-bottom:1px solid var(--line);white-space:nowrap}
.logtbl th{background:var(--page);color:var(--ink3);font-weight:700;font-size:12px;text-transform:uppercase;letter-spacing:.4px}
.logtbl td.val{font-family:var(--mono);max-width:180px;overflow:hidden;text-overflow:ellipsis}
.vbtn{border:1px solid var(--line);background:#fff;border-radius:8px;padding:5px 9px;font-size:13px;
      cursor:pointer;font-weight:700;min-height:34px}
.vbtn.on-ok{background:var(--green-bg);border-color:var(--green-line);color:var(--green)}
.vbtn.on-bad{background:#FDECEA;border-color:#F2B4AD;color:var(--red)}

.diag .kv{grid-template-columns:auto 1fr}
.ftr{max-width:640px;margin:0 auto;padding:8px 16px 28px;color:var(--ink3);font-size:12px;text-align:center}

/* ---- capture settings (G5 one-touch toggle · G6 quality selector) ---- */
.opt{position:relative;display:flex;align-items:flex-start;gap:12px;margin:0 0 14px;cursor:pointer;
     background:var(--line-2);border:1px solid var(--line);border-radius:12px;padding:12px 14px}
.opt-cb{position:absolute;opacity:0;width:0;height:0}
.opt-sw{flex:0 0 auto;width:44px;height:26px;border-radius:13px;background:#cfd6e2;position:relative;
        transition:background .15s;margin-top:1px}
.opt-sw::after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;
        background:#fff;box-shadow:0 1px 2px rgba(11,20,55,.3);transition:transform .15s}
.opt-cb:checked + .opt-sw{background:var(--red)}
.opt-cb:checked + .opt-sw::after{transform:translateX(18px)}
.opt-cb:focus-visible + .opt-sw{box-shadow:0 0 0 3px var(--red-halo)}
.opt-txt{font-size:14px;color:var(--ink);line-height:1.3}
.opt-txt b{display:block;font-weight:700}
.opt-sub{display:block;font-size:12px;color:var(--ink2);margin-top:2px;font-weight:400}

.seg{display:flex;gap:4px;background:var(--line-2);border:1px solid var(--line);border-radius:12px;
     padding:4px;margin-bottom:4px}
.seg-btn{flex:1;appearance:none;border:1px solid transparent;background:transparent;color:var(--ink2);
     font-family:inherit;font-size:13px;font-weight:600;padding:10px 6px;border-radius:9px;cursor:pointer;
     min-height:44px}
.seg-btn.is-on{background:#fff;border-color:var(--line);color:var(--navy-2);
     box-shadow:0 1px 2px rgba(11,20,55,.08)}
.seg-btn:active{transform:translateY(1px)}

/* one-touch mode: the signature step isn't part of the fast scan-station path */
body.mode-onetouch #cardSig,
body.mode-onetouch #pillSig{display:none}

/* auto-accept is a sub-setting of one-touch — only shown in that mode, slightly inset */
#autoAcceptRow{margin-top:-6px;margin-left:16px}
body:not(.mode-onetouch) #autoAcceptRow{display:none}

/* ---- read-confirmation feedback (green frame flash · value chip · locked scan line) ---- */
.scanflash{position:absolute;inset:0;border-radius:12px;pointer-events:none;opacity:0;z-index:2;
  box-shadow:inset 0 0 0 4px var(--green), inset 0 0 44px rgba(30,127,92,.55)}
.scanhit{position:absolute;top:10px;left:10px;right:10px;z-index:3;pointer-events:none;
  display:flex;align-items:center;gap:11px;background:var(--green);color:#fff;
  padding:11px 14px;border-radius:12px;
  box-shadow:0 4px 16px rgba(11,20,55,.42), inset 0 0 0 2px rgba(255,255,255,.28)}
.sh-badge{flex:0 0 auto;width:30px;height:30px;border-radius:50%;background:#fff;color:var(--green);
  display:flex;align-items:center;justify-content:center;font-size:19px;font-weight:800;line-height:1}
.sh-txt{display:flex;flex-direction:column;min-width:0;text-align:left}
.sh-kicker{font-size:11px;font-weight:700;letter-spacing:1.2px;text-transform:uppercase;opacity:.9}
.sh-val{font-family:var(--mono);font-size:18px;font-weight:700;word-break:break-all;line-height:1.2}
.scanline.hit{background:var(--green);box-shadow:0 0 14px 3px rgba(30,127,92,.85);animation:none;top:50%}

/* SmartCapture "hold steady…" / soft-photo hint — amber pill at the foot of the video */
.settleHint{position:absolute;left:50%;bottom:12px;transform:translateX(-50%);z-index:3;pointer-events:none;
  background:var(--amber);color:#fff;font-size:13px;font-weight:700;letter-spacing:.2px;
  padding:8px 15px;border-radius:20px;white-space:nowrap;box-shadow:0 3px 12px rgba(11,20,55,.4)}

/* Freeze-review: the captured photo held in the camera box with a verdict + Use photo / Retake (no timer) */
.review{position:absolute;inset:0;z-index:5;background:#000;border-radius:12px;overflow:hidden;display:block}
.review-img{width:100%;height:100%;object-fit:contain;background:#000;display:block}
.review-verdict{position:absolute;top:10px;left:10px;right:10px;z-index:1;text-align:center;
  font-size:14px;font-weight:700;padding:8px 12px;border-radius:10px;box-shadow:0 2px 10px rgba(11,20,55,.35)}
.review-verdict.ok{background:rgba(30,127,92,.95);color:#fff}
.review-verdict.soft{background:rgba(138,100,0,.96);color:#fff}
.review-bar{position:absolute;left:0;right:0;bottom:0;display:flex;gap:8px;padding:10px;
  background:linear-gradient(to top,rgba(11,20,55,.94),rgba(11,20,55,0))}
.review-btn{flex:1;appearance:none;border:none;font-family:inherit;font-size:15px;font-weight:700;
  padding:12px;border-radius:11px;cursor:pointer;pointer-events:auto;min-height:48px}
.review-btn:active{transform:translateY(1px)}
.review-use{background:var(--green);color:#fff}
.review-retake{background:#fff;color:var(--navy)}

/* ---- use-case menu (landing) ---- */
.menu{max-width:640px;margin:0 auto;padding:20px 16px 40px}
.menu-intro{margin:6px 2px 18px}
.menu-h{font-size:22px;font-weight:700;color:var(--ink);margin:0 0 6px;line-height:1.2;text-wrap:balance}
.menu-sub{font-size:14px;color:var(--ink2);margin:0;line-height:1.45;text-wrap:pretty}
.menu-grid{display:grid;grid-template-columns:1fr;gap:12px}
@media(min-width:560px){.menu-grid{grid-template-columns:1fr 1fr}}
.uc{display:flex;flex-direction:column;gap:8px;background:var(--card);border:1px solid var(--line);
    border-radius:var(--radius);padding:18px;box-shadow:var(--shadow);text-decoration:none;color:inherit;
    transition:transform .1s,box-shadow .1s,border-color .1s}
.uc:active{transform:translateY(1px)}
.uc:hover{border-color:var(--navy-2);box-shadow:0 2px 4px rgba(11,20,55,.06),0 12px 30px rgba(11,20,55,.11)}
.uc-ic{width:46px;height:46px;border-radius:13px;background:var(--chip-grad);color:#fff;display:flex;
    align-items:center;justify-content:center;flex:0 0 auto;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.22),inset 0 -2px 4px rgba(7,12,38,.40),0 3px 9px rgba(102,126,234,.32)}
.uc-ic svg{width:25px;height:25px}
.uc-name{font-size:17px;font-weight:700;color:var(--ink)}
.uc-tag{font-size:13px;color:var(--ink2);line-height:1.45;flex:1}
.uc-steps{display:flex;flex-direction:column;gap:8px;margin-top:5px}
.uc-step{display:grid;grid-template-columns:96px 1fr;gap:11px;align-items:center}
.uc-step .uc-chip{justify-self:start}
.uc-step-txt{font-size:12.5px;color:var(--ink2);line-height:1.35;text-wrap:pretty}
.uc-chip{font-size:11.5px;font-weight:700;letter-spacing:.3px;border-radius:20px;padding:3px 10px 3px 8px;
    display:inline-flex;align-items:center;gap:5px;border:1px solid transparent;white-space:nowrap}
.uc-chip::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;flex:0 0 auto}
.uc-chip.s-scan{background:#EEF0FE;color:#4453b8;border-color:#DADEFB}       /* Scan — blue-purple */
.uc-chip.s-photo{background:var(--green-bg);color:var(--green);border-color:var(--green-line)}  /* Photo — teal-green */
.uc-chip.s-sig{background:var(--amber-bg);color:var(--amber);border-color:var(--amber-line)}    /* Signature — amber */
.uc-chip.s-loc{background:#FDECEA;color:var(--red-dark);border-color:#F5C4BD} /* Location — red */
.uc-full{border-style:dashed}
.uc-full .uc-ic{background:linear-gradient(140deg,#8792a8,#46506a)}

/* "what it reads" capability note under the menu */
.menu-codes{margin:16px 2px 0;padding:14px 16px;background:var(--card);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow)}
.mc-h{font-size:13px;font-weight:700;color:var(--ink);margin-bottom:7px}
.mc-list{font-size:12px;color:var(--ink2);line-height:1.9;font-family:var(--mono)}

/* ---- profile banner + back link (in the capture view) ---- */
.profile-back{display:block;max-width:640px;margin:14px auto 0;padding:0 4px;color:var(--ink2);
    font-size:13px;font-weight:600;text-decoration:none}
.profile-back:active{color:var(--navy-2)}
.profile-banner{max-width:640px;margin:10px auto 0;padding:13px 16px;background:var(--chip-grad);color:#fff;
    border-radius:14px;box-shadow:var(--shadow)}
.pb-name{display:block;font-size:16px;font-weight:700;letter-spacing:.2px}
.pb-tag{display:block;font-size:13px;color:#dfe4f2;margin-top:2px;line-height:1.4}

/* preset profiles are turnkey — hide the raw toggles, quality knob, and diagnostics */
body.mode-preset .opt,
body.mode-preset #qualitySeg,
body.mode-preset .diagbox{display:none}

/* ============================================================================
   SHOW MODE — [Full Access] 2026.  Approved 2026-08-02 (mockups/show-ui/).
   Additive only: every rule is scoped to .showland, .destbar or body.mode-show,
   so the five workflow profiles and the product demo site are untouched.
   Reuses the approved tokens; invents no colour.
   ========================================================================= */
/* The landing MUST fit without scrolling. At a booth a scroll hides the second job, and a
   job you cannot see is a job that does not get used. Everything below trims CHROME and
   SPACING to make room — the type sizes are deliberately left alone. */
.showland{max-width:640px;margin:0 auto;padding:16px}
body.show-landing .hdr-sub{display:none}      /* brand stays, tagline goes */
body.show-landing .ftr{display:none}
.sl-h{font-size:26px;font-weight:700;letter-spacing:-.02em;margin:2px 0 4px}
.sl-sub{font-size:18px;color:var(--ink2);margin:0 0 12px;line-height:1.4}
.job{display:block;text-decoration:none;color:inherit;background:var(--card);
     border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);
     padding:16px 18px;margin-bottom:12px;position:relative;overflow:hidden}
.job:last-child{margin-bottom:0}
.job:after{content:'';position:absolute;left:0;top:0;bottom:0;width:6px}
.job-a:after{background:var(--navy-2)}
.job-b:after{background:var(--red)}
.job-ic{width:38px;height:38px;border-radius:11px;display:flex;align-items:center;
        justify-content:center;margin-bottom:8px}
.job-a .job-ic{background:#E8ECFA;color:var(--navy-2)}
.job-b .job-ic{background:#FDEAED;color:var(--red)}
.job-ic svg{width:22px;height:22px}
.job-name{display:block;font-size:25px;font-weight:700;letter-spacing:-.02em;line-height:1.15;margin-bottom:8px}
.job-tag{display:block;font-size:17px;color:var(--ink2);line-height:1.4}
.job-dest{display:block;margin-top:10px;padding-top:9px;border-top:1px solid var(--line-2);
          font-family:var(--mono);font-size:15px;color:var(--ink3)}
.job-dest b{color:var(--ink);font-weight:700}
.job:active{transform:translateY(1px)}

.destbar{background:var(--navy-2);color:#fff;padding:14px 20px;display:flex;align-items:center;gap:12px;
         padding-top:calc(14px + env(safe-area-inset-top))}
.destbar.is-lead{background:var(--red-dark)}
.destbar-back{color:#fff;text-decoration:none;font-size:28px;line-height:1;opacity:.8;
              padding:6px 10px 6px 0;min-height:44px;display:flex;align-items:center}
.destbar-t{flex:1;min-width:0}
.destbar-l{font-size:13px;letter-spacing:.10em;text-transform:uppercase;color:#B9C4E6;font-weight:700}
.destbar.is-lead .destbar-l{color:#F6C9D0}
.destbar-v{font-family:var(--mono);font-size:18px;font-weight:700;margin-top:3px;
           white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Show mode: bigger type, more air, one obvious action, everything else out of reach.
   The mis-tapping fix is the SPACING as much as the sizes. */
body.mode-show .hdr,
body.mode-show #profileBanner,
body.mode-show #profileBack,
body.mode-show .scanwrap + .btn-ghost,
body.mode-show #btnNew{display:none}
body.mode-show .wrap{padding:20px;max-width:640px}
body.mode-show .card{padding:20px;margin-bottom:22px}
body.mode-show .card-h h2{font-size:21px;letter-spacing:-.01em}
body.mode-show .card-h .num{width:34px;height:34px;font-size:17px}
body.mode-show .btn{font-size:19px;min-height:60px;padding:18px 18px;border-radius:14px}
body.mode-show .btn-pri{font-size:21px;min-height:68px;font-weight:700}
/* the primary action never sits next to anything else */
body.mode-show #btnSend{margin-top:34px}
body.mode-show #btnGeo{display:none}          /* geo is automatic in the show profiles */
body.mode-show .sendResult{font-size:18px;padding:18px;line-height:1.45}
body.mode-show #sendSummary{font-size:16px}
body.mode-show .kv .k{font-size:16px}
body.mode-show .kv .v{font-size:18px}
body.mode-show .strip{margin-bottom:18px}
body.mode-show .pill{font-size:15px;padding:10px 14px}
body.mode-show #manualWrap{margin-top:26px}
body.mode-show #manualWrap input{font-size:17px;min-height:56px}
/* the person's name is the headline on a successful capture */
.who{display:block;font-family:var(--mono);font-size:23px;font-weight:700;color:var(--ink);
     margin:6px 0 2px;letter-spacing:-.01em}
.who-org{display:block;font-size:16px;font-weight:400;color:var(--ink2);margin-bottom:2px}
.res-sub{display:block;font-size:15px;font-weight:400;margin-top:6px;opacity:.85}
/* Show mode: never put a destructive action beside the primary one. "Clear" wipes the
   signature and sat directly next to "Save signature", which is precisely the adjacency
   that caused mis-taps on device. Stack them, primary first, with real separation. */
body.mode-show #cardSig .row{display:flex;flex-direction:column-reverse;gap:0}
body.mode-show #sigSave{width:100%}
body.mode-show #sigClear{width:100%;margin-top:20px;background:transparent;border-color:transparent;
                         color:var(--ink3);font-size:16px;min-height:48px;text-decoration:underline}
/* Show mode: the in-app-browser fallback is a real escape hatch if the camera fails, so it
   stays reachable — but it must not compete with the primary action at a booth. Demoted to
   a quiet link, well below, rather than removed. */
body.mode-show .fallback{margin-top:26px;text-align:center}
body.mode-show .fallback .btn-ghost{background:transparent;border-color:transparent;
  color:var(--ink3);font-size:15px;min-height:44px;text-decoration:underline;width:auto;
  display:inline-flex;padding:10px 12px}
body.mode-show .fallback p,body.mode-show .fallback .hint{font-size:13px;color:var(--ink3)}
/* Small phones (iPhone SE, 13 mini) still cut the second job off by ~27px. Here, and only
   here, type does come down — because a slightly smaller card you can SEE beats a bigger
   one below the fold. Everything above 620px keeps the full sizes. */
@media (max-height:620px){
  .showland{padding:12px}
  .sl-h{font-size:23px;margin:0 0 2px}
  .sl-sub{font-size:15px;margin:0 0 10px}
  .job{padding:14px 16px;margin-bottom:10px}
  .job-ic{width:36px;height:36px;border-radius:10px;margin-bottom:8px}
  .job-ic svg{width:21px;height:21px}
  .job-name{font-size:22px}
  .job-tag{font-size:15px}
  .job-dest{margin-top:8px;padding-top:8px}
}

/* Nothing on a show screen reads below 15px. Hints and helper copy were 13px, which is our
   floor for a desk and too small for a hall. */
body.mode-show .hint,body.mode-show .manual-lbl{font-size:15px;line-height:1.45}
body.mode-show .fallback p,body.mode-show .fallback .hint{font-size:14px}
body.mode-show .scanidle{font-size:16px}
body.mode-show .card-h .num{font-size:18px}
/* --- the destination bar is now the whole target -------------------------------------
   A 28px chevron is a poor tap target for the one control that changes which DATABASE you
   are writing to. The entire bar is now the link, with a visible "Change" affordance so it
   does not look decorative. */
a.destbar{text-decoration:none;color:#fff;cursor:pointer}
a.destbar:active{filter:brightness(1.18)}
.destbar-back{font-size:32px;padding-right:4px}
.destbar-change{font-size:13px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;
                color:#B9C4E6;border:1px solid rgba(255,255,255,.28);border-radius:999px;
                padding:8px 14px;white-space:nowrap;flex:0 0 auto}
.destbar.is-lead .destbar-change{color:#F6C9D0}

/* --- orphans -------------------------------------------------------------------------
   "…where the live camera is / blocked." and "…can't / double-write." both stranded a
   single word on the last line, against our own 3-word rule. text-wrap:pretty is the
   modern fix; the shortened copy above is the belt to its braces on older browsers. */
.hint,.sl-sub,.job-tag,.opt-sub,.menu-sub,.uc-tag,.manual-lbl,.result-sub,.res-sub,
.sendResult,.warn{text-wrap:pretty}
.sl-h,.job-name,.menu-h,.card-h h2{text-wrap:balance}

/* show mode swaps the long product explanation for the one line worth reading at a booth */
.prose-short{display:none}
body.mode-show .prose-long{display:none}
body.mode-show .prose-short{display:block}
/* Short blocks want balance, not pretty: pretty only protects the LAST line, and on a
   two-line sentence that still leaves a stub. balance splits the lines evenly instead.
   (I introduced this orphan myself when I shortened the booth copy.) */
.prose-short,.job-tag,.sl-sub{text-wrap:balance}
/* Last sweep: nothing on a show screen below 14px, and body copy at 15+. Our standard says
   err larger, and 13px labels read fine at a desk but not in a hall. */
body.mode-show .destbar-l,body.mode-show .destbar-change{font-size:14px}
body.mode-show .fallback .hint,body.mode-show .fallback p{font-size:15px}
body.mode-show .ftr,body.show-landing .ftr{font-size:13px}
/* --- ZERO-TAP SHOW SCREEN --------------------------------------------------------------
   In auto mode the photo is grabbed off the live camera and submitted without a tap, so a
   "Capture a photo" card with a button is a control that does nothing except invite a
   mis-tap. Hidden. The camera gets the room instead, and the result lands in the Send card.
   The manual-code fallback stays: it is the only escape if a badge will not read. */
body.mode-show.mode-onetouch #cardPhoto,
body.mode-show.mode-onetouch #pillSig{display:none}
body.mode-show.mode-onetouch .scanwrap{min-height:340px}
body.mode-show.mode-onetouch #sendSummary:empty{display:none}
/* the Send card is the RESULT card in auto mode — lead with the outcome, not the form */
body.mode-show.mode-onetouch .card.send .card-h{display:none}
body.mode-show.mode-onetouch #btnSend{margin-top:20px;font-size:17px;min-height:52px;
  background:#fff;color:var(--ink2);border:1px solid var(--line)}
/* The two fallbacks are ESCAPES, not steps. On the show screen they pushed the result card
   below the fold — and the result is the entire point of the demo. One link reveals them. */
body.mode-show .fallback,body.mode-show .manual{display:none}
body.mode-show.show-help .fallback,body.mode-show.show-help .manual{display:block}
body.mode-show #scanHelp{display:block}
.scan-help{display:none;appearance:none;background:transparent;border:0;width:100%;
  font-family:inherit;font-size:15px;color:var(--ink3);text-decoration:underline;
  padding:14px 10px;min-height:48px;cursor:pointer;margin-top:6px}
body.mode-show.mode-onetouch .scanwrap{min-height:300px}
.res-also{display:block;font-size:15px;font-weight:600;margin-top:10px;padding-top:10px;
  border-top:1px solid rgba(30,127,92,.25);line-height:1.5}
