/* App screens (login, jobs, job). Builds on styles.css; only additions here so the landing pages stay unchanged. */
.app main { padding: 32px 20px 56px; }
.app h1 { font-size: clamp(34px, 6vw, 52px); margin: 0 0 12px; }
.app h2 { font-size: 28px; margin: 32px 0 12px; }
.app label { display: block; font-weight: 600; font-size: 15px; margin: 14px 0 6px; }
.app .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.app .note { background: #f1fbcf; border: 1px solid #c9e86a; border-radius: var(--radius); padding: 12px 14px; font-size: 16px; }
.app .err { color: var(--brand-dark); font-weight: 600; min-height: 1.6em; margin: 10px 0 0; }
.app .empty { border: 2px dashed var(--field); background: #fff; padding: 28px 20px; text-align: center; color: var(--muted); border-radius: var(--radius); }
.app .list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.app .item { display: block; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); transition: box-shadow 0.15s ease, border-color 0.15s ease; padding: 14px 16px; color: var(--ink); text-decoration: none; }
.app a.item:hover { border-color: var(--hi); box-shadow: var(--shadow-lg); }
.app .item b { font-family: var(--display); font-weight: 800; font-size: 24px; text-transform: uppercase; display: block; line-height: 1.1; }
.app .meta { font-family: var(--mono); font-size: 13.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; }
.app .status { font-family: var(--mono); font-size: 12.5px; font-weight: 500; text-transform: uppercase; border: 2px solid currentColor; border-radius: 999px; padding: 0 10px; }
.app .status.signed { color: var(--ok); }
.app .status.sent { color: #8a5a00; }
.app .status.declined, .app .status.void { color: var(--brand); }
.app .status.draft { color: var(--muted); }
.app .totals { font-family: var(--mono); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px 16px; }
.app .totals div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px solid var(--soft); }
.app .totals div:last-child { border-bottom: 0; font-weight: 500; }
.app .bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.app button.ghost { background: transparent; color: #c9d2e0; border-color: #5a6785; font-size: 15px; padding: 4px 14px; box-shadow: none; }
.app button.ghost:hover { color: #fff; border-color: #fff; }
.app details.card { padding: 16px 20px; }
.app details summary { cursor: pointer; font-weight: 600; }
.app [hidden] { display: none !important; }
@media (max-width: 640px) { .app .grid2 { grid-template-columns: 1fr; } }
/* Tick 2: change order form, sent page, signing page */
.app h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 20px; margin: 18px 0 4px; }
.app .lines { display: grid; gap: 8px; }
.app .line { display: grid; grid-template-columns: 1fr 140px 44px; gap: 8px; align-items: center; }
.app button.secondary { background: #fff; color: var(--ink); border-color: var(--ink); box-shadow: none; }
.app button.secondary:hover { background: var(--soft); color: var(--ink); border-color: var(--ink); box-shadow: none; }
.app button.icon { padding: 8px 0; width: 44px; font-size: 20px; background: #fff; color: var(--ink); border-color: var(--field); box-shadow: none; }
.app button.link { background: none; border: 0; box-shadow: none; padding: 0; color: var(--brand-dark); font: inherit; text-transform: none; letter-spacing: 0; text-decoration: underline; }
.app button.link:hover { transform: none; background: none; box-shadow: none; }
.app .actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.app .actions a.btn { display: inline-block; font-family: var(--display); font-weight: 800; font-size: 21px; text-transform: uppercase; letter-spacing: 0.04em; padding: 11px 26px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink); text-decoration: none; }
.app .linkbox { font-family: var(--mono); font-size: 14px; word-break: break-all; background: #fff; border: 2px dashed var(--field); border-radius: 14px; padding: 10px 14px; }
.app .choice { display: flex; align-items: center; gap: 10px; font-weight: 600; margin: 12px 0; }
.app .choice input { width: 20px; height: 20px; margin: 0; flex: none; }
.app .tabs { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 8px; }
.app canvas#sig-pad { display: block; width: 100%; height: 180px; background: #fff; border: 2px solid var(--field); border-radius: var(--radius); touch-action: none; }
.app .typed-sig { font-family: "Brush Script MT", "Segoe Script", cursive; font-size: 40px; background: #fff; border: 2px solid var(--field); border-radius: var(--radius); padding: 18px 16px; margin: 0; min-height: 80px; }
.app .doc .desc, .app .doc p { color: var(--ink); }
.app .doc p.fine { color: var(--muted); margin-top: 10px; }
.app .totals.items { margin-bottom: 12px; }
.app .legal, .app .brand { margin-top: 18px; }
.app.sign .card { margin-top: 18px; }
@media (max-width: 640px) { .app .line { grid-template-columns: 1fr 110px 44px; } }
.app label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; text-transform: none; letter-spacing: 0; }
.app label.check input[type="checkbox"] { accent-color: var(--hi); width: 20px; height: 20px; margin: 2px 0 0; flex: none; }
/* Photos (R2): picker as a styled button over a visually hidden file input; thumbnails on the form and the signing page */
.app .file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.app label.filebtn { display: inline-block; margin: 6px 0 0; font-family: var(--display); font-weight: 800; font-size: 19px; text-transform: uppercase; letter-spacing: 0.04em; padding: 8px 20px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink); cursor: pointer; }
.app label.filebtn:hover { background: var(--soft); }
.app .file-input:focus-visible + label.filebtn { outline: 3px solid var(--brand); outline-offset: 2px; }
.app .file-input:disabled + label.filebtn { opacity: 0.5; cursor: not-allowed; }
.app .photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin: 8px 0; }
.app .photos:empty { display: none; }
.app .photo { position: relative; }
.app .photos img { display: block; width: 100%; height: 120px; object-fit: cover; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.app .photo button.icon { position: absolute; top: 6px; right: 6px; width: 36px; height: 36px; padding: 0; font-size: 18px; }
