/* app-match-shared.css — page-specific changes so the shared screens match the mobile app (26 Oct 2026).
   Loaded after account.css and app-match.css. Every rule here is scoped to classes used only on these screens
   (Messages, Chat, Notifications, Profile / Settings / My trades, Notification settings, Blocked people,
   Verification, Become a tradie, the public tradie profile and Earnings).
   Values are copied from the app's StyleSheets (app/…, src/components/…, src/theme/tokens.ts). */

/* ---------- tokens the app has that the website didn't ---------- */
:root { --am-neutral-bg: #EEF2FB; --am-warn: #8A6400; --am-warn-bg: #FFF4DB; --am-unread-line: #D8E4FF; }
:root[data-theme="dark"] { --am-neutral-bg: #242B37; --am-warn: #E8A33D; --am-warn-bg: #33280F; --am-unread-line: #24365A; }
@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] { --am-neutral-bg: #242B37; --am-warn: #E8A33D; --am-warn-bg: #33280F; --am-unread-line: #24365A; }
}

/* ---------- the app's avatar (src/components/Avatar.tsx): initials on a colour, rounded square ---------- */
.am-av { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; box-sizing: border-box;
  border-radius: 12px; object-fit: cover; background: var(--grey-bg); color: #fff; font-weight: 700;
  line-height: 1; letter-spacing: 0; border: 0; padding: 0; overflow: hidden; }
.am-av.am-round { border-radius: 50%; }

/* ---------- the app's centred screen header (back · title · control) ---------- */
.am-hdr { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; min-height: 44px; margin: -10px 0 6px; }
.am-hdr-back { background: none; border: 0; padding: 0; width: 40px; height: 40px; margin-left: -6px; color: var(--ink);
  cursor: pointer; display: flex; align-items: center; justify-content: flex-start; }
.am-hdr h1.am-hdr-title { margin: 0; text-align: center; font-size: 18px; font-weight: 700; letter-spacing: 0; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.am-hdr-right { display: flex; justify-content: flex-end; }
.am-hdr-icon { background: none; border: 0; padding: 4px; margin-right: -4px; width: auto; height: auto; color: var(--ink);
  cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 10px; }
.am-hdr-icon:hover { background: var(--grey-bg); }

/* ---------- two columns on a computer; one column (the app's order) on a phone ---------- */
@media (min-width: 1000px) {
  .am-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
  .am-cols > .am-col > :first-child { margin-top: 0; }
}

/* ---------- small shared pieces ---------- */
.am-note { font-size: 12px; color: var(--muted); text-align: center; line-height: 17px; margin: 24px auto 0; max-width: 560px; }
.am-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 60px 16px; color: var(--muted); }
.am-empty h3 { font-size: 16px; font-weight: 700; color: var(--ink); margin: 12px 0 0; }
.am-empty p { color: var(--muted); margin: 4px auto 0; font-size: 13px; line-height: 19px; max-width: 340px; }
.am-empty-tall { min-height: calc(100vh - 220px); justify-content: center; }
.am-banner { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; margin: 0 0 16px;
  font-size: 13px; font-weight: 600; line-height: 18px; }
.am-banner > svg { flex-shrink: 0; }
.am-banner span { flex: 1; min-width: 0; }
.am-banner-ok { background: var(--green-bg); color: var(--green); }
.am-banner-warn { background: var(--am-warn-bg); color: var(--am-warn); }
.am-banner-err { background: var(--red-bg); color: var(--red); }
.am-banner-info { background: var(--am-neutral-bg); color: var(--blue); }
.am-btn-navy, .am-btn-navy:hover:not(:disabled) { background: var(--brand); color: var(--brand-ink); filter: none; }
.am-stars { display: inline-flex; gap: 1px; color: var(--accent); }

/* =====================================================================
   MESSAGES — app/client/(tabs)/messages.tsx
   ===================================================================== */
.am-msgs .scr-title { margin: 0 0 8px; }
.am-msgs .rows { gap: 0; }
.am-msgs .am-convo, .am-msgs .am-convo:hover, .am-msgs .am-convo:active {
  padding: 14px 0; gap: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  background: transparent; box-shadow: none; transform: none; align-items: center; }
.am-msgs .am-convo:hover { background: var(--grey-bg); }
.am-msgs .am-convo.unread, .am-msgs .am-convo.unread:hover { background: var(--red-bg); }
.am-msgs .convo .row-main { margin-left: 12px; }
.am-msgs .convo .row-title { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.am-msgs .convo-time { font-size: 12px; color: var(--muted); font-weight: 400; }
.am-msgs .convo.unread .convo-time { color: var(--accent); font-weight: 700; }
.am-msgs .convo .convo-last { font-size: 12.5px; color: var(--muted); font-weight: 400; margin: 2px 0 0; }
.am-msgs .convo.unread .convo-last { color: var(--ink); font-weight: 600; }
.am-msgs .convo .convo-addr { font-size: 12px; color: #8A93A2; margin: 2px 0 0; }
.am-msgs .convo .dot { width: 10px; height: 10px; border-radius: 5px; background: var(--accent); margin-left: 6px; }
.am-msgs .convo .chev { color: #C2C8D2; display: flex; margin-left: 4px; }
.am-msgs .blocked-tag, .am-chat .blocked-tag { margin: 3px 0 0; }

/* the job photo with the person in front (src/components/ConversationThumb.tsx) */
.am-msgs .thumb, .am-chat .chat-aside-row .thumb { position: relative; width: 54px; height: 54px; flex-shrink: 0; overflow: visible; }
.am-msgs .thumb-job, .am-chat .thumb-job { width: 54px; height: 54px; border-radius: 14px; object-fit: cover; display: flex;
  align-items: center; justify-content: center; background: var(--grey-bg); color: var(--muted); }
.am-thumb-av { position: absolute; left: -4px; bottom: -4px; display: flex; line-height: 0; border-radius: 999px;
  border: 2px solid var(--surface); background: var(--surface); }
.am-msgs .am-convo.unread .am-thumb-av { border-color: var(--surface); }

/* =====================================================================
   CHAT — app/chat.tsx
   ===================================================================== */
.am-chat .chat-bar { gap: 8px; padding: calc(8px + env(safe-area-inset-top)) 12px 8px; }
.am-chat .chat-back { padding: 0; color: var(--ink); }
.am-chat .am-av.chat-avatar { border-radius: 12px; }
.am-chat .chat-name { font-size: 15px; font-weight: 700; color: var(--ink); }
.am-chat .chat-status { font-size: 12px; margin: 0; color: var(--muted); }
.am-chat .chat-call { width: auto; height: auto; padding: 6px; margin-left: 4px; border-radius: 10px; }
.am-chat .chat-menu { width: auto; height: auto; padding: 4px; border-radius: 10px; }
.am-chat .stream { padding: 16px; gap: 9px; }
.am-chat .stream > :first-child { margin-top: auto; }               /* the app's thread sits at the bottom */
.am-chat .chat-empty { margin: 0 0 24px; font-size: 14px; text-align: center; color: var(--muted); }
.am-chat .stream > .chat-empty:first-child { margin-top: auto; }
.am-chat .callout-note { display: flex; align-items: center; gap: 8px; text-align: left; margin: 0 auto 12px; }
.am-chat .callout-note > svg { flex-shrink: 0; }
/* older messages loading above (28 Oct 2026), as the app shows it */
.am-chat .chat-older { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 6px 0; color: var(--muted); font-size: 12.5px; }
/* a message: the bubble, and the time under it */
.am-chat .bub, .am-chat .bub.mine, .am-chat .bub.theirs { background: none; padding: 0; border-radius: 0; border: 0;
  max-width: 78%; display: flex; flex-direction: column; color: inherit; }
.am-chat .bub.mine { align-self: flex-end; align-items: flex-end; }
.am-chat .bub.theirs { align-self: flex-start; align-items: flex-start; }
.am-chat .bub-body { padding: 10px 13px; border-radius: 15px; font-size: 14px; line-height: 19px; max-width: 100%;
  min-width: 0; overflow-wrap: break-word; box-sizing: border-box; }
.am-chat .bub.mine .bub-body { background: var(--brand); color: #fff; border-bottom-right-radius: 5px; }
.am-chat .bub.theirs .bub-body { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.am-chat .bub-body.bub-has-img { padding: 4px; }
/* 28 Oct 2026: 210 x 210, cropped to fill, as the app draws a photo. With no height until it
   loaded, a photo grew after the chat had scrolled: the newest message was pushed out of view on
   opening, and the message you were reading jumped when older messages loaded. */
.am-chat .bub-img { width: 210px; max-width: 100%; height: 210px; object-fit: cover; border-radius: 12px; margin: 0; display: block; background: var(--grey-bg); }
/* audit 6: the square shows part of the photo; tapping it opens the whole photo (account.js lightbox) */
.am-chat .bub-img[data-leadphoto] { cursor: zoom-in; }
.am-chat .bub-has-img p { margin: 6px 9px 6px; }
.am-chat .bub-time { font-size: 10.5px; color: var(--muted); opacity: 1; margin: 3px 4px 0; }
.am-chat .day-divider { margin: 4px 0; }
/* the quote note the tradie sees */
.am-chat .quote-note:not(:empty) { display: flex; align-items: center; gap: 8px; margin: 0 12px 4px; padding: 9px 14px; }
.am-chat .quote-note > svg { flex-shrink: 0; }
.am-chat .quote-note-accepted { background: var(--green-bg); color: #1E7A46; }
.am-chat .quote-note-declined { background: var(--red-bg); color: #8A2E2E; }
:root[data-theme="dark"] .am-chat .quote-note-accepted { color: var(--green); }
:root[data-theme="dark"] .am-chat .quote-note-declined { color: var(--red); }
/* the bar at the bottom: photo, box, send */
.am-chat .composer { gap: 9px; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); align-items: flex-end; }
.am-chat .attach { width: 40px; height: 44px; padding: 0; display: flex; align-items: center; justify-content: center;
  color: var(--ink); align-self: flex-end; }
.am-chat .attach span { display: flex; }
.am-chat .composer textarea { background: var(--bg); border: 1px solid var(--line); border-radius: 22px; padding: 11px 15px; min-height: 44px; }
.am-chat .send-btn { box-shadow: 0 4px 14px rgba(226, 0, 40, .2); }
.am-chat .chat-blocked { gap: 8px; font-size: 12.5px; line-height: 17px; color: var(--red); }
.am-chat .chat-blocked > svg { flex-shrink: 0; }
.am-chat .chat-unblock { border-color: var(--red); color: var(--red); font-size: 12px; padding: 6px 12px; }
.am-chat .chat-unblock:hover { background: var(--red); color: var(--accent-ink);   /* 3 Nov: white on the lighter dark-mode red was 2.8:1 */ }
/* the conversation list beside the open chat (computer only) — the same rows as Messages */
@media (min-width: 760px) {
  .am-chat .chat-aside-head { font-size: 22px; font-weight: 700; letter-spacing: -.4px; padding: 14px 16px 12px; }
  .am-chat .chat-aside-row { padding: 14px 16px; gap: 0; align-items: center; }
  .am-chat .chat-aside-row:hover { background: var(--grey-bg); }
  .am-chat .chat-aside-row.unread { background: var(--red-bg); }
  .am-chat .chat-aside-row.active { background: var(--grey-bg); box-shadow: inset 3px 0 0 var(--ink); }
  .am-chat .chat-aside-main { margin-left: 12px; }
  .am-aside-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .am-chat .chat-aside-name { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 700; color: var(--ink); }
  .am-aside-time { font-size: 12px; color: var(--muted); flex-shrink: 0; }
  .am-chat .chat-aside-row.unread .am-aside-time { color: var(--accent); font-weight: 700; }
  .am-chat .chat-aside-last { font-size: 12.5px; color: var(--muted); }
  .am-chat .chat-aside-row.unread .chat-aside-last { color: var(--ink); font-weight: 600; }
  .am-aside-ctx { margin: 2px 0 0; font-size: 12px; color: #8A93A2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .am-chat .chat-aside-row .dot { width: 10px; height: 10px; border-radius: 5px; margin-left: 6px; background: var(--accent); }
}

/* =====================================================================
   NOTIFICATIONS — app/notifications.tsx
   ===================================================================== */
.am-notifs, .am-blocked, .am-become, .am-trades, .am-verify-client { max-width: 720px; margin: 0 auto; }
.am-nf-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.am-nf { display: flex; align-items: flex-start; gap: 12px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px; transition: border-color .15s; }
.am-nf[data-go]:hover { border-color: var(--line-2); }
.am-nf.unread { background: var(--blue-bg); border-color: var(--am-unread-line); }
.am-nf-ic { width: 38px; height: 38px; border-radius: 19px; background: var(--bg); color: var(--ink); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; }
.am-nf-main { flex: 1; min-width: 0; }
.am-nf-title { margin: 0; font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.am-nf-body { margin: 2px 0 0; font-size: 13px; line-height: 18px; color: var(--ink-soft); overflow-wrap: break-word; }
.am-nf-time { margin: 4px 0 0; font-size: 11px; color: var(--muted); }
.am-nf-dot { width: 9px; height: 9px; border-radius: 5px; background: var(--blue); margin-top: 6px; flex-shrink: 0; }

/* =====================================================================
   PROFILE (client) / MY BUSINESS (tradie) / SETTINGS — app/client/(tabs)/profile.tsx,
   app/tradie/(tabs)/profile.tsx, app/tradie/settings.tsx
   ===================================================================== */
@media (min-width: 1000px) { .am-prof { max-width: 1080px; margin: 0 auto; } }
.am-top { display: flex; align-items: center; gap: 6px; min-height: 40px; margin: 0; }
.am-top .scr-title { margin: 0; flex: 1; min-width: 0; }
.am-set-tradie .am-top h1.scr-title, .am-trades .am-top h1.scr-title { font-size: 24px; letter-spacing: -.4px; }
.am-top-back { background: none; border: 0; padding: 0; margin: 0 2px 0 -6px; color: var(--ink); cursor: pointer; display: flex; align-items: center; }
.am-top-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.am-top-actions .hdr-bell { border: 0; background: none; width: 34px; height: 34px; border-radius: 10px; }
.am-top-actions .hdr-bell:hover, .am-top-actions .am-hdr-icon:hover { background: var(--grey-bg); }
.am-top-actions .am-hdr-icon { margin-right: -4px; }

/* the photo, name and badge */
.am-prof .am-id { display: flex; align-items: center; gap: 0; margin: 16px 0 12px; }
.am-tprof .am-id, .am-set-tradie .am-id { margin-bottom: 8px; }
.am-id-av { position: relative; cursor: pointer; flex-shrink: 0; display: block; line-height: 0; }
.am-prof .am-av.face { border: 0; border-radius: 12px !important; }
.am-set-client .am-av.face-lg { width: 64px !important; height: 64px !important; }
.am-prof .am-cam { position: absolute; right: -4px; bottom: -4px; width: 24px; height: 24px; border-radius: 12px;
  background: var(--brand); color: #fff; border: 2px solid var(--bg); box-sizing: border-box; font-size: 11px; line-height: 1;
  display: flex; align-items: center; justify-content: center; }
.am-id-main { margin-left: 12px; flex: 1; min-width: 0; }
.am-id-name { margin: 0; font-size: 19px; font-weight: 700; color: var(--ink); line-height: 1.3; overflow-wrap: anywhere; }
.am-set-client .am-id-name { font-size: 20px; }
.am-id-badges { display: flex; align-items: flex-start; gap: 8px; margin-top: 5px; flex-wrap: wrap; }
.am-badge { font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 8px; line-height: 1.4; white-space: nowrap; }
.am-badge-amber { background: var(--amber-bg); color: var(--amber-ink); }
.am-badge-blue { background: var(--blue-bg); color: var(--blue); }
.am-photo-hint { color: var(--muted); font-size: 12px; line-height: 17px; margin: 0 0 8px; }
/* the trades, folded (src/components/TradeDropdown.tsx) */
.am-tdd { display: inline-block; }
.am-tdd summary { list-style: none; display: flex; align-items: center; gap: 6px; cursor: pointer; color: var(--ink-soft);
  font-size: 13px; font-weight: 600; line-height: 1.6; }
.am-tdd summary::-webkit-details-marker { display: none; }
.am-tdd-n { background: var(--grey-bg); border-radius: 999px; padding: 1px 6px; font-size: 10.5px; font-weight: 700; color: var(--ink-soft); line-height: 1.5; }
.am-tdd-chev { color: var(--muted); transition: transform .15s; }
.am-tdd[open] .am-tdd-chev { transform: rotate(180deg); }
.am-tdd-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.am-tdd-list span { background: var(--grey-bg); border-radius: 999px; padding: 5px 10px; font-size: 12px; font-weight: 600; color: var(--ink); }
.am-tdd-one { color: var(--ink-soft); font-size: 13px; font-weight: 600; line-height: 1.6; }
/* stats */
.am-stats { display: flex; margin: 14px 0 4px; }
.am-stat { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.am-stat strong { font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.am-stat span { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
/* section headings: 16 Bold ink */
.am-prof h2.sec, .am-nset h2.sec, .am-tradie h2.sec { font-size: 16px; font-weight: 700; color: var(--ink); margin: 16px 0 8px; }
.am-prof h2.sec + h2.am-sec-sub { margin-top: 16px; }
/* work photos */
.am-prof .am-work { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 16px; }
@media (min-width: 1000px) { .am-prof .am-work { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.am-work .work-photo { border-radius: 10px; border: 0; }
.am-work .work-add { aspect-ratio: 1 / 1; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); background: transparent; gap: 2px; }
:root[data-theme="dark"] .am-work .work-add { border-color: #3A4352; }
.am-work .work-add small { font-size: 11.5px; font-weight: 400; color: var(--muted); }
.am-work .work-del { top: 4px; right: 4px; width: 22px; height: 22px; background: rgba(10, 15, 25, .62); color: #fff; padding: 0; }
/* credentials (own profile) */
.am-prof .am-ccard { padding: 12px; margin: 0 0 12px; }
.am-cline { display: flex; align-items: center; padding: 9px 0; color: var(--muted); }
.am-cline > svg { flex-shrink: 0; }
.am-cline-main { flex: 1; margin-left: 12px; min-width: 0; }
.am-cline-main strong { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.am-cline-main small { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
.am-cdiv { height: 1px; background: var(--line); margin: 2px 0; }
.am-prof .am-cpill { background: var(--am-neutral-bg); color: var(--blue); padding: 3px 9px; border-radius: 9px; font-size: 11px;
  font-weight: 700; white-space: nowrap; flex-shrink: 0; line-height: 1.5; }
.am-prof .am-cpill-ok, .am-prof .am-cpill.pill-green { background: var(--green-bg); color: var(--green); }
.am-prof .am-cpill.pill-amber { background: var(--am-warn-bg); color: var(--am-warn); }
.am-prof .am-cpill.pill-red { background: var(--red-bg); color: var(--red); }
.am-prof .am-row .am-cpill { margin-right: 8px; }
.am-prof .acc-chip { padding: 5px 10px; font-size: 12px; font-weight: 700; }
/* reputation (src/components/ReviewsSummary.tsx) */
.am-rep { padding: 16px; margin: 0 0 12px; }
.am-rep-none { margin: 0; color: var(--muted); font-size: 13.5px; }
.am-rep-avg { display: flex; align-items: center; gap: 5px; margin-bottom: 8px; color: var(--accent); }
.am-rep-num { font-size: 22px; font-weight: 700; color: var(--ink); }
.am-rep-count { color: var(--muted); font-size: 13.5px; }
.am-rev { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 8px; }
.am-rev-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.am-rev-top strong { font-weight: 700; font-size: 13.5px; color: var(--ink); }
.am-rev-body { color: var(--ink-soft); font-size: 13px; margin: 4px 0 0; line-height: 18px; }
.am-rev-date { color: var(--muted); font-size: 11.5px; margin: 4px 0 0; }
.am-rev-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.am-rev-report { margin: 4px 0 0; padding: 0; border: 0; background: none; font: inherit; font-size: 11.5px; color: var(--muted); text-decoration: underline; cursor: pointer; }
/* rows: icon, title, line under, pill, chevron */
.am-prof .nav-row { display: flex; align-items: center; gap: 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px; margin: 0 0 12px; box-shadow: var(--lift-1); color: var(--ink); }
.am-prof .nav-row:hover { border-color: var(--line-2); }
.am-prof .nav-ico { width: 20px; color: var(--ink); }
.am-prof .nav-text { margin-left: 12px; }
.am-prof .nav-text strong { font-size: 15px; font-weight: 700; color: var(--ink); }
.am-prof .nav-text small { font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.am-prof .nav-row .chev { color: var(--muted); display: flex; flex-shrink: 0; }
/* the contact card (src/components/ContactCard.tsx) */
.am-prof .am-contact { padding: 16px; margin: 0 0 12px; }
.am-contact .cc-row { gap: 8px; color: var(--ink); }
.am-contact .cc-val { font-size: 15px; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.am-contact .cc-val.cc-empty { font-size: 14px; font-weight: 400; color: var(--muted); }
.am-contact .cc-edit { font-size: 15px; font-weight: 700; color: var(--blue); }
.am-contact .cc-note { font-size: 11.5px; line-height: 16px; margin: 8px 0 0; }
.am-contact .cc-form label { font-size: 12.5px; font-weight: 700; color: var(--ink-soft); }
/* jobs posted / reviews given */
.am-prof .am-kv { padding: 16px; margin: 0 0 12px; box-shadow: var(--lift-1); }
.am-kv .kv { padding: 9px 0; }
.am-kv .kv span { font-size: 13.5px; color: var(--muted); }
.am-kv .kv strong { font-size: 13.5px; font-weight: 600; color: var(--ink); }
/* free call-outs card (tradie settings) */
.am-prof .am-callout { padding: 12px; margin: 0 0 12px; }
.am-callout .callout-toggle { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--ink); margin: 0; cursor: pointer; }
.am-callout .callout-toggle input { width: 20px; height: 20px; accent-color: var(--green); margin: 0; flex-shrink: 0; }
.am-callout-hint { font-size: 12px; color: var(--muted); line-height: 17px; margin: 6px 0 0; }
.am-callout #calloutFeeRow { margin-top: 8px; }
.am-callout #calloutFeeRow label { font-size: 12px; font-weight: 700; color: var(--muted); margin: 0 0 4px; display: block; }
.am-callout #calloutFee { height: 44px; border-radius: 10px; font-size: 15px; }
.am-callout .btn-row { margin-top: 12px; }
.am-callout #saveCallout { min-height: 44px; border-radius: 10px; font-size: 14.5px; font-weight: 700; padding: 10px 14px;
  box-shadow: 0 4px 14px rgba(0, 36, 84, .18); }
/* account buttons */
.am-divider { height: 1px; background: var(--line); margin: 16px 0; }
.am-prof .ghost-btn, .am-prof .ghost-btn.btn-signout { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 0 0 12px;
  font-size: 14.5px; font-weight: 700; color: var(--ink); }
.am-prof .ghost-btn:hover { background: var(--grey-bg); }
.am-prof .acct-sep { margin: 16px 0 12px; }
.am-prof .btn-delete-acct { font-size: 13px; font-weight: 500; color: var(--muted); }
:root:not([data-theme="dark"]) .am-prof .btn-delete-acct { color: #5A6270; }

/* =====================================================================
   MY TRADES — src/components/TradeSkillsEditor.tsx  ·  BECOME A TRADIE — app/become-tradie.tsx
   ===================================================================== */
.am-trades .am-top { margin-bottom: 8px; }
.am-trades-card { padding: 16px; }
.am-trades-sub { color: var(--muted); font-size: 12.5px; line-height: 17px; margin: 0 0 12px; }
.am-tgrid, .am-become .chips.am-tgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
@media (min-width: 1000px) { .am-tgrid, .am-become .chips.am-tgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.am-tgrid > button { min-height: 52px; border: 1px solid var(--line); border-radius: 11px; padding: 12px 10px; margin: 0;
  background: var(--surface); color: var(--ink-soft); font: inherit; font-size: 13px; font-weight: 600; line-height: 1.35;
  text-align: center; cursor: pointer; display: flex; align-items: center; justify-content: center; position: relative; }
.am-tgrid > button:hover { border-color: var(--line-2); }
.am-tgrid > button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.am-tgrid .gtile.on::after { display: none; }
.am-trades-save { position: sticky; bottom: 12px; margin-top: 12px; }
.am-trades #mtSave, .am-become .am-become-go { min-height: 48px; border-radius: 12px; font-size: 15px; font-weight: 700;
  box-shadow: 0 4px 14px rgba(226, 0, 40, .2); }
.am-become .am-become-go { min-height: 52px; font-size: 16px; }
.am-intro { font-size: 14px; color: var(--ink-soft); line-height: 20px; margin: 0 0 16px; }
.am-intro-muted { font-size: 13px; color: var(--muted); line-height: 19px; margin: 0 0 12px; }
.am-become .am-banner { margin: 16px 0 0; font-weight: 500; }
.am-become .btn-row { margin-top: 24px; }
.am-become .am-note { margin-top: 12px; }

/* =====================================================================
   NOTIFICATION SETTINGS — app/notification-settings.tsx
   ===================================================================== */
.am-nset { max-width: 720px; margin: 0 auto; }
@media (min-width: 1000px) { .am-nset { max-width: 1080px; } }
.am-nset .card { padding: 12px; }
.am-nset .card + .card { margin-top: 0; }
.am-nset .toggle-row { padding: 12px 0; gap: 12px; }
.am-nset .toggle-row:first-of-type { padding-top: 4px; }
.am-nset .toggle-row:last-of-type { padding-bottom: 4px; }
.am-nset .doc-name { font-size: 15px; font-weight: 600; color: var(--ink); margin: 0; }
.am-nset .toggle-row .hint { font-size: 12px; line-height: 17px; color: var(--muted); margin: 2px 0 0; }

/* =====================================================================
   BLOCKED PEOPLE — app/blocked.tsx
   ===================================================================== */
.am-blocked-card { padding: 12px; }
.am-blocked .blocked-row { gap: 0; padding: 8px 0; }
.am-blocked .blocked-row + .blocked-row { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 12px; }
.am-blocked .blocked-main { margin-left: 12px; margin-right: 8px; }
.am-blocked .blocked-main strong { font-size: 15px; font-weight: 600; }
.am-blocked .blocked-meta { font-size: 12px; margin-top: 2px; }
.am-blocked .chat-unblock { padding: 7px 14px; min-width: 84px; font-size: 13px; font-weight: 600; color: var(--red); border-color: var(--red); background: transparent; }
.am-blocked .chat-unblock:hover { background: var(--red); color: var(--accent-ink);   /* 3 Nov: white on the lighter dark-mode red was 2.8:1 */ }

/* =====================================================================
   VERIFICATION — app/client/verification.tsx, app/tradie/accreditation.tsx
   ===================================================================== */
@media (min-width: 1000px) { .am-verify-tradie { max-width: 1080px; margin: 0 auto; } }
.am-verify .card { margin: 0 0 12px; }
.am-verify .card + .card { margin-top: 0; }
.am-idcard { padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.am-idcard-title { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; font-weight: 700; color: var(--ink); }
.am-idcard-title > svg { color: var(--green); }
.am-idcard-line { margin: 0; font-size: 14px; color: var(--ink); }
.am-idcard .hint { font-size: 12.5px; line-height: 18px; margin: 0; }
.am-idcard label { font-size: 13px; font-weight: 600; color: var(--ink); margin: 8px 0 0; }
.am-idcard input { height: 48px; border-radius: 12px; background: var(--bg); }
.am-idcard .btn-row { margin-top: 12px; }
.am-idcard #idSave, .am-auto #autoVerify { min-height: 50px; border-radius: 12px; font-size: 15px; font-weight: 700; }
.am-auto { padding: 16px; }
.am-doc { padding: 12px; }
.am-doc-row { display: flex; align-items: center; }
.am-doc-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--grey-bg); color: var(--muted); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; margin-right: 12px; }
.am-doc-ic.done { background: var(--green-bg); color: var(--green); }
.am-doc-main { flex: 1; min-width: 0; }
.am-verify .am-doc-title { margin: 0; font-size: 15px; font-weight: 700; color: var(--ink); }
.am-verify .am-doc-title .opt { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: none; letter-spacing: 0; margin-left: 6px; }
.am-verify .am-doc-hint { margin: 2px 0 0; font-size: 12px; line-height: 17px; color: var(--muted); }
.am-auto .am-doc-hint { margin: 4px 0 0; }
.am-auto .btn-row { margin-top: 12px; }
.am-auto .am-doc-hint[style] { margin-top: 8px; }
.am-verify .am-doc-hint.am-hint-red { color: var(--red); font-weight: 600; }
.am-verify .am-upload { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin: 12px 0 0;
  padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-size: 14px; font-weight: 700; min-height: 0; }
.am-verify .am-upload:hover { background: var(--grey-bg); }
.am-verify .am-upload.btn-needs-doc { border: 1.5px solid var(--red); border-radius: 999px; min-height: 44px; padding: 12px 16px; font-weight: 500; gap: 8px; }
.am-trade-actions { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 0; width: 100%; }
.am-trade-actions:empty { display: none; }
.am-trade-actions .btn { width: 100%; margin: 0; }
.am-trade-actions .am-upload { margin: 0; }
.am-verify .am-btn-amber { background: var(--accent); color: var(--accent-ink); padding: 12px; border-radius: 12px; font-size: 14px;
  font-weight: 700; box-shadow: 0 4px 14px rgba(226, 0, 40, .2); }
.am-chip { padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; flex-shrink: 0; margin-left: 8px; line-height: 1.4; }
.am-chip-ok { background: var(--green-bg); color: var(--green); }
.am-chip-warn { background: var(--am-warn-bg); color: var(--am-warn); }
.am-chip-err { background: var(--red-bg); color: var(--red); }
.am-chip-info { background: var(--am-neutral-bg); color: var(--blue); }
.am-vsec { font-size: 16px; font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.am-verify .am-col + .am-col .am-vsec:first-child { margin-top: 24px; }
@media (min-width: 1000px) { .am-verify .am-col + .am-col .am-vsec:first-child { margin-top: 0; } }
.am-vsec-sub { font-size: 12.5px; color: var(--muted); line-height: 17px; margin: 0 0 12px; }
.am-or { font-size: 12px; color: var(--muted); text-align: center; margin: 0 0 12px; }
.am-verify .am-submit { padding: 15px; border-radius: 12px; font-size: 16px; font-weight: 700; box-shadow: 0 4px 14px rgba(0, 36, 84, .18); }
.am-verify .btn-row { margin-top: 4px; }
.am-verify .am-note { margin-top: 8px; }
.am-privacy { font-size: 11px; color: var(--muted); line-height: 16px; margin: 24px auto 0; text-align: center; max-width: 560px; }

/* =====================================================================
   PUBLIC TRADIE PROFILE — app/client/tradie-profile.tsx
   ===================================================================== */
@media (min-width: 1000px) { .am-tradie { max-width: 1080px; margin: 0 auto; } }
.am-tradie .am-hdr h1.am-hdr-title { font-size: 16px; }
.am-tradie .am-pblocked { border-radius: 12px; margin: 0 0 12px; border-bottom: 0; padding: 10px 12px; gap: 8px; color: var(--red); }
.am-tradie .am-pblocked > svg { flex-shrink: 0; }
.am-tradie .am-phead { gap: 20px; padding: 0 0 12px; }
.am-tradie .am-av.ig-pfp { width: 86px; height: 86px; }
.am-tradie .ig-stat strong { font-size: 17px; font-weight: 700; }
.am-tradie .ig-stat span { font-size: 12px; margin-top: 2px; }
.am-tradie .am-pbio { margin-bottom: 12px; }
.am-tradie .ig-name { font-size: 15px; font-weight: 700; }
.am-tradie .ig-trade { font-size: 13px; color: var(--muted); }
.am-callout-pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; font-size: 12.5px; font-weight: 600; }
.am-callout-pill > svg { color: var(--ink); }
.am-callout-pill.is-free > svg { color: var(--green); }
.am-tradie .ig-tab { font-weight: 700; letter-spacing: .6px; }
.am-tradie .am-pempty { padding: 20px 0; font-size: 13.5px; }
.am-tradie .am-pempty p { margin: 0; }
.am-tradie .am-pcard { padding: 16px; }
.am-tradie .card + .card { margin-top: 0; }
.am-tradie .am-pcred { gap: 12px; }
.am-tradie .am-pcred .cred-main strong { font-size: 15px; font-weight: 700; }
.am-tradie .am-pcred .cred-main small { font-size: 12px; }
.am-pdiv { height: 1px; background: var(--line); margin: 12px 0; }
.am-plabel { font-size: 12.5px; font-weight: 700; color: var(--muted); margin: 0 0 8px; }
.am-accreds .accred { background: var(--green-bg); color: var(--green); border: 0; border-radius: 999px; padding: 5px 10px; font-size: 12.5px; font-weight: 700; gap: 5px; }
.am-tradie .cred-note { font-size: 12px; color: var(--muted); line-height: 17px; margin: 10px 0 0; }
.am-pempty-line { color: var(--muted); font-size: 13.5px; text-align: center; padding: 20px 0; margin: 0; }
.am-tradie .am-prev { border-top: 1px solid var(--line); padding: 8px 0 0; margin-top: 8px; }
.am-tradie .am-prev:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.am-tradie .am-prev .review-top strong { font-size: 13.5px; font-weight: 700; }
.am-tradie .am-prev .review-body { font-size: 13px; line-height: 18px; color: var(--ink-soft); margin: 4px 0 0; }
.am-prev-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.am-tradie .report-foot { margin: 14px 0 0; }

/* =====================================================================
   EARNINGS — app/tradie/earnings.tsx
   ===================================================================== */
.am-earn { max-width: 720px; margin: 0 auto; }
@media (min-width: 1000px) { .am-earn { max-width: 1080px; } }
.am-ehdr { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; min-height: 40px; margin: -4px 0 12px; }
.am-ehdr .back { justify-self: start; margin: 0 0 0 -4px; font-size: 15px; }
.am-ehdr h1.am-ehdr-title { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: 0; color: var(--ink); text-align: center; }
.am-earn .am-ecard { border-radius: 20px; padding: 16px; margin: 0 0 14px; display: flex; flex-direction: column; gap: 8px; box-shadow: none; }
.am-earn .am-ecard + .am-ecard { margin-top: 0; }
.am-earn .am-ebal { padding: 18px; }
.am-eyebrow { margin: 0; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .3px; }
.am-earn .earn-big { margin: 0; font-size: 34px; font-weight: 700; letter-spacing: -.5px; line-height: 1.3; }
.am-esmall { margin: 0; font-size: 12.5px; line-height: 18px; color: var(--muted); display: block; font-weight: 400; }
.am-earn .btn-row { margin-top: 6px; }
.am-earn .am-epay { background: var(--brand); color: var(--brand-ink); border-radius: 14px; padding: 14px; font-size: 15px; font-weight: 700; }
.am-earn .am-epay:hover:not(:disabled) { filter: brightness(1.15); }
.am-earn .am-epay:disabled { opacity: .45; }
.am-ecard-title { margin: 0; font-size: 14.5px; font-weight: 700; color: var(--ink); }
.am-earn .am-elink { font-size: 13.5px; font-weight: 700; color: var(--blue); }
.am-ebody { margin: 0; font-size: 14px; color: var(--ink); line-height: 1.45; }
.am-earn .am-esecondary { border-radius: 14px; padding: 12px; font-size: 14px; font-weight: 600; width: 100%; }
.am-earn .btn-row:has(.am-esecondary) { margin-top: 0; }
.am-ebank:empty { display: none; }
.am-ebank label { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-soft); margin: 14px 0 6px; }
.am-ebank input, .am-ebank select { min-height: 48px; border-radius: 11px; }
.am-hrow { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.am-hmain { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.am-htitle { font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.am-hamt { font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.am-hamt.earn-in { color: var(--green); }
.am-eterms { text-align: center; margin: 0 0 14px; font-size: 12.5px; }
.am-eterms a { color: var(--muted); text-decoration: none; }
.am-eterms a:hover { text-decoration: underline; }
.am-verify-client .am-cols { display: block; }
.am-earn .am-epay { box-shadow: 0 4px 14px rgba(0, 36, 84, .18); }
@media (max-width: 760px) { .am-trades-save { bottom: calc(72px + env(safe-area-inset-bottom)); } }   /* clear the tab bar */

/* =====================================================================
   COMPUTER LAYOUT LIKE BEFORE (27 Oct, Jason: "I like the general layout of the old version
   for desktop"). From the width where the top nav shows: one column, the full width of the
   page so everything lines up with the logo and nav, the title on the left. The app's
   type, icons, cards and rows stay.
   ===================================================================== */
@media (min-width: 761px) {
  .am-cols { display: block; }
  .am-cols > .am-col + .am-col { margin-top: 0; }
  .am-prof, .am-tradie, .am-earn, .am-nset, .am-verify-tradie, .am-verify-client,
  .am-notifs, .am-blocked, .am-become, .am-trades { max-width: none; margin-left: 0; margin-right: 0; }
  .am-hdr { grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px; margin: 0 0 12px; }
  .am-hdr h1.am-hdr-title, .am-tradie .am-hdr h1.am-hdr-title { text-align: left; font-size: 22px; letter-spacing: -.4px; }
  .am-prof .am-work { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}
/* 3 Nov: on a computer the columns stack (above), but the two-column rule still takes the top
   margin off the second column's first item, so "Credentials" sat on the work photos. */
@media (min-width: 1000px) {
  .am-cols > .am-col + .am-col { margin-top: 20px; }
}

/* ===== Chat additions (31 Oct 2026), same as the app ===== */
/* ↓ back to the newest message: floats over the bottom right of the thread */
.chat-down-anchor { position: relative; height: 0; z-index: 5; }
.chat-down { position: absolute; right: 14px; bottom: 12px; width: 42px; height: 42px; border-radius: 21px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  box-shadow: 0 4px 14px rgba(0,20,45,.16); }
.chat-down[hidden] { display: none; }
.chat-down-n { position: absolute; top: -6px; left: -6px; min-width: 20px; height: 20px; padding: 0 5px; box-sizing: border-box;
  border-radius: 10px; background: var(--accent, #E8132B); color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; }
.chat-down-n[hidden] { display: none; }
/* a picked photo waits above the box until Send */
.staged { display: flex; align-items: center; gap: 12px; padding: 10px 16px 4px; background: var(--surface); border-top: 1px solid var(--line); flex-shrink: 0; }
.staged[hidden] { display: none; }
.staged-pic { position: relative; display: block; width: 72px; height: 72px; flex-shrink: 0; }
.staged-pic img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; display: block; background: var(--line); }
.staged-x { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 11px; border: 0; padding: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center; background: rgba(20,24,31,.85); color: #fff; }
.staged-hint { font-size: 12.5px; color: var(--muted); }
.chat-screen .staged + .composer { border-top: 0; }
/* Delivered / Seen after the time of your latest message */
.bub-status { white-space: nowrap; }
.bub-status.seen { color: var(--brand, #0E2A47); font-weight: 600; }
:root[data-theme="dark"] .bub-status.seen { color: #8FB4FF; }
@media (prefers-color-scheme: dark) { :root[data-theme="system"] .bub-status.seen { color: #8FB4FF; } }
/* typing… : the Book A Tradie tick hops, the dots blink */
.typing-row { align-self: flex-start; display: flex; }
.typing-bub { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 15px; border-bottom-left-radius: 5px;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.typing-tick { width: 18px; height: auto; display: block; transform-origin: 30% 80%; animation: batTypingHop 1.1s ease-in-out infinite; }
.typing-txt i { font-style: normal; animation: batTypingDot 1.2s infinite; opacity: .2; }
.typing-txt i:nth-child(2) { animation-delay: .2s; }
.typing-txt i:nth-child(3) { animation-delay: .4s; }
@keyframes batTypingHop { 0%, 100% { transform: translateY(0) rotate(0); } 35% { transform: translateY(-4px) rotate(-8deg); } 60% { transform: translateY(0) rotate(0); } }
@keyframes batTypingDot { 0%, 100% { opacity: .2; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .typing-tick, .typing-txt i { animation: none; opacity: 1; } }
/* PHONES: the bottom tabs never show while a chat is open or the keyboard is up. With the
   keyboard open on an iPhone the tabs could peek out between the message box and the
   keyboard, mixed into the box (31 Oct 2026). The strip under the chat is painted the
   same colour as the box, so a gap of a few pixels can't show the page behind. */
@media (max-width: 759px) {
  body:has(.chat-screen) .mainnav, body.kb-open:not(.vv-zoomed) .mainnav { display: none !important; }
  .chat-screen { box-shadow: 0 80px 0 0 var(--surface); }
}
/* Your details, editing in place (31 Oct 2026) — as the app */
.am-contact .cc-form { display: flex; flex-direction: column; gap: 6px; }
.am-contact .cc-form[hidden] { display: none; }
.am-contact .cc-form label { margin-top: 4px; }
.am-contact .cc-name-note { margin: 0 0 4px; }
.am-contact .cc-btns { display: flex; gap: 10px; margin-top: 6px; }
.am-contact #ccView[hidden] { display: none; }
.am-contact .cc-cancel { background: transparent; color: var(--ink-soft, var(--ink)); border: 1px solid var(--line); font-weight: 700; }
.am-contact .cc-btns { flex-direction: row; flex-wrap: nowrap; align-items: stretch; }
.am-contact .cc-btns .btn { width: auto; flex: 1; }

/* ===== Book directly / direct leads (1 Nov 2026) — the brand red, same as the app ===== */
.am-book { width: 100%; margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.am-book-hint { margin: 6px 0 0; text-align: center; font-size: 12px; color: var(--muted); }
.direct-banner { display: flex; align-items: center; gap: 10px; background: var(--accent, #E8132B); color: var(--accent-ink, #fff); border-radius: 13px; padding: 12px; margin: 0 0 14px; }
.direct-banner p { margin: 0; font-size: 13.5px; font-weight: 700; line-height: 18px; color: var(--accent-ink, #fff); }
.direct-banner svg { flex-shrink: 0; color: var(--accent-ink, #fff); stroke: var(--accent-ink, #fff); }
.lead-card.lc-direct { border: 2px solid var(--accent, #E8132B); background: #FFF4F5; }
:root[data-theme="dark"] .lead-card.lc-direct { background: rgba(232, 19, 43, 0.10); }
@media (prefers-color-scheme: dark) { :root[data-theme="system"] .lead-card.lc-direct { background: rgba(232, 19, 43, 0.10); } }
.lead-card.lc-direct .place-ic { background: var(--accent, #E8132B); }
.jbadge.jbadge-direct { background: var(--accent, #E8132B); color: var(--accent-ink, #fff); }
.lead-eyebrow-direct { color: var(--accent, #E8132B); }
.lead-cards-direct { margin-bottom: 16px; }

/* audit 7 r3: the client's direct job — who it went to, where it stands, "Post for all tradies" */
.dcard { border: 1px solid var(--line, #E6E8EC); border-radius: 14px; padding: 14px; margin: 12px 0 4px; background: var(--surface, #fff); }
.dcard.dcard-stuck { border-color: var(--red, #E5484D); background: var(--red-bg, #FDECEC); }
.dcard-t { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; font-weight: 700; color: var(--ink, #002454); }
.dcard-stuck .dcard-t { color: var(--red, #E5484D); }
.dcard-t svg { flex-shrink: 0; }
.dcard-b { margin: 6px 0 0; font-size: 13px; line-height: 18px; color: var(--muted, #5B6472); }
.dcard-btn { width: 100%; margin-top: 12px; }
.dcard-link { margin-top: 10px; padding: 0; border: 0; background: none; font-size: 13.5px; font-weight: 700; color: var(--blue, #2E6BE6); cursor: pointer; }

/* fix-all (1 Nov 2026): iPhone zooms in when you tap a box with text under 16px, and the page
   then stays zoomed. These were 14px on phones (the quote lines and the area search). */
@media (max-width: 760px) {
  body .tz-job .item-row input, body .tz .tz-search .ac input, #addr-in { font-size: 16px; }
}
/* fix-all: on a computer the leads page hides its section headings, which left a direct lead
   marked only by its red card — the "Booked directly with you" heading stays */
@media (min-width: 1000px) {
  body.on-leads .lead-eyebrow.lead-eyebrow-direct { display: block; grid-column: 1 / -1; }
}

/* Payment Terms consent (2 Nov 2026), the same as the app's PaymentsConsent sheet */
.modal.pt-consent{max-width:520px; max-height:calc(100vh - 40px); display:flex; flex-direction:column; overflow:hidden}
.pt-consent .pt-lead{color:var(--ink); font-weight:600; font-size:14.5px}
.pt-consent .pt-points{margin:12px 0 14px; padding-left:20px; font-size:14px; line-height:1.45; color:var(--ink)}
.pt-consent .pt-points li{margin-bottom:6px}
.pt-consent .pt-fullhead{font-weight:700; color:var(--ink); font-size:13.5px; margin:0 0 6px}
.pt-consent .pt-fullhead a{font-weight:500}
.pt-consent .pt-scroll{flex:1 1 auto; min-height:0; overflow:auto; margin:0 -24px; padding:0 24px 4px; border-bottom:1px solid var(--line)}
.pt-consent .pt-doc{border:1px solid var(--line); border-radius:10px; padding:10px 12px; font-size:12.5px; line-height:1.5; color:var(--muted); background:var(--bg)}
.pt-consent .pt-doc h2{font-size:13px; font-weight:700; color:var(--ink); margin:12px 0 4px}
.pt-consent .pt-doc h2:first-child{margin-top:0}
.pt-consent .pt-doc p{font-size:12.5px; margin:0 0 8px}
.pt-consent .pt-tick{display:flex; gap:10px; align-items:flex-start; margin:14px 0 4px; font-size:13.5px; font-weight:400; line-height:1.4; color:var(--ink); cursor:pointer}
.pt-consent .pt-tick span{font-weight:400}
.pt-consent .pt-tick input{width:20px; height:20px; margin:1px 0 0; flex-shrink:0; accent-color:var(--accent)}
.pt-consent .pt-err{color:var(--red, #E20028); font-size:13px; min-height:4px}
.pt-consent .btn-row{margin-top:10px}
.pt-prompt{display:flex; flex-direction:column; align-items:flex-start; gap:10px; padding:14px 16px; border:1px solid var(--line); border-radius:14px; background:var(--surface); margin:0 0 12px}
.pt-prompt p{margin:0; font-size:14px; line-height:1.45; color:var(--ink)}
.pt-prompt .pt-prompt-btn{width:auto}
