@font-face { font-family: "Plus Jakarta Sans"; src: url("jakarta.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
/* Plumbers' app. Placeholder colours until the brand exists: water blue + teal, soft surfaces.
   Phone first (plumbers use it on a job site, one hand): big touch targets, the main button within thumb reach. */
:root {
  /* --muted was #5f6d84 (4.8:1 on --bg): passes AA, but the app is read outdoors in sun, which field-service
     guidance names first; #536077 is 5.8:1 on --bg and 6.4:1 on white (20.11.2026). */
  --bg: #f2f5fa; --bg-2: #e3ebf8; --card: #ffffff; --ink: #0f1b2d; --muted: #536077; --line: #e2e8f1;
  --brand: #1f5fd6; --brand-2: #0ea5b7; --brand-soft: #e8f0ff; --brand-ink: #ffffff;
  --ok: #138a4b; --ok-soft: #e4f6ec; --warn: #b26200; --warn-soft: #fff3e0; --bad: #c62828; --bad-soft: #fdecec;
  --ok-ink: #0d6a39; --warn-ink: #8a4a00; --bad-ink: #a32020; /* text on the -soft tints: the plain colours failed contrast at chip size (audit 16.11.2026) */
  --shadow: 0 1px 2px rgba(15, 27, 45, .05), 0 8px 24px rgba(15, 27, 45, .07);
  --shadow-btn: 0 6px 16px rgba(31, 95, 214, .28);
  --radius: 18px; --radius-sm: 12px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1220; --bg-2: #14203a; --card: #151f33; --ink: #e9eef7; --muted: #9aa8bf; --line: #24304a;
    --brand: #5b8ff0; --brand-2: #2cc4d4; --brand-soft: #172540; --brand-ink: #ffffff; /* soft was #1b2a4a: brand text on it 4.49:1, now 4.8:1 (axe, 20.11.2026) */
    --ok: #4cc782; --ok-soft: #12301f; --warn: #f0a94a; --warn-soft: #33240f; --bad: #f27b7b; --bad-soft: #3a1717;
    --ok-ink: #7fdfa8; --warn-ink: #f7c27e; --bad-ink: #f7a6a6;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    --shadow-btn: 0 6px 16px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--ink);
  background: radial-gradient(1200px 420px at 50% -140px, var(--bg-2), transparent 70%), var(--bg);
  font: 1rem/1.5 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-underline-offset: 3px; }
h1 { font-size: 1.55rem; line-height: 1.25; letter-spacing: -.02em; margin: 0 0 8px; }
h2 { font-size: 1.12rem; letter-spacing: -.01em; margin: 0 0 10px; }
p { margin: 0 0 12px; }
small { color: var(--muted); }
[hidden] { display: none !important; }
.i { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.muted { color: var(--muted); }

/* ---- top bar -------------------------------------------------------------------------------- */
.top {
  position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top));
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.brand { display: flex; align-items: center; min-height: 44px; gap: 10px; color: var(--ink); font-weight: 800; text-decoration: none; letter-spacing: -.01em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; box-shadow: 0 2px 6px rgba(31, 95, 214, .3); }
.brand .placeholder { background: #ffe066; color: #3a2d00; padding: 1px 8px; border-radius: 6px; font-weight: 700; }
.top form { margin: 0; }
.pill-btn {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--card); color: var(--muted);
  border-radius: 99px; padding: 9px 14px; min-height: 40px; font: inherit; font-size: 0.875rem; font-weight: 600; cursor: pointer;
}
.pill-btn .i { width: 16px; height: 16px; }

main { max-width: 560px; margin: 0 auto; padding: 16px 16px calc(40px + env(safe-area-inset-bottom)); }

/* ---- cards ---------------------------------------------------------------------------------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow); }
.card > :last-child { margin-bottom: 0; }
.card-head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.card-head h1, .card-head h2 { margin: 0 0 2px; }
.card-head p { margin: 0; font-size: 0.9375rem; }
.badge-icon {
  display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 14px;
  background: var(--brand-soft); color: var(--brand);
}
.badge-icon.ok { background: var(--ok-soft); color: var(--ok); }
.badge-icon.warn { background: var(--warn-soft); color: var(--warn); }
.badge-icon.bad { background: var(--bad-soft); color: var(--bad); }
.badge-icon.big { width: 76px; height: 76px; border-radius: 24px; margin: 4px auto 16px; }
.badge-icon.big .i { width: 36px; height: 36px; }

/* ---- hero (join page) ----------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; color: #fff; border: 0; padding: 26px 22px 22px;
  background: linear-gradient(135deg, #1f5fd6 0%, #2a73e8 45%, #0ea5b7 100%);
  box-shadow: 0 14px 34px rgba(31, 95, 214, .3);
}
.hero::after { /* soft water ripples */
  content: ""; position: absolute; right: -70px; top: -70px; width: 230px; height: 230px; border-radius: 50%;
  border: 28px solid rgba(255, 255, 255, .09); box-shadow: 0 0 0 32px rgba(255, 255, 255, .05); pointer-events: none;
}
.hero h1 { font-size: 1.95rem; margin-bottom: 10px; position: relative; }
.hero p { color: rgba(255, 255, 255, .92); position: relative; }
.eyebrow { display: inline-block; font-size: 0.75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
           background: rgba(255, 255, 255, .18); padding: 5px 11px; border-radius: 99px; margin-bottom: 14px; position: relative; }
.perks { display: grid; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; position: relative; }
.perks li { display: flex; gap: 12px; align-items: center; background: rgba(255, 255, 255, .14); border-radius: 14px; padding: 11px 13px; font-weight: 600; font-size: 0.9375rem; }
.perks .i { width: 20px; height: 20px; }

.timeline { list-style: none; margin: 6px 0 0; padding: 0; counter-reset: t; }
.timeline li { position: relative; padding: 0 0 18px 48px; counter-increment: t; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: counter(t); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 0.875rem; background: var(--brand-soft); color: var(--brand);
}
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 2px; background: var(--line); }
.timeline b { display: block; }
.timeline span { color: var(--muted); font-size: 0.9375rem; }

