/* DTGF Crew — mobile-first, big targets, sunlight-readable. */
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: #f4f6f4; color: #14231a; font-size: 17px; }
main { max-width: 760px; margin: 0 auto; padding: 14px 12px 48px; }
h1 { font-size: 24px; margin: 10px 0 12px; }
h2 { font-size: 19px; margin: 0 0 10px; }
a { color: #14532d; }
.sub { color: #4b5a50; font-size: 14.5px; }
.err { background: #fde8e8; color: #8f1d1d; padding: 10px 12px; border-radius: 10px; font-weight: 600; }
.ok { background: #e2f4e5; color: #14532d; padding: 10px 12px; border-radius: 10px; font-weight: 600; }

.topnav { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: #14532d; color: #fff; padding: 10px 14px; }
.topnav a { color: #d9f2e2; font-weight: 600; text-decoration: none; padding: 8px 4px; }
.topnav .brand { font-weight: 800; letter-spacing: .3px; }
.topnav .who { margin-left: auto; font-weight: 600; }
.topnav .logout button { background: transparent; color: #fff; border: 1px solid #ffffff55; border-radius: 8px; padding: 7px 12px; font-size: 15px; }

.card { background: #fff; border: 1px solid #d7ded8; border-radius: 14px; padding: 16px; margin: 0 0 14px; }
.card.narrow { max-width: 430px; margin: 24px auto; }
.card.help { background: #eef7f0; }

/* The estimate promise — deliberately prominent, never fine print:
   amber box, heavy border, headline-size first line (Dylan, 2026-11-15). */
.est-note { background: #fff6e0; border: 2px solid #b45309; border-radius: 14px; padding: 14px 16px; margin: 0 0 14px; }
.est-note p { margin: 0 0 8px; }
.est-note p:last-child { margin-bottom: 0; }
.est-note-head { font-size: 19px; font-weight: 800; }

label { display: block; font-weight: 600; margin: 0 0 12px; }
input, select { display: block; width: 100%; margin-top: 5px; padding: 13px; font-size: 17px; border: 1.5px solid #9db3a4; border-radius: 10px; background: #fff; color: #14231a; }
textarea { display: block; width: 100%; margin-top: 5px; padding: 13px; font-size: 17px; border: 1.5px solid #9db3a4; border-radius: 10px; background: #fff; color: #14231a; font-family: inherit; }
label.check { font-weight: 500; display: flex; gap: 10px; align-items: flex-start; }
label.check input { width: auto; margin-top: 3px; flex: none; }
fieldset.bed-q { border: 1.5px solid #9db3a4; border-radius: 10px; margin: 0 0 12px; padding: 10px 12px 2px; }
fieldset.bed-q legend { font-weight: 700; padding: 0 4px; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.photos img { width: 100%; height: 120px; object-fit: cover; border-radius: 10px; display: block; }
button, .btn { display: inline-block; min-height: 50px; padding: 12px 18px; font-size: 17px; font-weight: 700; border-radius: 10px; border: 1.5px solid #14532d; background: #fff; color: #14532d; cursor: pointer; text-decoration: none; text-align: center; }
button.primary, .btn.primary { background: #14532d; color: #fff; }
button.big, .btn.big { width: 100%; min-height: 58px; font-size: 19px; margin-top: 6px; }
button:active, .btn:active { transform: scale(.985); }

.job { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid #e3eae4; }
.job:first-of-type { border-top: none; }
.job-main { flex: 1; min-width: 0; }
.job-title { font-weight: 700; font-size: 18px; }
.job-sub { color: #4b5a50; font-size: 14.5px; margin-top: 2px; }
.job-pay { font-weight: 800; font-size: 19px; white-space: nowrap; }
.job.is-done { opacity: .75; }
.badge { font-size: 12.5px; padding: 3px 8px; border-radius: 999px; vertical-align: middle; }
.badge.ok { background: #14532d; color: #fff; }

.rowline { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid #e3eae4; }
.rowline:first-of-type { border-top: none; }
.bigmoney { font-size: 24px; }
.neg { color: #8f1d1d; }

.bar { height: 12px; background: #e3eae4; border-radius: 6px; overflow: hidden; margin-top: 8px; }
.bar > i { display: block; height: 100%; background: #14532d; }

.assignrow { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.assignrow select { flex: 1; min-width: 160px; margin-top: 0; }

.streets { padding: 6px 16px; }
.street { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid #e3eae4; }
.street:first-child { border-top: none; }
.street.walked { background: #eef7f0; }
.snum { font-weight: 800; font-size: 19px; min-width: 30px; text-align: center; color: #14532d; }
.sname { flex: 1; font-weight: 600; }
.sname .sub { display: block; font-weight: 400; }
.actions { margin-top: 10px; }

/* Route map (Leaflet) + GPS follow layer — route detail page only. */
#route-map { height: 400px; border-radius: 12px; margin-top: 10px; background: #dbe7dd; z-index: 0; }
.map-pin { width: 26px; height: 26px; border-radius: 50%; background: #2563eb; color: #fff; font: 700 13px/26px system-ui, sans-serif; text-align: center; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.45); }
.map-pin.small { width: 20px; height: 20px; font: 700 11px/20px system-ui, sans-serif; border-width: 1.5px; opacity: .92; }
.map-pin.start { background: #1a7f37; }
.map-pin.end { background: #111; }
.map-pin.walked { background: #5b6e60; }
.map-pin.here { outline: 3px solid #7c3aed; outline-offset: 1px; }
/* Map v2 follow experience: NEXT banner, direction arrows, START/END flags. */
.nextbar { background: #14532d; color: #fff; font-weight: 700; font-size: 17px; line-height: 1.3; border-radius: 10px; padding: 10px 12px; margin-top: 10px; }
.map-arrow { width: 16px; height: 16px; border-radius: 50%; background: #fc4c02; color: #fff; font-size: 10px; line-height: 14px; text-align: center; border: 1.5px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.45); }
.map-flag { font: 700 12px/22px system-ui, sans-serif; text-align: center; border-radius: 6px; border: 1.5px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.45); white-space: nowrap; }
.map-flag.start { background: #1a7f37; color: #fff; }
.map-flag.end { background: #111; color: #fff; }
.street.here { background: #f3eafd; }
.gpsbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.gpsbar .btn { min-height: 44px; }
/* Layer 3: the service agreement on the acceptance screen — the full
   contract text in one scrollable box the customer reads before signing. */
.agreement-box { max-height: 340px; overflow-y: auto; border: 1px solid #b9c4bb; border-radius: 10px; padding: 12px 14px; background: #fff; font-size: 15px; line-height: 1.5; margin: 10px 0 14px; }
.agreement-box h3 { margin: 14px 0 4px; font-size: 16px; }
.agreement-box p { margin: 6px 0; }
