:root { --ink: #111; --soft: #555; --line: #ddd; --bg: #fff; --card: #f4f4f4; --go: #0a5bd3; --go-ink: #fff; --ok: #1b7a3a; --bad: #b3261e; color-scheme: light dark; }
@media (prefers-color-scheme: dark) {
  :root { --ink: #f2f2f2; --soft: #bbb; --line: #333; --bg: #121212; --card: #1e1e1e; --go: #4d8dff; --go-ink: #000; --ok: #5cc87f; --bad: #ff8a80; }
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); }
body { font: 18px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; max-width: 560px; margin: 0 auto; padding: 16px; min-height: 100vh; display: flex; flex-direction: column; }
[hidden] { display: none !important; }
header { margin-bottom: 16px; }
h1 { font-size: 26px; margin: 0 0 4px; overflow-wrap: anywhere; }
h2 { font-size: 22px; margin: 8px 0; }
.job { margin: 0; color: var(--soft); overflow-wrap: anywhere; }
main, #mine-view { flex: 1; }
.folder { margin: 0 0 16px; }
.actions { display: flex; flex-direction: column; gap: 12px; }
button { font: inherit; border: 0; border-radius: 12px; cursor: pointer; }
.big { min-height: 64px; padding: 14px 16px; background: var(--go); color: var(--go-ink); font-size: 22px; font-weight: 600; width: 100%; }
.plain { min-height: 56px; padding: 12px 16px; background: var(--card); color: var(--ink); width: 100%; }
.link { background: none; color: var(--go); padding: 4px 8px; text-decoration: underline; }
.ask { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.ask label { font-weight: 600; }
.ask input { font: inherit; min-height: 56px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); }
.ask button { min-height: 56px; background: var(--go); color: var(--go-ink); font-weight: 600; }
.error { color: var(--bad); margin: 0; min-height: 1em; }
.banner { margin: 16px 0 8px; padding: 12px; border-radius: 12px; background: var(--card); font-weight: 600; position: sticky; top: 0; }
.banner.ok { color: var(--ok); }
.banner.bad { color: var(--bad); }
/* Under "All sent" (4 Oct): one card, the trade's own jobs in the app. */
.own-jobs { margin: 8px 0 16px; padding: 16px; border-radius: 12px; background: var(--card); display: flex; flex-direction: column; gap: 12px; }
.own-jobs .own-title { margin: 0; font-size: 20px; font-weight: 600; }
.own-jobs a.big { display: block; text-align: center; text-decoration: none; border-radius: 12px; line-height: 36px; }
.own-jobs .note { margin: 0; }
.closed { margin: 16px 0; padding: 16px; border-radius: 12px; background: var(--card); font-size: 20px; }
#items { list-style: none; margin: 0; padding: 0; }
#items li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
#items .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#items .status { color: var(--soft); text-align: right; }
#items progress { grid-column: 1 / -1; width: 100%; height: 10px; }
#items li.done .status { color: var(--ok); }
#items li.bad .status { color: var(--bad); text-align: left; grid-column: 1 / -1; }
/* "Save to phone" (8 Oct): a photo or video taken through the page is often kept nowhere else on the phone. */
#items .save { grid-column: 1 / -1; justify-self: start; min-height: 52px; padding: 10px 18px; background: var(--card); color: var(--ink); font-weight: 600; border: 1px solid var(--soft); border-radius: 10px; }
#items .save.done { color: var(--ok); }
/* "Take another" (8 Oct): the same kind and folder again, straight to the camera. */
.again { margin: 8px 0 12px; }
.again small { display: block; font-size: 16px; font-weight: 400; }
.note { color: var(--soft); font-size: 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
.grid figure { margin: 0; background: var(--card); border-radius: 8px; overflow: hidden; }
.grid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.grid figcaption { font-size: 14px; padding: 4px 6px; color: var(--soft); }
.sheet { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.45); display: flex; align-items: flex-end; justify-content: center; }
.sheet-box { background: var(--bg); width: 100%; max-width: 560px; padding: 16px 16px 24px; border-radius: 16px 16px 0 0; display: flex; flex-direction: column; gap: 12px; }
.sheet-box .note { margin: 0; text-align: center; }
footer { margin-top: 32px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--soft); font-size: 15px; text-align: center; }
footer a { color: var(--go); }
.fine { margin: 10px 0 0; font-size: 13px; }
/* The trade page's accept line (Q10): as large as the page's words, never fine print. */
.accept { margin: 0 0 14px; font-size: 16px; line-height: 1.45; }
.accept a { color: var(--go); }
/* "Shared with me" (/d/me, part 3) and the upload page's link to it. */
.me-line { margin: 24px 0 0; text-align: center; }
.me-line a { color: var(--go); font-weight: 600; }
.lead { font-size: 20px; margin: 0 0 4px; }
.big.alt { background: var(--card); color: var(--ink); }
.big.bad { background: var(--bad); color: var(--go-ink); }
.jobs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.job-row { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; min-height: 64px; padding: 12px 16px; background: var(--card); color: var(--ink); text-align: left; }
.job-row strong { overflow-wrap: anywhere; }
.job-row span { overflow-wrap: anywhere; }
.grid figure.tap { cursor: pointer; }
.large { display: block; width: 100%; height: auto; margin: 12px 0; border-radius: 8px; background: var(--card); }
.account { margin-top: 32px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.account p { margin: 0; color: var(--soft); overflow-wrap: anywhere; }
/* A job with "Show the whole job" on: its status and type, the tabs, other trades' photos by trade. The trade's
   folder (categories, part C) is a tab of its own, named as the folder ("Plumber"). */
.facts { margin: 4px 0 0; color: var(--soft); overflow-wrap: anywhere; }
.tabs { display: flex; gap: 8px; margin: 12px 0; }
.tab { flex: 1; min-width: 0; min-height: 56px; padding: 12px 8px; background: var(--card); color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.tab[aria-selected="true"] { background: var(--go); color: var(--go-ink); }
.trade-name { font-size: 18px; margin: 16px 0 8px; overflow-wrap: anywhere; }
/* "My files" (/files): a pro's jobs on a computer, wider; rows with Download; small labels. */
body.wide { max-width: 960px; }
.wide .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
h3 { font-size: 19px; margin: 20px 0 8px; }
.more { margin-top: 12px; }
.files { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.files li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--card); border-radius: 12px; }
.files .what { flex: 1; overflow-wrap: anywhere; }
.files small, .grid small { display: block; color: var(--soft); font-size: 14px; overflow-wrap: anywhere; }
.get { min-height: 44px; padding: 8px 14px; background: var(--go); color: var(--go-ink); font-weight: 600; border-radius: 10px; }
.grid .get { width: 100%; border-radius: 0; }
.grid .none { display: block; padding: 6px; font-size: 14px; color: var(--soft); }
.grid .blank { width: 100%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; color: var(--soft); font-size: 14px; }
.badge { display: inline-block; padding: 0 6px; border-radius: 6px; background: var(--line); color: var(--ink); font-size: 13px; }
/* Deleting an account on the web (/delete, and /files#delete): a link that looks like a button, the
   owner's choice as big rows, plain lists. */
a.big { display: block; text-align: center; text-decoration: none; border-radius: 12px; }
.choices { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.choices legend { padding: 0; margin-bottom: 8px; }
.choices label { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; background: var(--card); border-radius: 12px; cursor: pointer; overflow-wrap: anywhere; }
.choices input { width: 22px; height: 22px; flex: none; }
.big.bad:disabled { opacity: 0.45; cursor: default; }
.list { margin: 0 0 8px; padding-left: 22px; }
.list li { margin: 6px 0; }
/* "Your tasks" (tasks for trades and crew, phase C): a card a task, its photo slots, Mark done; a done one closes up. */
.tasks { margin: 0 0 16px; }
.tasks h2 { margin: 0 0 8px; }
.task { padding: 14px; margin: 0 0 12px; border-radius: 12px; background: var(--card); display: flex; flex-direction: column; gap: 10px; }
.task p { margin: 0; }
.task-what { font-size: 20px; font-weight: 600; overflow-wrap: anywhere; }
.task-when { color: var(--soft); overflow-wrap: anywhere; }
.task-when .late { color: var(--bad); font-weight: 600; }
.task.done { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; }
.task.done .task-what { font-size: 18px; color: var(--soft); }
.task-done { color: var(--ok); font-weight: 600; white-space: nowrap; }
.slots { display: flex; flex-direction: column; gap: 8px; }
.slot { display: flex; align-items: center; gap: 12px; min-height: 56px; }
.slot .slot-take { flex: 1; text-align: left; border: 1px solid var(--soft); background: var(--bg); }
.slot-in { color: var(--ok); font-weight: 600; }
.slot img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.slot .link { margin-left: auto; min-height: 48px; }
.task .big:disabled { opacity: 0.45; cursor: default; }