.os-tip { display: flex; gap: 12px; align-items: flex-start; padding: 13px; border-radius: var(--radius-sm); background: var(--bg); margin-top: 10px; font-size: 0.9375rem; }
.os-tip .i { color: var(--brand); }

/* ---- progress (application steps) ----------------------------------------------------------- */
.progress { margin: 2px 2px 16px; }
.progress-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.875rem; margin-bottom: 8px; color: var(--muted); }
.progress-top b { font-size: 0.9375rem; color: var(--ink); }
.progress-bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.progress-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.progress-dots { display: flex; justify-content: space-between; margin: 8px 0 0; padding: 0; list-style: none; font-size: 0.75rem; color: var(--muted); }
.progress-dots li { display: flex; align-items: center; gap: 3px; }
.progress-dots li.done { color: var(--ok); }
.progress-dots li.current { color: var(--brand); font-weight: 800; }
.progress-dots .i { width: 13px; height: 13px; stroke-width: 3; }

/* ---- forms ---------------------------------------------------------------------------------- */
.field { margin-top: 18px; }
.field.first { margin-top: 0; }
label, .label { display: block; font-weight: 700; font-size: 0.9375rem; margin: 0 0 7px; }
.hint { font-size: 0.875rem; color: var(--muted); margin: -3px 0 8px; }
input[type=text], input[type=tel], input[type=email], input[type=number], input[type=time], input[type=date],
input:not([type]), select, textarea {
  width: 100%; padding: 13px 14px; font: inherit; font-size: max(16px, 1rem); color: var(--ink); /* under 16 px an iPhone zooms in on tap */
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
select { -webkit-appearance: none; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
         background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.has-error input, .has-error select { border-color: var(--bad); }
input::placeholder { color: color-mix(in srgb, var(--muted) 65%, transparent); }
input[type=checkbox], input[type=radio] { width: 22px; height: 22px; flex: none; margin: 0; accent-color: var(--brand); }

/* Option lists (Django 5 renders them as div > div > label > input): selectable tiles. */
.field > div > div { display: grid; gap: 8px; }
.field > div > div label {
  display: flex; gap: 12px; align-items: center; margin: 0; padding: 13px 14px; font-weight: 600; font-size: 0.9375rem;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--card); cursor: pointer; transition: border-color .15s, background .15s;
}
.field > div > div label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.field.tiles > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.field.tiles > div > div { display: block; }
.field.tiles > div > div label { height: 100%; font-size: 0.875rem; padding: 12px; }
label.check {
  display: flex; gap: 12px; align-items: flex-start; font-weight: 600; padding: 14px; margin: 0;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; background: var(--card);
}
label.check:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
/* What the option covers, under its name (the after-hours option states its hours, 26.11.2026). */
label.check small { display: block; margin-top: 3px; font-size: 0.875rem; font-weight: 400; color: var(--muted); }

.phone-input { display: flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--card); overflow: hidden; }
.phone-input:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.phone-input span { display: flex; align-items: center; gap: 6px; padding: 0 14px; font-weight: 800; color: var(--muted); background: var(--bg); border-right: 1.5px solid var(--line); }
.phone-input input { border: 0; border-radius: 0; box-shadow: none !important; font-size: 1.125rem; letter-spacing: .02em; }
.code-input { text-align: center; font-size: 1.875rem !important; font-weight: 800; letter-spacing: .45em; padding: 14px 0 14px .45em !important; }

/* File inputs: a big tap zone (the input covers it, invisible). */
.drop {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
  padding: 22px 14px; border: 2px dashed color-mix(in srgb, var(--brand) 35%, var(--line)); border-radius: 14px;
  background: color-mix(in srgb, var(--brand-soft) 55%, var(--card)); color: var(--muted); font-size: 0.875rem;
}
.drop .i { width: 32px; height: 32px; color: var(--brand); margin-bottom: 4px; }
.drop strong { color: var(--ink); font-size: 1rem; }
.drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.drop.picked { border-style: solid; border-color: var(--ok); background: var(--ok-soft); }
.drop.picked .i { color: var(--ok); }
.drop:focus-within { box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }

