:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172018; background: #fff;
  --green: #192d21; --lime: #c5f48b; --muted: #647064; --line: #dfe4dc;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; touch-action: manipulation; color: inherit; }
button:disabled { opacity: .6; cursor: wait; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, label.upload:focus-within { outline: 3px solid #619c42; outline-offset: 3px; }
svg { width: 24px; height: 24px; flex-shrink: 0; }
.shell { max-width: 480px; margin: 0 auto; padding: 0 20px; }
header { position: relative; min-height: 80px; display: flex; align-items: center; justify-content: space-between; }
.brand { font-size: 28px; letter-spacing: -1.2px; font-weight: 750; text-decoration: none; color: #172018; }
.brand span { color: #659c44; }
.profile { border: 0; background: #f3f6f0; border-radius: 50%; width: 48px; height: 48px; display: grid; place-items: center; padding: 10px; }
.profile svg { width: 26px; height: 26px; }
.account-menu { position: absolute; right: 0; top: 68px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 6px; z-index: 3; box-shadow: 0 8px 24px #192d2110; }
.account-menu button { background: none; border: 0; min-height: 48px; padding: 8px 20px; }
main { outline: none; padding: 24px 0 32px; min-height: calc(100svh - 140px); }
h1 { font-size: 28px; letter-spacing: -.8px; line-height: 1.18; margin: 8px 0 24px; font-weight: 720; }
h2 { font-size: 20px; letter-spacing: -.35px; line-height: 1.3; margin: 0; }
p { font-size: 16px; line-height: 1.5; color: var(--muted); }
.hello { margin: 0 0 28px; }
.hello h1 { font-size: 34px; margin: 0 0 8px; }
.hello p { font-size: 18px; margin: 0; }
.action-card { background: var(--green); color: #fff; border-radius: 24px; padding: 24px; }
.card-icon { color: var(--lime); margin: 0 0 20px; }
.card-icon svg { width: 28px; height: 28px; }
.action-card h2 { font-size: 26px; letter-spacing: -.5px; margin: 0 0 10px; }
.action-card p { color: #d2dbd2; margin: 0 0 22px; }
.primary { min-height: 56px; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--lime); border: 0; border-radius: 16px; padding: 16px 20px; font-size: 17px; font-weight: 700; color: var(--green); }
.primary:hover { background: #b9ec7a; }
.spaced { margin-top: 26px; }
.month-section { margin-top: 30px; }
.period { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.metric { border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.metric span { color: var(--muted); font-size: 16px; }
.metric strong { font-size: 38px; line-height: 1; letter-spacing: -1px; }
/* All job screens use phone navigation, with no desktop page chrome. */
.flow header, .flow footer { display: none; }
.flow main { padding: 0 0 112px; min-height: 100dvh; }
.app-nav { height: 72px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; position: sticky; top: 0; z-index: 4; background: #fff; margin: 0 -4px 16px; }
.app-nav .back { justify-self: start; }
.app-nav > span:not(.nav-space) { font-size: 16px; font-weight: 650; text-align: center; }
.back { display: inline-flex; align-items: center; gap: 4px; min-width: 78px; min-height: 48px; background: #f3f6f0; border: 0; border-radius: 24px; padding: 12px 14px 12px 10px; font-size: 16px; font-weight: 600; }
.back svg { width: 22px; height: 22px; }
.nav-space { width: 78px; flex-shrink: 0; }
.customer-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: #f0f3ed; padding: 4px; border-radius: 16px; margin-bottom: 24px; }
.customer-tabs button { min-height: 48px; border: 0; background: transparent; border-radius: 12px; font-size: 16px; font-weight: 600; color: var(--muted); padding: 10px 8px; }
.customer-tabs button[aria-pressed=true] { background: #fff; color: var(--green); box-shadow: 0 1px 5px #192d2112; }
.field { margin: 18px 0; min-width: 0; }
.field label, label[for=code] { display: block; font-size: 15px; font-weight: 600; margin: 0 0 8px; }
.field input:not([type=checkbox]), .field textarea, #code { background: #f6f8f3; border: 1px solid transparent; border-radius: 14px; padding: 14px 16px; min-height: 52px; font-size: 16px; width: 100%; color: #172018; line-height: 1.4; }
.field input, .field textarea { scroll-margin-block: 88px 112px; }
.field input:focus, .field textarea:focus { background: #fff; border-color: #69934f; }
.field textarea { resize: vertical; min-height: 112px; }
input::placeholder, textarea::placeholder { color: #7b8478; opacity: 1; }
.contact-fields .field:first-child { margin-top: 0; }
.address-fields { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 4px; }
.field-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 12px; }
.field-row .field { margin-top: 0; }
.action-bar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, 480px); padding: 12px 20px max(16px, env(safe-area-inset-bottom)); background: #fffffffa; border-top: 1px solid #edf1e9; z-index: 5; }
/* The icon owns space, independent of input padding. */
.search { display: flex; align-items: center; gap: 12px; border-radius: 14px; padding: 0 16px; margin: 0 0 20px; background: #f0f3ed; min-height: 56px; }
.search > svg { width: 21px; height: 21px; color: var(--muted); pointer-events: none; }
.search:focus-within { outline: 3px solid #619c42; outline-offset: 3px; }
#search { min-width: 0; flex: 1; width: 0; min-height: 54px; border: 0; padding: 14px 0; margin: 0; border-radius: 0; background: transparent; color: #172018; font-size: 16px; line-height: 1.4; appearance: none; }
#search:focus { outline: none; }
#search::-webkit-search-decoration { -webkit-appearance: none; }
.customer-list { display: flex; flex-direction: column; }
.customer { display: flex; align-items: center; justify-content: space-between; text-align: left; border: 0; border-bottom: 1px solid var(--line); padding: 18px 2px; background: #fff; min-height: 80px; gap: 16px; width: 100%; }
.customer > span { min-width: 0; }
.customer strong { display: block; font-size: 17px; font-weight: 650; line-height: 1.4; }
.customer small { display: block; font-size: 14px; color: var(--muted); margin-top: 4px; line-height: 1.5; overflow-wrap: anywhere; }
.customer svg { color: #83917d; width: 20px; }
.customer:hover { background: #f6f8f3; }
.selected-customer { display: flex; width: 100%; align-items: center; gap: 12px; padding: 14px 16px; margin-bottom: 24px; border: 0; border-radius: 16px; background: #f0f3ed; text-align: left; min-height: 64px; }
.selected-customer > svg { color: #6c7b65; width: 24px; height: 24px; }
.customer-identity { flex: 1; min-width: 0; }
.customer-identity strong { display: block; font-size: 16px; font-weight: 650; line-height: 1.4; }
.customer-identity small { display: block; font-size: 14px; line-height: 1.4; color: var(--muted); margin-top: 3px; overflow-wrap: anywhere; }
.selected-customer > svg:last-child { width: 18px; }
.field .upload { display: flex; align-items: center; justify-content: center; gap: 12px; border: 1.5px dashed #b9c8af; border-radius: 16px; min-height: 88px; font-size: 16px; color: var(--green); background: #f6f8f3; cursor: pointer; }
.upload svg { width: 26px; height: 26px; }
.upload strong { font-size: 16px; font-weight: 600; }
.photos { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.photo { position: relative; width: 88px; height: 88px; }
.photo img { height: 100%; width: 100%; object-fit: cover; border-radius: 12px; }
.photo button { position: absolute; top: -8px; right: -8px; min-width: 44px; min-height: 44px; border: 1px solid var(--line); border-radius: 50%; background: #fff; font-size: 24px; }
.field .checkbox { display: flex; align-items: center; gap: 12px; line-height: 1.4; font-size: 14px; font-weight: 400; margin: 18px 0 0; min-height: 48px; }
.checkbox input { accent-color: var(--green); width: 24px; height: 24px; flex-shrink: 0; margin: 0; }
.note { font-size: 15px; line-height: 1.5; margin: 16px 0 24px; }
.error { font-size: 15px; background: #fff0ed; color: #9f3025; border-radius: 12px; padding: 14px; line-height: 1.5; margin: 20px 0; }
.success-icon { color: #659c44; margin: 28px 0 22px; }
.success-icon svg { width: 52px; height: 52px; }
.success-name { font-size: 20px; }
.empty { font-size: 16px; margin: 12px 0 20px; }
.loading { padding-top: 20px; }
footer { font-size: 12px; color: #7c8776; padding: 16px 0 24px; }
.sr-only { position: absolute; width: 1px!important; height: 1px!important; padding: 0!important; margin: -1px!important; border: 0!important; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
[hidden] { display: none!important; }
@media (max-width: 360px) {
  .shell { padding: 0 16px; }
  .action-bar { padding-left: 16px; padding-right: 16px; }
  .app-nav { gap: 4px; }
  .back { min-width: 72px; padding-right: 10px; }
  .nav-space { width: 72px; }
  .app-nav > span:not(.nav-space) { font-size: 15px; }
}

/* A short receipt of the services BusyTrade can take care of. */
.complete main { padding-top: 12px; padding-bottom: 112px; min-height: calc(100dvh - 80px); }
.complete footer { display: none; }
.complete .success-icon { margin: 16px 0 20px; }
.complete h1 { margin-bottom: 8px; }
.complete .success-name { font-size: 17px; margin: 0; }
.completion-actions { margin-top: 32px; }
.completion-actions h2 { font-size: 18px; margin-bottom: 16px; }
.completion-action { display: flex; align-items: center; gap: 14px; padding: 18px 16px; background: #f5f7f2; border-radius: 18px; margin-top: 10px; min-height: 86px; }
.action-icon { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; background: #e8ede3; color: #697561; border-radius: 14px; }
.action-icon svg { width: 24px; height: 24px; }
.action-copy { flex: 1; min-width: 0; }
.action-copy strong { display: block; font-size: 16px; font-weight: 600; line-height: 1.35; }
.action-copy > span { display: block; font-size: 14px; line-height: 1.4; color: var(--muted); margin-top: 5px; }
.completion-action.is-active { background: #edf6e3; }
.is-active .action-icon { background: var(--lime); color: var(--green); }
.is-active .action-copy > span, .is-active > svg { color: #397432; }
@media (max-height: 700px) {
  .complete header { min-height: 64px; }
  .complete main { padding-top: 4px; min-height: calc(100dvh - 64px); }
  .complete .success-icon { margin: 4px 0 12px; }
  .complete .success-icon svg { width: 36px; height: 36px; }
  .complete h1 { font-size: 26px; }
  .completion-actions { margin-top: 24px; }
  .completion-actions h2 { margin-bottom: 12px; }
  .completion-action { min-height: 76px; padding: 12px; gap: 12px; }
  .action-icon { width: 40px; height: 40px; }
}

.sign-in{display:flex;justify-content:center;padding:24px 0;min-width:0}.sign-in>div{max-width:100%}
