/* Crew app: big targets, high contrast, readable in a truck cab at noon. */
body { background: #EEF1EF; font-size: 16px; -webkit-tap-highlight-color: transparent; }
.c-center { display: grid; place-items: center; padding: 60px 0; }
.c-page { max-width: 640px; margin: 0 auto; padding-bottom: 60px; }
.c-link { border: 0; background: none; color: inherit; font: inherit; font-weight: 700; font-size: 14px; padding: 8px 6px; cursor: pointer; }

.c-top { position: sticky; top: 0; z-index: 30; background: var(--chrome); color: #fff; padding: 8px 10px calc(8px); padding-top: calc(8px + env(safe-area-inset-top)); }
.c-top-inner { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 46px; padding: 2px 6px 2px 12px; border: 1.5px solid rgba(255, 255, 255, .55); border-radius: 9px; }
.c-top b { display: block; font-size: 16px; }
.c-top small { display: block; font-size: 13px; color: rgba(255, 255, 255, .75); }
.c-top-tools { display: flex; gap: 2px; }
.c-back { color: #fff; font-weight: 800; font-size: 17px; padding: 8px 4px; text-decoration: none; }
.c-back:hover { text-decoration: none; }

.c-login { min-height: 100vh; display: flex; flex-direction: column; background: #fff; }
.c-login-top { background: var(--chrome); padding: calc(20px + env(safe-area-inset-top)) 20px 20px; display: flex; justify-content: space-between; align-items: center; color: #fff; }
.c-login-top img { height: 30px; }
.c-login-form { width: 100%; max-width: 420px; margin: 0 auto; padding: 26px 20px 30px; display: flex; flex-direction: column; gap: 14px; }
.c-login-form h1 { font-size: 30px; }
.c-login-form .field > span, .c-sheet .field > span { display: block; font-size: 14px; font-weight: 700; color: var(--text-2); margin-bottom: 6px; }
.input.c-big { height: 52px; font-size: 20px; font-weight: 700; }
.input { font-size: 16px; }
.c-pin { display: flex; gap: 12px; justify-content: center; padding: 6px 0; }
.c-pin i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--ink-500); }
.c-pin i.opt { border-style: dashed; border-color: var(--ink-300); }
.c-pin i.on { background: var(--green-700); border-color: var(--green-700); }
.c-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.c-keys button { height: 60px; border-radius: 12px; border: 1px solid var(--line); background: #F7F8F8; font-size: 24px; font-weight: 700; cursor: pointer; }
.c-keys button:active { background: var(--green-100); }
.c-error { color: var(--red-700); font-weight: 700; margin: 0; }
.c-warn { background: var(--amber-100); color: #6A4A00; padding: 10px 12px; border-radius: 10px; font-weight: 600; font-size: 15px; margin: 0 0 12px; }

.c-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 18px; border-radius: 11px; border: 1.5px solid var(--ink-300); background: #fff; color: var(--text); font: inherit; font-weight: 800; font-size: 16px; cursor: pointer; text-decoration: none; }
.c-btn:hover { text-decoration: none; }
.c-btn:active { transform: scale(.98); }
.c-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.c-btn.primary { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.c-btn.big { min-height: 64px; font-size: 19px; }
.c-btn.sm { min-height: 38px; padding: 0 12px; font-size: 14px; border-radius: 9px; }
.c-btn.wide { width: 100%; margin-top: 12px; }
.c-btn.left { justify-content: flex-start; margin: 0 0 10px; }
.c-btn.sel { border-color: var(--green-700); background: var(--green-100); color: var(--green-900); box-shadow: inset 0 0 0 1px var(--green-700); }

.c-days { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 12px 4px; }
.c-days button { min-height: 54px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font: inherit; font-weight: 800; font-size: 17px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.c-days button small { font-weight: 600; font-size: 13px; color: var(--text-2); }
.c-days button.on { background: var(--green-900); border-color: var(--green-900); color: #fff; }
.c-days button.on small { color: rgba(255, 255, 255, .75); }
.c-jobs { list-style: none; margin: 0; padding: 8px 12px; display: grid; gap: 10px; }
.c-job { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 4px 12px; padding: 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--green-700); color: var(--text); text-decoration: none; position: relative; }
.c-job:hover { text-decoration: none; }
.c-job.s-completed { border-left-color: var(--ink-300); opacity: .8; }
.c-job.s-en_route, .c-job.s-in_progress { border-left-color: var(--kraft-500); }
.c-job-time { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.c-job-main b { display: block; font-size: 18px; }
.c-job-main span { display: block; color: var(--text-2); font-size: 15px; }
.c-job-main small { display: block; color: var(--text-3); font-size: 13px; margin-top: 4px; }
.c-job .c-chip { position: absolute; top: 12px; right: 12px; }
.c-chip { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 800; background: var(--ink-100); color: var(--ink-700); }
.c-chip.s-en_route { background: var(--kraft-100); color: var(--kraft-700); }
.c-chip.s-in_progress { background: var(--amber-100); color: var(--amber-700); }
.c-chip.s-completed { background: var(--green-100); color: var(--green-700); }
.c-top .c-chip { background: rgba(255, 255, 255, .16); color: #fff; }
.c-empty { text-align: center; padding: 48px 20px; }
.c-empty h2 { margin-bottom: 8px; }

.c-head { padding: 16px 14px 6px; }
.c-head h1 { font-size: 28px; }
.c-head p { margin: 4px 0 12px; }
.c-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.c-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin: 12px; }
.c-card h2 { font-size: 18px; margin-bottom: 8px; }
.c-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.c-card-head h2 { margin: 0; }
.c-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.c-row:last-child { border-bottom: 0; }
.c-row b { font-variant-numeric: tabular-nums; }
.c-row .ok { color: var(--green-700); }
.c-row .c-due { color: var(--amber-700); font-weight: 700; }
.c-row.mat span small { display: block; color: var(--text-3); font-size: 13px; }
.c-money .due span, .c-money .due b { font-size: 20px; font-weight: 800; }
.c-room { font-size: 14px; color: var(--text-2); text-transform: capitalize; margin: 12px 0 2px; }
.c-note { background: var(--kraft-50); border: 1px solid var(--kraft-100); border-radius: 10px; padding: 10px 12px; white-space: pre-wrap; margin: 4px 0 10px; }
.c-note.big { font-size: 17px; font-weight: 600; }
.c-lead { font-size: 18px; line-height: 1.45; }
.c-sub { font-size: 16px; margin: 0 0 8px; }

.c-clock { margin: 12px; padding: 18px 16px 16px; border-radius: 16px; background: var(--green-900); color: #fff; }
.c-clock.s-in_progress { background: var(--green-800); }
.c-clock.paused { background: #6A4A00; }
.c-clock.s-completed { background: #fff; color: var(--text); border: 1px solid var(--line); }
.c-clock-read b { display: block; font-size: 46px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.05; }
.c-clock-read span { display: block; font-size: 16px; font-weight: 700; opacity: .85; margin-top: 4px; }
.c-clock-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.c-clock-actions .c-btn { border-color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .1); color: #fff; }
.c-clock-actions .c-btn.primary { background: #fff; border-color: #fff; color: var(--green-900); }
.c-clock-actions .c-btn:only-child { grid-column: 1 / -1; }

.c-stops { list-style: none; margin: 0; padding: 0; }
.c-stops li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.c-stops li:last-child { border-bottom: 0; }
.c-stops .pin { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ink-800); color: #fff; font-weight: 800; }
.c-stops li.origin .pin { background: var(--green-700); }
.c-stops li.destination .pin { background: var(--kraft-700); }
.c-stops small { display: block; color: var(--text-3); font-weight: 700; font-size: 13px; }
.c-stops b { display: block; font-size: 17px; }
.c-stops span { display: block; color: var(--text-2); }
.c-tags { display: flex !important; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.c-tags i { font-style: normal; font-size: 13px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: var(--amber-100); color: #6A4A00; }

.c-scrim { position: fixed; inset: 0; z-index: 100; background: rgba(8, 20, 15, .5); display: flex; align-items: flex-end; justify-content: center; }
.c-sheet { width: 100%; max-width: 640px; max-height: 94vh; background: #fff; border-radius: 18px 18px 0 0; display: flex; flex-direction: column; }
.c-sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 14px 10px 18px; border-bottom: 1px solid var(--line-soft); }
.c-sheet-head h2 { font-size: 20px; }
.c-x { width: 44px; height: 44px; border: 0; background: var(--ink-100); border-radius: 50%; font-size: 18px; cursor: pointer; }
.c-sheet-body { padding: 16px 18px; overflow: auto; flex: 1; display: flex; flex-direction: column; gap: 14px; }
.c-sheet-foot { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-soft); }
.c-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.c-step { display: inline-flex; align-items: center; gap: 6px; }
.c-step button { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ink-300); background: #fff; font-size: 22px; cursor: pointer; }
.c-step button:disabled { opacity: .35; }
.c-step b { min-width: 30px; text-align: center; font-size: 18px; }
.c-line { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 8px; margin-bottom: 8px; }
.c-doc { width: 100%; height: 42vh; border: 1px solid var(--line); border-radius: 10px; }
.c-pad { position: relative; border: 2px dashed var(--ink-300); border-radius: 12px; background: #fff; touch-action: none; }
.c-pad canvas { display: block; width: 100%; height: 200px; touch-action: none; }
.c-pad .c-btn { position: absolute; top: 6px; right: 6px; }
.c-toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 200; background: var(--ink-900); color: #fff; padding: 14px 20px; border-radius: 12px; font-weight: 800; box-shadow: var(--shadow-pop); max-width: calc(100vw - 24px); }
.c-toast.error { background: var(--red-700); }

/* photos */
.c-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.c-photos button { aspect-ratio: 1; padding: 0; border: 0; border-radius: 9px; overflow: hidden; background: var(--ink-100); cursor: pointer; }
.c-photos img, .c-photos .ph-wait, .c-photos .ph-missing { width: 100%; height: 100%; object-fit: cover; display: block; }
.c-photos .ph-missing { display: grid; place-items: center; color: var(--text-3); font-weight: 800; }
.c-photo-big { display: grid; place-items: center; background: #111814; border-radius: 12px; min-height: 200px; }
.c-photo-big img { max-width: 100%; max-height: 70vh; object-fit: contain; }

/* Apple Maps / Google Maps choice, kept on this phone */
.c-seg { display: inline-flex; border: 1.5px solid var(--ink-300); border-radius: 10px; overflow: hidden; }
.c-seg button { min-height: 34px; padding: 0 10px; border: 0; background: #fff; color: var(--text-2); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.c-seg button + button { border-left: 1.5px solid var(--ink-300); }
.c-seg button[aria-pressed="true"] { background: var(--green-100); color: var(--green-900); }