/* Job photos: camera + gallery buttons side by side; the file inputs inside them are invisible. */
.photo-add { margin: 10px 0 18px; }
.photo-pick { display: flex; gap: 10px; }
.photo-pick .btn { flex: 1; cursor: pointer; padding-left: 10px; padding-right: 10px; }
.photo-pick .btn[hidden] { display: none; }
.photo-pick .btn.busy { opacity: .55; pointer-events: none; }
.photo-pick input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.photo-pick .btn:focus-within { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 3px; }
.upload-status { margin: 8px 0 0; font-size: 0.875rem; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 800; color: inherit; text-decoration: underline; cursor: pointer; }

/* ---- buttons -------------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 20px;
  padding: 15px 20px; border: 0; border-radius: 14px; cursor: pointer; text-decoration: none; text-align: center;
  font: inherit; font-size: 1rem; font-weight: 800; letter-spacing: .01em;
  color: var(--brand-ink); background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 65%, var(--brand-2)));
  box-shadow: var(--shadow-btn); transition: transform .1s, box-shadow .15s;
}
.btn:active { transform: translateY(1px) scale(.99); box-shadow: none; }
.btn .i { width: 20px; height: 20px; }
.btn.wide { display: flex; width: 100%; }
.btn.light { background: #fff; color: #1f5fd6; box-shadow: 0 6px 16px rgba(0, 0, 0, .14); }
.btn.ghost { background: transparent; color: var(--brand); box-shadow: none; border: 1.5px solid var(--line); }
.cta-bar { position: sticky; bottom: 0; z-index: 5; margin: 0 -16px; padding: 6px 16px calc(14px + env(safe-area-inset-bottom));
           background: linear-gradient(color-mix(in srgb, var(--bg) 0%, transparent), var(--bg) 35%); }
.cta-bar .btn { margin-top: 8px; }
button.link { background: none; border: 0; color: inherit; text-decoration: underline; font: inherit; font-size: 0.875rem; cursor: pointer; padding: 0; }
button.link.danger { color: var(--bad); font-weight: 700; text-decoration: none; }
.back { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 0.9375rem; text-decoration: none; min-height: 44px; padding-right: 12px; margin: -10px 0 2px; }
.back .i { width: 18px; height: 18px; transform: rotate(180deg); }

/* ---- messages ------------------------------------------------------------------------------- */
.messages { display: grid; gap: 8px; margin-bottom: 14px; }
.msg { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); margin: 0 0 14px;
       background: var(--brand-soft); color: var(--ink); font-size: 0.9375rem; font-weight: 500; }
.msg .i { width: 20px; height: 20px; margin-top: 1px; color: var(--brand); }
.messages .msg { margin: 0; }
.msg.error { background: var(--bad-soft); } .msg.error .i { color: var(--bad); }
.msg.success { background: var(--ok-soft); } .msg.success .i { color: var(--ok); }
.msg.warning { background: var(--warn-soft); } .msg.warning .i { color: var(--warn); }
.error { color: var(--bad); margin: 6px 0 0; font-size: 0.875rem; font-weight: 600; }
ul.errorlist { list-style: none; padding: 0; margin: 0 0 8px; color: var(--bad); font-weight: 600; font-size: 0.875rem; }

