:root{color-scheme:light}
body{font:16px/1.55 system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;margin:0;background:#f4f5f7;color:#1c1c1e}
.wrap{max-width:34rem;margin:0 auto;padding:1rem}
.card{background:#fff;border:1px solid #e4e4e7;border-radius:12px;padding:1.25rem;margin:1rem 0}
.hdr{display:flex;align-items:center;gap:.75rem}
.hdr img{max-height:44px;max-width:130px}
.hdr h1{font-size:1.05rem;margin:0}
.ph{color:#555;font-size:.9rem}
.lbl{color:#555;font-size:.85rem}
.big{font-size:1.9rem;font-weight:650;letter-spacing:-.01em}
.sub{color:#555;font-size:.85rem}
.warn{background:#fdecec;border:1px solid #f5b5b5;border-radius:8px;padding:.75rem}
.wait{background:#eef4ff;border:1px solid #c3d6f7;border-radius:8px;padding:.75rem}
.retain{background:#fff8d6;border:1px solid #e8d270}
label{display:block;margin:.7rem 0 .2rem;font-size:.88rem;color:#333}
input{width:100%;box-sizing:border-box;padding:.6rem;border:1px solid #cfcfd4;border-radius:8px;font-size:1rem;background:#fff}
.row{display:flex;gap:.6rem}.row>div{flex:1}
.clock{font-size:.85rem;color:#666;margin-top:.5rem}
button{width:100%;margin-top:1rem;padding:.8rem;border:0;border-radius:9px;background:#1c6cf3;color:#fff;font-size:1rem;font-weight:600}
button[disabled]{background:#b9bfc9}
h2{font-size:.95rem;margin:1.2rem 0 .2rem;color:#333}
.note{color:#777;font-size:.82rem;margin:.5rem 0 0}
.dead h1{font-size:1.15rem;margin:0 0 .4rem}
.dead p{margin:0;color:#555}

/* The invoice lines. Kept readable on a phone held in one hand at the roadside:
   the description wraps, the amount never does and stays right-aligned, so the
   column the customer is actually checking is a straight edge.
   Literal hex like the rest of this file - it defines no custom properties, and
   a var() here would have silently rendered every rule invisible. */
.lines{margin:.6rem 0 .9rem;border-top:1px solid #e4e4e7}
.line{display:flex;justify-content:space-between;gap:.75rem;padding:.45rem 0;border-bottom:1px solid #e4e4e7;font-size:.94rem}
.ldesc{flex:1 1 auto}
.lamt{flex:0 0 auto;white-space:nowrap;font-variant-numeric:tabular-nums}
.line.subtotal{color:#555}

/* The terms, above the button that accepts them. Scrollable rather than truncated:
   a person must be able to read all of it without leaving the page, and a fixed
   height keeps the signature button reachable on a phone held one-handed. */
.terms{max-height:11rem;overflow-y:auto;background:#fafafa;border:1px solid #e4e4e7;
       border-radius:8px;padding:.65rem;font-size:.88rem;line-height:1.5;white-space:pre-wrap}

/* The signature pad. Full width, fixed aspect, and touch-action:none so a finger
   drag draws a line instead of scrolling the page out from under it — without
   that, signing on a phone is impossible rather than merely awkward. */
#sig{width:100%;height:auto;aspect-ratio:3/1;border:1px dashed #9aa0a6;border-radius:8px;
     background:#fff;touch-action:none;display:block}
button.link{width:auto;margin:.4rem 0 0;padding:0;background:none;color:#1c6cf3;
            font-size:.85rem;font-weight:400;text-decoration:underline}
.ok{background:#e8f6ec;border:1px solid #9bd3ab;border-radius:8px;padding:.9rem;margin-top:1rem}

/* Thumbnails so a person can SEE what they just photographed. A file input that
   says "image.jpg" and nothing else is how a customer sends a picture of their
   thumb and never knows. */
.thumbwrap{margin:.5rem 0;display:flex;align-items:flex-start;gap:.75rem}
.thumbwrap img{max-width:45%;max-height:9rem;border:1px solid #cfcfd4;border-radius:8px}