/* ---- documents list ------------------------------------------------------------------------- */
.docs { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.docs a {
  display: flex; align-items: center; gap: 12px; padding: 12px; color: inherit; text-decoration: none;
  border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); transition: border-color .15s;
}
.docs a:hover { border-color: var(--brand); }
.docs .badge-icon { width: 40px; height: 40px; border-radius: 12px; }
.docs .badge-icon .i { width: 20px; height: 20px; }
.docs .name { flex: 1; font-weight: 700; font-size: 0.9375rem; line-height: 1.3; }
.docs .name small { display: block; font-weight: 500; margin-top: 1px; }
.docs .chev { color: var(--muted); width: 18px; height: 18px; }
.docs .note { margin: 6px 4px 0; color: var(--warn); font-size: 0.875rem; font-weight: 600; }
label.label { display: block; }
.chip { flex: none; font-size: 0.6875rem; font-weight: 800; padding: 4px 9px; border-radius: 99px; background: var(--bg); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.chip.ok { background: var(--ok-soft); color: var(--ok-ink); }
.chip.bad { background: var(--bad-soft); color: var(--bad-ink); }
.chip.todo { background: var(--warn-soft); color: var(--warn-ink); }
.tally { display: flex; justify-content: space-between; align-items: center; font-size: 0.875rem; color: var(--muted); font-weight: 600; margin: 0 2px 10px; }

.files { list-style: none; padding: 0; margin: 0 0 6px; display: grid; gap: 8px; }
.files li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--bg); font-size: 0.875rem; }
.files a { flex: 1; min-width: 0; color: var(--ink); font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files .i { width: 18px; height: 18px; color: var(--ok); }

/* ---- summary / status ----------------------------------------------------------------------- */
.summary { margin: 0 0 16px; }
.summary div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.summary div:last-child { border-bottom: 0; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 700; text-align: right; }
.plumber-no { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 0.875rem; padding: 6px 12px; border-radius: 99px; background: var(--bg); color: var(--muted); }
.plumber-no b { color: var(--ink); }
.plain { padding-left: 20px; margin: 0 0 12px; } .plain li { margin-bottom: 6px; }
.status-card { text-align: center; padding-top: 28px; }
.status-card h1 { margin-bottom: 8px; }
.status-card .fixes { text-align: left; }
.foot { display: flex; justify-content: center; align-items: center; gap: 6px; font-size: 0.8125rem; color: var(--muted); margin-top: 18px; text-align: center; }
.foot .i { width: 14px; height: 14px; }

/* ---- buttons, round 2 (owner 13.11.2026: "make buttons look better") ----------------------------------- */
.btn { position: relative; overflow: hidden; min-height: 54px; border-radius: 16px; font-size: 1.0312rem;
       background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 88%, #fff) 0%, var(--brand) 55%, color-mix(in srgb, var(--brand) 80%, var(--brand-2)) 100%);
       box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 1px 2px rgba(15, 27, 45, .18), var(--shadow-btn);
       transition: transform .12s ease, box-shadow .2s ease, filter .2s ease; -webkit-tap-highlight-color: transparent; }
.btn:hover { filter: brightness(1.06); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 2px 4px rgba(15, 27, 45, .18), 0 10px 22px rgba(31, 95, 214, .34); }
.btn:active { transform: translateY(1px) scale(.985); filter: brightness(.96); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .18); }
.btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 3px; }
.btn .i:last-child { transition: transform .2s ease; }
.btn:hover .i:last-child { transform: translateX(3px); }
.btn.light { background: #fff; color: #1f5fd6; box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 8px 20px rgba(9, 30, 80, .22); }
.btn.light:hover { filter: none; box-shadow: 0 10px 26px rgba(9, 30, 80, .3); }
.btn.ghost { background: var(--card); color: var(--brand); border: 1.5px solid var(--line); box-shadow: 0 1px 2px rgba(15, 27, 45, .05); }
/* After a tap: a spinner and "Saving...", and further taps do nothing. Not disabled: a disabled submit
   button drops its own name from the form, and the office buttons are told apart by name. */
.btn.busy { pointer-events: none; filter: saturate(.85); }
.btn.busy .i { display: none; }
.btn.busy::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor;
                    border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn, .btn .i { transition: none; } .btn.busy::before { animation-duration: 2s; } }
.pill-btn { transition: border-color .15s, color .15s; }
.pill-btn:hover { border-color: var(--brand); color: var(--brand); }
button.link.danger { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 99px;
                     background: var(--bad-soft); font-size: 0.8125rem; }
button.link.danger .i { width: 14px; height: 14px; color: var(--bad); }
button.link.danger:hover { background: color-mix(in srgb, var(--bad) 18%, var(--card)); }

/* ---- city search box (pick from the official list) ----------------------------------------------- */
.combo { position: relative; }
.combo input { padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f6d84' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E");
               background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.combo.picked input { border-color: var(--ok); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23138a4b' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.combo-list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none;
              max-height: 300px; overflow-y: auto; background: var(--card); border: 1.5px solid var(--line); border-radius: 14px;
              box-shadow: 0 12px 30px rgba(15, 27, 45, .16); }
.combo-list li { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.combo-list li b { font-weight: 700; }
.combo-list li small { font-size: 0.8125rem; }
.combo-list li[aria-selected="true"], .combo-list li:hover { background: var(--brand-soft); }
.combo-list li.none { cursor: default; color: var(--muted); background: none; }

/* ---- comfort round (owner 13.11.2026: "more comfortable, easy and intuitive") ------------------ */
.progress-dots a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 3px; padding: 13px 4px; margin: -7px -4px; } /* 40 px tap height, same look */
.progress-dots a:hover { text-decoration: underline; }
.back-row { display: flex; justify-content: space-between; align-items: baseline; }
.back-row .muted { font-size: 0.875rem; font-weight: 600; }

.range { display: flex; align-items: center; gap: 14px; }
.range input[type=range] { flex: 1; accent-color: var(--brand); height: 32px; margin: 0; }
.range output { min-width: 72px; text-align: right; color: var(--muted); }
.range output b { font-size: 1.25rem; color: var(--ink); }
.range-ticks { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--muted); margin: -2px 86px 0 0; }

.count { margin: 0 0 14px; }
.count-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.progress-bar.small { height: 6px; }

.why { display: flex; gap: 8px; align-items: flex-start; font-size: 0.9062rem; background: var(--brand-soft); padding: 10px 12px; border-radius: var(--radius-sm); margin: 0 0 14px; }
.why .i { width: 18px; height: 18px; color: var(--brand); margin-top: 2px; }

.previews { margin-top: 10px; }
.pv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.pv { margin: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--bg); }
.pv img { display: block; width: 100%; height: 150px; object-fit: contain; background: #0f1b2d; }
.pv-file { display: grid; place-items: center; height: 150px; font-weight: 800; font-size: 1.375rem; color: var(--brand); background: var(--brand-soft); }
.pv figcaption { font-size: 0.7812rem; color: var(--muted); padding: 6px 8px; overflow-wrap: anywhere; }
/* .field > div > div is the trade tiles' grid; the preview's own rows must not pick it up. */
.field .pv-actions { display: flex; gap: 8px; margin-top: 10px; }
.field .pv-actions .pill-btn { flex: 1; justify-content: center; }
.pv-actions .pill-btn { padding: 10px 14px; font-size: 0.9375rem; color: var(--ink); }
.pill-btn.danger { color: var(--bad) !important; }
.pill-btn:disabled { opacity: .55; cursor: default; }

.upload-bar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: 8px; }
.upload-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transition: width .2s; }
.cta-bar .upload-failed { margin: 8px 0 0; }

.todo-links { list-style: none; padding: 0; margin: 0; }
.todo-links a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 12px; margin-bottom: 8px;
  border-radius: var(--radius-sm); background: var(--warn-soft); color: var(--ink); font-weight: 700; text-decoration: none; }
.todo-links .chev { width: 18px; height: 18px; color: var(--warn); }
.sum-head { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; }
.sum-head h2 { margin: 0; font-size: 1rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-size: 0.8125rem; }
.sum-head a { font-weight: 700; font-size: 0.9375rem; text-decoration: none; padding: 6px 0 6px 12px; }
.sum-docs { list-style: none; padding: 0; margin: 4px 0 8px; }
.sum-docs li { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.sum-docs li small { margin-left: auto; font-weight: 500; white-space: nowrap; }
.sum-docs .i { width: 18px; height: 18px; color: var(--ok); }

.code-help { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 0 4px; }
.code-help form { margin: 0; }
.code-help a { font-weight: 600; font-size: 0.9375rem; }
.files .link { min-height: 40px; display: inline-flex; align-items: center; } /* Remove: 40 px tap target (audit 16.11.2026) */

/* ---- job board (phase 3, 17.11.2026) ---------------------------------------------------------------------- */
.avail { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 0; }
.avail .badge-icon { width: 52px; height: 52px; border-radius: 16px; }
.avail.on { background: linear-gradient(135deg, var(--ok), #0f9d63); color: #fff; box-shadow: 0 10px 26px rgba(19, 138, 75, .28); }
.avail.on .badge-icon { background: rgba(255, 255, 255, .2); color: #fff; }
.avail.on .muted { color: rgba(255, 255, 255, .85); }
.avail div { flex: 1; }
.avail h2 { margin: 0 0 2px; }
.avail p { margin: 0; font-size: 0.9062rem; }
.avail form { margin: 0; }
.avail .pill-btn { min-height: 44px; padding: 10px 16px; font-size: 0.9375rem; }
.avail.on .pill-btn { background: rgba(255, 255, 255, .95); color: var(--ok-ink); border-color: transparent; }

.offer-card { border: 2px solid var(--brand); }
.offer-card.urgent { border-color: var(--warn); }
.pay { display: flex; align-items: baseline; gap: 6px; margin: 4px 0 10px; }
.pay b { font-size: 2.4rem; letter-spacing: -.03em; line-height: 1; }
.pay span { color: var(--muted); font-weight: 600; }
.facts { list-style: none; padding: 0; margin: 0 0 6px; display: grid; gap: 8px; }
.facts li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.9375rem; }
.facts .i { width: 20px; height: 20px; color: var(--brand); }
.facts small { font-weight: 500; }
.yesno { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.yesno form { margin: 0; }
.yesno .btn { margin-top: 0; }
.btn.yes { background: linear-gradient(180deg, #19a35a, var(--ok) 55%, #0f7a40); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 6px 16px rgba(19, 138, 75, .3); }
.btn.no { background: var(--card); color: var(--ink); border: 1.5px solid var(--line); box-shadow: 0 1px 2px rgba(15, 27, 45, .05); }
.btn.no:hover { filter: none; border-color: var(--bad); color: var(--bad); }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 0.75rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
       padding: 4px 10px; border-radius: 99px; background: var(--warn-soft); color: var(--warn-ink); margin-bottom: 8px; }
.tag .i { width: 14px; height: 14px; }

/* ---- on the way (20.11.2026): "about how long" tiles, then Running late / I've arrived ---------------- */
.eta-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(60px, 1fr)); gap: 8px; border: 0; padding: 0; margin: 0 0 14px; }
.eta-pick label { position: relative; display: grid; place-items: center; min-height: 56px; border: 1.5px solid var(--line);
                  border-radius: 14px; background: var(--card); cursor: pointer; text-align: center; line-height: 1.1; }
.eta-pick input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.eta-pick label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.eta-pick label:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }
.eta-pick b { font-size: 1.125rem; }
.eta-pick small { font-size: 0.6875rem; color: inherit; opacity: .8; }
.otw-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.otw-row form { flex: 1; margin: 0; }
.otw-row .pill-btn { width: 100%; justify-content: center; min-height: 44px; color: var(--ink); }

.jobs { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.jobs a { display: flex; align-items: center; gap: 12px; padding: 12px; color: inherit; text-decoration: none;
          border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); }
.jobs a:hover { border-color: var(--brand); }
.jobs .badge-icon { width: 40px; height: 40px; border-radius: 12px; } .jobs .badge-icon .i { width: 20px; height: 20px; }
.jobs .name { flex: 1; font-weight: 700; font-size: 0.9375rem; line-height: 1.3; min-width: 0; }
.jobs .name small { display: block; font-weight: 500; }
.jobs .amt { font-weight: 800; white-space: nowrap; }
.jobs .chev { color: var(--muted); width: 18px; height: 18px; }
.empty { text-align: center; color: var(--muted); padding: 14px 8px; font-size: 0.9375rem; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: var(--bg); border-radius: 14px; padding: 12px 10px; text-align: center; }
.stat b { display: block; font-size: 1.25rem; letter-spacing: -.02em; }
.stat span { font-size: 0.7812rem; color: var(--muted); font-weight: 600; }

.address { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; background: var(--brand-soft); margin-bottom: 12px; }
.address .i { color: var(--brand); margin-top: 2px; }
.address b { display: block; font-size: 1.0625rem; }
.address a.btn { margin-top: 10px; min-height: 44px; padding: 10px 14px; font-size: 0.9375rem; }
.contact { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); margin-bottom: 12px; }
.contact a { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; text-decoration: none; min-height: 44px; padding: 0 12px; border-radius: 12px; background: var(--brand-soft); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin: 8px 0 10px; }
.photo-grid figure { margin: 0; position: relative; border-radius: 12px; overflow: hidden; background: var(--bg); aspect-ratio: 1; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-grid form { position: absolute; right: 4px; top: 4px; margin: 0; }
.photo-grid .pill-btn { min-height: 32px; padding: 4px 8px; font-size: 0.75rem; background: rgba(255, 255, 255, .92); }
.photo-head { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; }
.photo-head h2 { margin: 0; }
.steps-done { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.steps-done li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.9375rem; }
.steps-done .i { width: 20px; height: 20px; color: var(--muted); }
.steps-done li.ok .i { color: var(--ok); }
textarea { min-height: 90px; resize: vertical; }

/* The client's page (no app, a link from a text) */
.stars { display: flex; justify-content: center; gap: 6px; margin: 6px 0 14px; flex-direction: row-reverse; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: var(--bg); color: var(--line); cursor: pointer; margin: 0; }
.stars label .i { width: 32px; height: 32px; fill: currentColor; stroke: none; }
.stars input:checked ~ label, .stars label:hover, .stars label:hover ~ label { color: #f5b301; background: #fff7dc; }
.stars input:focus-visible + label { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); }
.client-card h1 { text-align: center; }
.client-card .badge-icon.big { margin-bottom: 10px; }

/* ---- agreement + card (phase 2, 17.11.2026) --------------------------------------------------------------- */
.legal { max-height: 55vh; overflow-y: auto; padding: 4px 14px 4px 0; font-size: 0.9375rem; }
.legal h2 { font-size: 1rem; margin: 16px 0 6px; }
.legal h2:first-child { margin-top: 0; }
.legal p { margin: 0 0 10px; }
.sigpad { position: relative; border: 1.5px dashed color-mix(in srgb, var(--brand) 40%, var(--line)); border-radius: 14px; background: var(--card); overflow: hidden; }
.sigpad canvas { display: block; width: 100%; height: auto; touch-action: none; cursor: crosshair; }
.sigpad::before { content: ""; position: absolute; left: 20px; right: 20px; bottom: 44px; border-bottom: 1.5px solid var(--line); pointer-events: none; }
.sigpad .sig-clear { position: absolute; right: 8px; top: 8px; min-height: 44px; padding: 6px 14px; font-size: 0.875rem; }
.sigpad.drawn { border-style: solid; border-color: var(--ok); }
.stripe-box { padding: 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--card); }
.stripe-box.StripeElement--focus { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.cta-bar.static { position: static; background: none; }

/* Phone fit, checked at 360 px (small Android) on 19.11.2026: the photo buttons wrapped to "Take / photo", and
   the photo Remove and signature Clear buttons were under a fingertip (34x32, 36 high). */
.photo-pick .btn { white-space: nowrap; gap: 8px; font-size: 0.9688rem; padding-left: 8px; padding-right: 8px; }
.photo-grid figure .pill-btn { min-width: 44px; min-height: 44px; justify-content: center; padding: 0; }
@media (max-width: 340px) { .photo-pick { flex-direction: column; } }
/* Hidden numbers (19.11.2026): Call + Text side by side on the job page. */
.contact-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
/* Phone notifications card on the board and the pay page list. */
.push-card[hidden] { display: none; }
.push-card .pill-btn { white-space: nowrap; }
.pay-list .ref { display: block; color: var(--muted); font-size: .85em; overflow-wrap: anywhere; }
.links-row { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; margin: 8px 0 0; }
.links-row a { min-height: 40px; display: inline-flex; align-items: center; }

/* ---- platform guidelines round (20.11.2026) ---------------------------------------------------------------
   Checked against: Apple Human Interface Guidelines (accessibility, buttons, tab bars, typography), Android's
   touch-target guidance (48 dp, 8 dp apart), WCAG 2.2 AA, web.dev "App design" for installed web apps, and
   Chrome's "Respect OS text scale". Each rule says which point it answers. */

/* Text size follows the phone. Android/Chrome: <meta name="text-scale"> in base.html, every text size above is in
   rem, and no root font size is set (that would cancel it). iPhone: -apple-system-body is the user's Dynamic Type
   size (17 px at the default setting - Apple's default body size). Only on iOS (-webkit-touch-callout exists only
   there): on a Mac the same keyword is 13 px. Not yet seen on a real iPhone - check Settings > Display & Brightness
   > Text Size. */
@supports (-webkit-touch-callout: none) { html { font: -apple-system-body; } }

/* Landscape on a phone with a notch: content stays clear of the cut-outs (web.dev: safe areas for content and controls). */
main { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }

/* WCAG 2.4.11 Focus Not Obscured: the sticky top bar, the sticky main button and the tab bar must never cover the
   field or button that has focus - the browser scrolls it clear of these strips. */
html { scroll-padding-top: 84px; scroll-padding-bottom: 24px; }
html:has(body.has-tabs) { scroll-padding-bottom: 100px; }
html:has(.cta-bar) { scroll-padding-bottom: 160px; }
html:has(body.has-tabs .cta-bar) { scroll-padding-bottom: 230px; }

/* One visible focus ring for everything a keyboard can reach (it was only on .btn). */
a:focus-visible, button:focus-visible, select:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px;
}

/* Apple: "always include a press state". Rows answer a tap; the browser's grey tap flash goes. */
.jobs a, .docs a, .todo-links a, .tabbar a, .btn, .pill-btn, .contact a { -webkit-tap-highlight-color: transparent; }
.jobs a:active, .docs a:active { background: var(--brand-soft); }
/* web.dev: user-select none on controls only, never on content. */
.btn, .pill-btn, .tabbar { -webkit-user-select: none; user-select: none; }

/* ---- tab bar: Jobs / Pay / Me ----------------------------------------------------------------------------
   Apple: a tab bar floats above content at the bottom, on a see-through ("Liquid Glass") background; one-word
   labels; badges only for critical information. Material 3: 3-5 destinations, the current one marked by a pill
   ("active indicator") - a shape, so the current tab is not told by colour alone. Each tab is 52 px high and at
   least 100 px wide (Apple 44 pt, Android 48 dp). */
.tabbar {
  position: fixed; z-index: 20; left: 50%; transform: translateX(-50%); bottom: calc(10px + env(safe-area-inset-bottom));
  width: min(420px, calc(100% - 24px)); display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 6px;
  border-radius: 28px; border: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
  background: color-mix(in srgb, var(--card) 76%, transparent);
  backdrop-filter: saturate(1.8) blur(18px); -webkit-backdrop-filter: saturate(1.8) blur(18px);
  box-shadow: 0 12px 32px rgba(15, 27, 45, .16), 0 1px 3px rgba(15, 27, 45, .08);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px;
  border-radius: 22px; color: var(--muted); text-decoration: none; font-weight: 700; line-height: 1.1;
  font-size: clamp(11px, .75rem, 14px); /* Apple's tab labels do not grow without limit either */
}
.tab-ic { position: relative; display: grid; place-items: center; width: 60px; height: 30px; border-radius: 99px; transition: background .2s ease; }
.tabbar .i { width: 22px; height: 22px; }
.tabbar a[aria-current="page"] { color: var(--brand); }
.tabbar a[aria-current="page"] .tab-ic { background: var(--brand-soft); }
.tabbar a[aria-current="page"] .i { stroke-width: 2.4; }
.tabbar a:active .tab-ic { background: color-mix(in srgb, var(--brand) 16%, transparent); }
.tab-badge {
  position: absolute; top: -5px; right: 6px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px;
  background: var(--bad); color: var(--card); font-size: 11px; font-weight: 800; line-height: 19px; text-align: center;
  box-shadow: 0 0 0 2px var(--card);
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
body.has-tabs main { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
/* The sticky main button ("Job done") rides just above the tab bar instead of under it. */
body.has-tabs .cta-bar { bottom: calc(72px + env(safe-area-inset-bottom)); padding-bottom: 10px; }
/* Typing: the bar steps aside so it never sits between the field and the keyboard. */
body:has(:is(input:not([type=checkbox], [type=radio], [type=file], [type=hidden], [type=submit], [type=range]), textarea, select):focus) .tabbar { display: none; }
body.has-tabs:has(:is(input:not([type=checkbox], [type=radio], [type=file], [type=hidden], [type=submit], [type=range]), textarea, select):focus) .cta-bar { bottom: 0; padding-bottom: calc(14px + env(safe-area-inset-bottom)); }

/* ---- grouped lists (iOS "inset grouped", Material lists) -------------------------------------------------
   A small heading above the card, rows split by a hairline inside one card - not a bordered box inside a box. */
.section-title { display: flex; align-items: center; gap: 8px; margin: 24px 6px 10px; font-size: .8125rem; font-weight: 800;
                 letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.section-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 16px 0 0; }
.section-row .section-title { margin: 8px 6px 10px; }
.section-row a { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; padding: 0 4px 0 12px; font-weight: 700; font-size: .9375rem; text-decoration: none; }
.section-row a .i { width: 16px; height: 16px; }
.count-pill { display: inline-grid; place-items: center; min-width: 1.85em; min-height: 1.85em; padding: 0 .55em; border-radius: 99px;
              background: var(--bad); color: var(--card); font-size: .75rem; line-height: 1; letter-spacing: 0; } /* em: grows with the text */
.card.list-card { padding: 6px; }
.list-card .jobs, .list-card .docs { gap: 0; }
.list-card .jobs li + li, .list-card .docs li + li { border-top: 1px solid var(--line); }
.list-card .jobs a, .list-card .docs a { border: 0; border-radius: 14px; padding: 12px 10px; background: none; }
.list-card .jobs a:active, .list-card .docs a:active { background: var(--brand-soft); }
.list-card .empty { padding: 18px 12px; margin: 0; }
.list-card .stat-row { padding: 2px; }

/* Stat tiles wrap instead of squeezing when the phone's text is large (no sideways scroll at 200 % text). */
.stat-row { grid-template-columns: repeat(auto-fit, minmax(min(100%, 5.5rem), 1fr)); }
.stat b { overflow-wrap: anywhere; }

/* ---- the offer: one prominent button --------------------------------------------------------------------- */
.decide { display: grid; gap: 8px; margin-top: 18px; }
.decide form { margin: 0; }
.decide .btn { margin-top: 0; }
.btn.quiet { background: transparent; color: var(--ink); border: 1.5px solid var(--line); box-shadow: none; }
.btn.quiet:hover { filter: none; border-color: var(--muted); box-shadow: none; }

/* Large text (checked at 200 %, the WCAG 1.4.4 figure, 20.11.2026): "Toilet replacement" in a list row or a job
   title pushed the page 44 px sideways on a 360 px phone. Long words now hyphenate, or break, inside their box. */
h1, h2 { overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
.card-head > div, .jobs .name, .docs .name { min-width: 0; }
.jobs .name, .docs .name { overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; }
.summary div { flex-wrap: wrap; }
.summary dd { min-width: 0; overflow-wrap: anywhere; }
.pay { flex-wrap: wrap; }
.photo-pick { flex-wrap: wrap; }
.photo-pick .btn { flex: 1 1 auto; } /* side by side while both fit, "From gallery" drops below when they don't */

/* Large text: cards that put a button beside text let it drop below instead of pushing it off the screen. */
.avail { flex-wrap: wrap; }
.avail > div { min-width: min(100%, 9rem); }
.contact { flex-wrap: wrap; }
.contact > div { min-width: 0; overflow-wrap: anywhere; }

/* ---- page changes feel like an app (cross-document View Transitions: Chrome 126+, Safari 18.2+) ----------
   A short cross-fade between pages; the top bar and the tab bar stay put. Older browsers simply load the page.
   Off when the phone asks for less motion. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .top { view-transition-name: topbar; }
  .tabbar { view-transition-name: tabbar; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .16s; }
}

/* ---- white text on coloured buttons and cards: 4.5:1 (WCAG 1.4.3; 16 px bold is not "large text") --------
   Measured 20.11.2026: the green "Yes" button had white on #138a4b (4.4:1); in dark mode the colours switch to
   light tints made for text on dark, so white sat on #5b8ff0 (3.1:1) and #4cc782 (2.1:1), and "Go off" was
   light green on a white pill. Buttons and the available card now keep deep colours in both modes. */
.btn.yes { background: linear-gradient(180deg, #16924f, #117a42 55%, #0d6a39); }   /* white on #117a42: 5.4:1 */
.avail.on { background: linear-gradient(135deg, #117a42, #0f6e3c); }
.avail.on .pill-btn { color: #0d6a39; }
.avail.on .muted { color: rgba(255, 255, 255, .94); } /* .85 white on the deep green was 4.4:1 */
@media (prefers-color-scheme: dark) {
  .btn { background: linear-gradient(180deg, #3a72e0 0%, #2a63d6 55%, #2659c2 100%); }  /* white on #2a63d6: 5.5:1 */
  .btn.yes { background: linear-gradient(180deg, #16924f, #117a42 55%, #0d6a39); }
  .tab-badge, .count-pill { background: #d33a3a; color: #fff; }                        /* white on #d33a3a: 4.7:1 */
}

/* "Pay up from $160": a job asked again after a No because its pay rose (20.11.2026). Green = good news. */
.tag.up { background: var(--ok-soft); color: var(--ok-ink); }
.tag.up .i { transform: rotate(-90deg); }
.tag + .tag { margin-left: 6px; }

/* fields.js (23.11.2026): the field that needs the person - marked, with the reason right under it. */
.f-bad input:not([type=checkbox]):not([type=radio]), .f-bad select, .f-bad textarea { border-color: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft); }
.f-bad canvas, .f-bad .sigpad { outline: 2px solid var(--bad); outline-offset: 2px; }
.f-msg { color: var(--bad); margin: 8px 0 0; font-size: 0.9375rem; font-weight: 700; }
.f-msg::before { content: "! "; }
/* Sent back: the papers that are fine, folded under the ones to fix (23.11.2026) */
.docs-fine { margin-top: 12px; }
.docs-fine summary { cursor: pointer; padding: 12px 4px; color: var(--muted, #5b6b80); font-weight: 600; min-height: 44px; }
