/* Gecko CRM — the brand tokens (Gecko green since Nov 25 2026; the old navy and blue names are kept so no rule had to change) */
@font-face { font-family: 'Archivo'; src: url('/assets/fonts/archivo-var.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('/assets/fonts/figtree-var.woff2') format('woff2'); font-weight: 300 900; font-display: swap; }

:root {
  --ink: #0f2417; --navy: #1f7a3d; --blue: #1f7a3d; --blue-d: #17602f; --teal: #2a9d8f; --lime: #8bc34a;
  --mint: #b9efe6; --mint-xl: #e3f8f4; --ice: #e9f5ec; --bg: #f6f8f6; --off: #f1f8f3; --white: #fff;
  --text: #17251c; --muted: #4c5d52; --line: #dde7e0; --err: #c62f28; --ok: #1d7a4f;
  --radius: 12px; --shadow: 0 10px 30px rgba(7, 26, 46, .10);
  --display: 'Archivo', 'Arial Black', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 16px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--blue); }
button, input, select, textarea { font: inherit; color: inherit; }
.boot { padding: 40px; text-align: center; color: var(--muted); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── buttons & fields ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px;
  padding: 11px 18px; font-weight: 700; cursor: pointer; background: var(--blue); color: #fff; text-decoration: none; }
.btn:hover { background: var(--blue-d); }
.btn:disabled { opacity: .6; cursor: default; }
.btn-ghost { background: transparent; color: var(--navy); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--off); }
.btn-danger { background: transparent; color: var(--err); border: 1px solid #f1c9c6; }
.btn-danger:hover { background: #fdf0ef; }
.btn-sm { padding: 7px 12px; font-size: 14px; }
.btn-xs { padding: 4px 9px; font-size: 13px; font-weight: 600; border-radius: 8px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--blue); cursor: pointer; text-decoration: underline; font-size: 14px; }
.f { display: block; margin: 0 0 14px; }
.f > span { display: block; font-size: 14px; font-weight: 600; margin: 0 0 6px; color: var(--navy); }
.in { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.in:focus, .btn:focus-visible, .tab:focus-visible, .linkbtn:focus-visible { outline: 3px solid rgba(31, 122, 61, .35); outline-offset: 1px; border-color: var(--blue); }
textarea.in { resize: vertical; min-height: 80px; }
.msg { font-size: 14px; margin: 10px 0 0; min-height: 1.2em; }
.msg.err { color: var(--err); } .msg.ok { color: var(--ok); }

/* ── auth screens ── */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px;
  background: linear-gradient(160deg, var(--navy), var(--ink)); }
.auth-card { width: 100%; max-width: 400px; background: #fff; border-radius: 16px; padding: 32px 28px; box-shadow: var(--shadow); }
.auth-logo { display: block; height: 64px; width: auto; margin: 0 auto 18px; }
/* the Gecko logo has a dark and a light version: show the one that suits the theme */
.logo-on-dark { display: none; }
html[data-theme="dark"] .logo-on-light { display: none; }
html[data-theme="dark"] .logo-on-dark { display: block; }
.auth h1 { font: 800 22px/1.2 var(--display); font-stretch: 112%; text-transform: uppercase; text-align: center; margin: 0 0 6px; color: var(--ink); }
.auth .sub { text-align: center; color: var(--muted); margin: 0 0 22px; font-size: 15px; }
.auth .btn { width: 100%; margin-top: 4px; }
.auth .alt { text-align: center; margin: 16px 0 0; }

/* ── app shell ── */
.app-shell { display: flex; align-items: flex-start; min-height: 100vh; }
.brand { font: 800 16px/1 var(--display); font-stretch: 112%; text-transform: uppercase; letter-spacing: .02em; color: #fff; text-decoration: none; }
.brand small { color: var(--mint); font-size: 12px; margin-left: 6px; }
/* ── left sidebar ── */
.side { flex: 0 0 236px; width: 236px; align-self: stretch; position: sticky; top: 0; height: 100vh;
  background: var(--navy); color: #fff; display: flex; flex-direction: column; z-index: 40; }
.side > .brand { padding: 18px 18px 12px; flex: 0 0 auto; }
.nav { flex: 1 1 auto; overflow-y: auto; padding: 4px 10px 12px; scrollbar-width: thin; }
.nav-flat { display: flex; flex-direction: column; gap: 2px; }
.nav-item, .nav-head { display: flex; align-items: center; gap: 11px; width: 100%; box-sizing: border-box;
  padding: 9px 10px; border-radius: 8px; font: 600 14px/1.1 var(--body); color: #cfe0f2;
  text-decoration: none; background: none; border: 0; cursor: pointer; text-align: left; }
.nav-item:hover, .nav-head:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.nav-item.on { background: #fff; color: var(--navy); }
.nav-item.on .icn { color: var(--blue); }
.icn { flex: 0 0 20px; width: 20px; height: 20px; display: inline-flex; }
.icn svg { width: 20px; height: 20px; display: block; }
.nav-group { margin-top: 6px; }
.nav-head .nav-label { flex: 1; }
.nav-head .chev { flex: 0 0 16px; width: 16px; height: 16px; opacity: .7; transition: transform .15s ease; }
.nav-head .chev svg { width: 16px; height: 16px; display: block; }
.nav-group.open > .nav-head .chev { transform: rotate(90deg); }
.nav-group.admin .nav-head { color: #8fb0d6; font: 700 11px/1.1 var(--body); letter-spacing: .12em; }
.nav-group.admin .nav-head:hover { background: transparent; color: #cfe0f2; }
.nav-sub { display: none; margin: 2px 0 0; }
.nav-group.open > .nav-sub { display: flex; flex-direction: column; gap: 2px; }
.nav-sub .nav-item { padding-left: 14px; }
.side .who { flex: 0 0 auto; display: flex; flex-direction: column; gap: 8px; align-items: stretch;
  padding: 12px 14px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; color: #cfe0f2; }
.who-name { line-height: 1.3; }
.side .who .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .3); }
.side .who .btn-ghost:hover { background: rgba(255, 255, 255, .08); }
/* ── content column ── */
.content { flex: 1 1 auto; min-width: 0; }
.scrim { display: none; }
.mobar { display: none; }
main { max-width: 1160px; margin: 0 auto; padding: 24px 24px 60px; }
/* ── mobile: off-canvas sidebar ── */
@media (max-width: 860px) {
  .side { position: fixed; top: 0; left: 0; width: 262px; flex-basis: 262px; height: 100vh;
    transform: translateX(-100%); transition: transform .22s ease; box-shadow: var(--shadow); }
  body.nav-open .side { transform: translateX(0); }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(7, 26, 46, .45); z-index: 30; }
  .mobar { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 20;
    background: var(--navy); color: #fff; padding: 10px 14px; }
  .ham { font-size: 22px; line-height: 1; background: none; border: 0; color: #fff; cursor: pointer; padding: 4px 6px; }
  main { padding: 18px 16px 60px; }
}
h2 { font: 800 22px/1.2 var(--display); font-stretch: 112%; text-transform: uppercase; margin: 0 0 16px; color: var(--ink); }
h3 { font-size: 16px; margin: 0 0 12px; color: var(--navy); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.late { color: var(--err) !important; font-weight: 700; }
.empty { color: var(--muted); padding: 18px 0; text-align: center; }

/* ── stat tiles ── */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 0 0 20px; }
.home-jobs { margin: 0 0 16px; }   /* Home: today's jobs card (jobs.js), above the tiles */
/* weather.js: forecast chips + the rain-day box */
.wx-chip { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 600; padding: 1px 7px; border-radius: 10px; background: var(--off); color: var(--muted); white-space: nowrap; vertical-align: middle; margin-left: 6px; }
.wx-chip.wx-rain { background: #e3eefc; color: #1c4f8f; }
.wx-chip.wx-sm { font-size: 11px; padding: 0 5px; margin-left: 4px; }
.cal-cell-h .wx-chip { margin-left: 2px; }
.jc-rain { font-size: 12px; line-height: 1; }
.wx-risk { margin: 10px 0; padding: 10px 12px; border: 1px solid #bcd3f3; border-left: 4px solid #1c4f8f; border-radius: var(--radius); background: #eef5fe; }
.wx-risk .mini a { padding: 6px 2px; }
.wx-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
/* 062: customer picker on the job editor + Home 'Jobs without a customer' */
.cust-search { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.cust-search .in { flex: 1 1 auto; min-width: 0; }
.cust-results, .cust-suggest .mini { margin: 0 0 10px; }
.cust-pick { display: flex; justify-content: space-between; gap: 10px; width: 100%; text-align: left; padding: 6px 0; }
.cust-linked { margin-bottom: 4px; }
.cust-new { margin-bottom: 6px; }
.loose-list { list-style: none; margin: 0; padding: 0; }
.loose-list > li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 14px; padding: 10px 0; border-top: 1px solid var(--line); }
.loose-list > li:first-child { border-top: 0; }
.lead-edit { margin-top: 12px; }
/* jobs.js: 'what should be deleted?' popup for repeating plan visits */
.pick-box { max-width: 460px; }
.pick-list { display: grid; gap: 10px; margin: 12px 0 16px; }
.pick-opt { align-items: flex-start; gap: 10px; }
.pick-opt input { margin-top: 3px; }
.pick-sub { display: block; margin-top: 2px; }
/* journey.js: the lead journey (063) */
.jy-steps { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.jy-steps li { display: flex; flex-direction: column; padding-left: 14px; position: relative; }
.jy-steps li::before { content: ''; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.jy-steps li.jy-good::before { background: #1f9d55; }
.jy-steps li.jy-bad::before { background: var(--err); }
.jy-steps li.jy-wait::before { background: #d4a017; }
.jy-pay { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line, rgba(0,0,0,.08)); }
.why-box .pick-list .in { margin-top: 4px; }
/* alerts.js: the team bell (065) */
.home-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bell { position: relative; }
.bell-btn { position: relative; font-size: 18px; line-height: 1; padding: 6px 10px; }
.bell-n { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--err);
  color: #fff; font: 700 11px/18px var(--body); text-align: center; }
.bell-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; width: min(360px, calc(100vw - 32px)); max-height: 70vh; overflow: auto;
  box-shadow: var(--shadow); padding: 14px 16px; }
.bell-pop h3 { margin: 0 0 8px; }
.bell-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bell-row { display: flex; gap: 10px; align-items: flex-start; padding: 6px 8px; border-radius: 8px; }
.bell-row.is-new { background: var(--mint-xl); }
.bell-row.is-mine .bell-txt > a, .bell-row.is-mine .bell-txt > span:first-child { font-weight: 600; }
.bell-ic { font-size: 18px; line-height: 1.3; }
.bell-txt { display: flex; flex-direction: column; min-width: 0; }
.bell-note { margin: 8px 0 0; }
.bell-texts { display: flex; gap: 8px; align-items: center; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.bell-banner { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 16px;
  border-color: #1f9d55; background: var(--mint-xl); }
/* etransfer.js: Money -> Invoices card */
.et-card { margin: 0 0 16px; }
.et-list { list-style: none; margin: 0; padding: 0; }
.et-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding: 10px 0; border-top: 1px solid var(--line); }
.et-row:first-child { border-top: 0; }
.et-main { flex: 1 1 260px; min-width: 0; }
.et-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.et-acts select { max-width: 340px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.tile b { display: block; font: 800 30px/1.1 var(--display); color: var(--ink); }
.tile span { font-size: 14px; color: var(--muted); }
a.tile { text-decoration: none; }
a.tile:hover { border-color: var(--blue); }
.tile.warn { border-color: #f1c9c6; background: #fff8f7; }
.tile.warn b { color: var(--err); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.grid2 > .span2 { grid-column: 1 / -1; }

/* ── lists ── */
.mini { list-style: none; margin: 0; padding: 0; }
.mini li + li { border-top: 1px solid var(--line); }
.mini a:not(.btn) { display: flex; justify-content: space-between; gap: 12px; padding: 10px 2px; text-decoration: none; color: var(--text); }
.mini a:not(.btn):hover { background: var(--off); }
.mini .meta { color: var(--muted); font-size: 14px; white-space: nowrap; }

/* ── leads table ── */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 14px; }
.filters .in { width: auto; min-width: 150px; padding: 9px 10px; }
.filters .grow { flex: 1; min-width: 200px; }
.chk { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.tbl-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 700; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--off); }
td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.c-phone, .c-date { white-space: nowrap; }
.leads-tbl .c-check { width: 48px; text-align: center; vertical-align: middle; user-select: none; }
.leads-tbl tbody { user-select: none; }
.lead-check { position: relative; display: inline-grid; place-items: center; width: 28px; height: 28px; cursor: pointer; vertical-align: middle; }
.lead-check input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.lead-check-ui {
  width: 18px; height: 18px; border-radius: 6px; box-sizing: border-box;
  border: 1.5px solid rgba(40, 50, 65, .45); background: rgba(255, 255, 255, .72);
  display: grid; place-items: center; pointer-events: none;
}
.lead-check input:checked + .lead-check-ui { background: #2a3038; border-color: #2a3038; }
.lead-check input:checked + .lead-check-ui::after {
  content: ""; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -2px);
}
.lead-check input:indeterminate + .lead-check-ui::after {
  content: ""; width: 10px; height: 2px; border-radius: 1px; background: #2a3038;
}
.lead-check input:focus { outline: none; }
.lead-check input:focus-visible + .lead-check-ui { box-shadow: 0 0 0 2px #1c2128; }
.lead-check input:disabled + .lead-check-ui { opacity: .35; }
.bulk-bar {
  position: fixed; z-index: 25; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom));
  transform: translateX(-50%); display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px;
  width: max-content; max-width: calc(100vw - 24px); padding: 8px 10px 8px 16px;
  border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.bulk-count { font-weight: 700; font-size: 14px; white-space: nowrap; padding-right: 4px; }
.bulk-pop { position: relative; }
.bulk-more { min-width: 40px; padding-left: 10px; padding-right: 10px; font-size: 18px; line-height: 1; }
.bulk-menu {
  position: absolute; right: 0; bottom: calc(100% + 8px); min-width: 220px; max-height: min(70vh, 420px);
  overflow: auto; margin: 0; padding: 6px; border-radius: 16px; background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow); z-index: 2;
}
.bulk-item {
  display: block; width: 100%; text-align: left; background: transparent; border: 0; border-radius: 10px;
  padding: 10px 12px; font: inherit; font-weight: 650; color: inherit; cursor: pointer;
}
.bulk-item:hover, .bulk-item:focus-visible { background: rgba(40, 50, 65, .08); outline: none; }
.bulk-item:focus-visible { outline: 2px solid #1c2128; outline-offset: -2px; }
.bulk-item.danger { color: var(--err); }
.bulk-item.split { margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; }
.bulk-item:disabled { opacity: .4; cursor: default; }
.dlg-note { margin: 0 0 12px; }
.dlg-acts { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.modal-box .quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
tbody tr { cursor: pointer; }
tbody tr:hover { background: var(--off); }
tbody tr:last-child td { border-bottom: 0; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 13px; font-weight: 700; white-space: nowrap; border: 1px solid transparent; }
.st-new { background: #e7f0fc; color: #174f95; border-color: #c9dcf6; }
.st-contacted { background: #fff4e0; color: #8a5300; border-color: #f5ddb0; }
.st-quoted { background: #efeafd; color: #5a3cb0; border-color: #dcd2fa; }
.st-bot { background: #e5f6f4; color: #0c6b62; border-color: #b7e4de; }
.st-founder { background: #e7eefb; color: #1f4f9c; border-color: #c7d8f4; }
.st-won { background: #e3f6ec; color: #1d6b45; border-color: #bfe6d0; }
.st-lost { background: #f1f3f5; color: #55606d; border-color: #dfe3e8; }
.tag { display: inline-block; background: var(--mint-xl); color: #1d5f57; border-radius: 6px; padding: 1px 7px; font-size: 12px; margin: 0 4px 4px 0; }
.test { color: #8a5300; font-size: 12px; font-weight: 700; }

/* ── lead detail ── */
.back { display: inline-block; margin: 0 0 12px; font-size: 14px; }
.detail { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-areas: "info ctl" "extra ctl" "hist ctl"; grid-template-rows: auto auto 1fr; gap: 16px; align-items: start; }
.d-info { grid-area: info; } .d-ctl { grid-area: ctl; } .d-hist { grid-area: hist; } .d-extra { grid-area: extra; display: grid; gap: 16px; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 8px 12px; margin: 0; }
.kv dt { color: var(--muted); font-size: 14px; }
.kv dd { margin: 0; word-break: break-word; }
.controls { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 16px; }
.notes { list-style: none; margin: 0 0 14px; padding: 0; }
.notes li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.notes .by { font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }
.notes p { margin: 4px 0 0; white-space: pre-wrap; }
.row-end { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 0 0 14px; margin: 0 0 14px; border-bottom: 1px solid var(--line); }
.actions .sep { font-size: 13px; color: var(--muted); margin-left: 6px; }
.textmenu { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 14px; padding: 10px; background: var(--off); border-radius: 10px; }
.fu { background: var(--off); border-radius: 10px; padding: 12px; }
.fu-label { display: block; font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.fu .quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.claim { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #e7f0fc; border-radius: 10px; padding: 10px 12px; margin: 0 0 14px; font-weight: 600; color: #174f95; }
.dup { background: #fff4e0; border: 1px solid #f5ddb0; color: #6b4100; border-radius: 10px; padding: 10px 14px; margin: 0 0 14px; font-size: 14px; }
.history { list-style: none; margin: 0; padding: 0; max-height: 360px; overflow-y: auto; }
.history li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.history li small { white-space: nowrap; }
.mini .meta.late { color: var(--err); }

/* ── charts (single series → one brand blue; values in text ink) ── */
.bars { list-style: none; margin: 0; padding: 0; }
.bars li { display: grid; grid-template-columns: minmax(100px, 44%) 1fr 36px; align-items: center; gap: 10px; padding: 5px 0; }
.bars .lbl { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bars .trk { height: 14px; position: relative; }
.bars .bar { position: absolute; inset: 0 auto 0 0; background: var(--blue); border-radius: 0 4px 4px 0; min-width: 2px; }
.bars li:hover .bar { background: var(--blue-d); }
.bars .val { font-size: 14px; font-weight: 700; text-align: right; color: var(--text); }
.cols { display: flex; align-items: flex-end; gap: 2px; height: 160px; border-bottom: 1px solid var(--line); padding-top: 18px; }
.cols .c { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; position: relative; }
.cols .c i { display: block; width: 100%; max-width: 34px; background: var(--blue); border-radius: 4px 4px 0 0; min-height: 0; }
.cols .c:hover i { background: var(--blue-d); }
.cols .c em { position: absolute; top: -18px; font-style: normal; font-size: 12px; font-weight: 700; color: var(--text); opacity: 0; }
.cols .c:hover em, .cols .c:focus em { opacity: 1; }
.cols-x { display: flex; gap: 2px; margin-top: 4px; }
.cols-x span { flex: 1; text-align: center; font-size: 11px; color: var(--muted); }

/* ── leaderboard ── */
.lb-nav { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; flex-wrap: wrap; }
.lb-nav strong { min-width: 220px; text-align: center; color: var(--navy); }
.lb { list-style: none; margin: 0; padding: 0; }
.lb-row { display: grid; grid-template-columns: 34px minmax(110px, 1fr) minmax(60px, 1.2fr) auto; align-items: center; gap: 12px; padding: 10px 6px; border-radius: 10px; }
.lb-row + .lb-row { border-top: 1px solid var(--line); }
.lb-row.me { background: var(--off); }
.lb-rank { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: var(--muted); background: #f1f3f5; }
.lb-rank.m1 { background: #f7d774; color: #5c4300; }
.lb-rank.m2 { background: #dfe4ea; color: #3b4652; }
.lb-rank.m3 { background: #e8b98d; color: #5a3410; }
.lb-name { display: flex; flex-direction: column; min-width: 0; }
.lb-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-name small { color: var(--muted); font-size: 12px; }
.lb-trk { height: 12px; position: relative; }
.lb-trk i { position: absolute; inset: 0 auto 0 0; background: var(--blue); border-radius: 0 4px 4px 0; }
.lb-val { font-size: 16px; text-align: right; white-space: nowrap; color: var(--ink); }
/* podium (Nov 15 2026): 2nd left, 1st middle and tallest, 3rd right; 4th on in .lb-rest under it */
.lb-podium { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 10px; }
.lb-step { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; min-width: 0; }
.lb-p1 { order: 2; } .lb-p2 { order: 1; } .lb-p3 { order: 3; }
.lb-pname { font-size: 14px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-step.me .lb-pname { color: var(--blue); }
.lb-pval { font-size: 15px; color: var(--ink); }
.lb-step small { color: var(--muted); font-size: 12px; }
.lb-block { width: 100%; margin-top: 6px; padding-top: 10px; display: flex; justify-content: center; border: 1px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0; background: var(--off); }
.lb-block.m1 { background: linear-gradient(rgba(247, 215, 116, .55), rgba(247, 215, 116, .08)); }
.lb-block.m2 { background: linear-gradient(rgba(190, 198, 208, .6), rgba(190, 198, 208, .08)); }
.lb-block.m3 { background: linear-gradient(rgba(232, 185, 141, .6), rgba(232, 185, 141, .08)); }
.lb-p1 .lb-block { height: 112px; } .lb-p2 .lb-block { height: 82px; } .lb-p3 .lb-block { height: 58px; }
.lb-av { display: inline-grid; place-items: center; flex: none; overflow: hidden; border-radius: 50%; border: 2px solid var(--line); background: var(--off); color: var(--navy); font-weight: 800; }
.lb-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb-avL { width: 72px; height: 72px; font-size: 22px; border-color: #f7d774; }
.lb-avM { width: 56px; height: 56px; font-size: 18px; }
.lb-p2 .lb-avM { border-color: #c4cbd3; } .lb-p3 .lb-avM { border-color: #e8b98d; }
.lb-avS { width: 30px; height: 30px; font-size: 12px; border-width: 1px; }
.lb-rest { margin-top: 12px; padding-top: 4px; border-top: 1px solid var(--line); }

/* ── admin ── */
.imp { background: #fff4e0; color: #6b4100; border-bottom: 1px solid #f5ddb0; padding: 10px 16px; display: flex; gap: 12px;
  align-items: center; justify-content: center; flex-wrap: wrap; font-weight: 600; font-size: 14px; }
.subtabs { display: flex; flex-wrap: wrap; gap: 4px; background: var(--off); padding: 4px; border-radius: 10px; }
.tab.sub { border: 0; background: none; color: var(--navy); cursor: pointer; font-size: 14px; padding: 7px 14px; }
.tab.sub:hover { background: #fff; }
.tab.sub.on { background: var(--navy); color: #fff; }
.acts { display: flex; gap: 6px; flex-wrap: wrap; }
.pwrow { display: flex; gap: 6px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.pwrow .in { width: auto; flex: 1; min-width: 170px; padding: 7px 10px; }
.admin-tbl tbody tr, .db-tbl tbody tr { cursor: default; }
.db-tbl td, .db-tbl th { white-space: nowrap; font-size: 13px; }
.th-sort { border: 0; background: none; padding: 0; font: inherit; font-weight: inherit; color: inherit; cursor: pointer; white-space: nowrap; }
.th-sort:hover { text-decoration: underline; }
.th-arrow { font-size: 10px; }
.db-all tbody tr.db-row { cursor: pointer; }
.db-tbl td.db-read { white-space: normal; }
.db-kv { grid-template-columns: minmax(110px, max-content) 1fr; font-size: 13px; padding: 6px 4px; }
.db-kv dd { white-space: pre-wrap; }
.db-pre { margin: 0; white-space: pre-wrap; word-break: break-word; font-size: 12px; }
.src-tbl tbody tr { cursor: default; }
.src-tbl td:not(:first-child), .src-tbl th:not(:first-child) { text-align: right; white-space: nowrap; }
.prod-tbl .in-num { width: 96px; text-align: right; }   /* 172: Products & services cost / markup / price */
.q-totals .q-cost { border-top: 1px dashed var(--line, #d5dbe2); padding-top: 6px; flex-wrap: wrap; }   /* 172: managers' cost & margin */
.spend-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 2px; font-size: 14px; }
.setrow { display: grid; gap: 4px; margin-top: 8px; padding: 10px; background: var(--off); border-radius: 10px; max-width: 420px; }
.setrow .f { margin: 0 0 6px; }
.setrow .in { padding: 7px 10px; }
.in-sm { width: auto; padding: 6px 8px; font-size: 14px; }
.narrow { max-width: 460px; }
.steps { padding-left: 20px; }
.steps li { margin: 0 0 8px; }
.qr { display: block; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px; margin: 6px 0; }
.key { font-size: 13px; word-break: break-all; background: var(--off); padding: 2px 6px; border-radius: 6px; }
.secret-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 6px 0 10px; }
.secret-row .key { flex: 1; min-width: 160px; }
.in.code { font-size: 24px; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
.c-fu { white-space: nowrap; font-size: 13px; }

/* ── shared bits for the field-ops pages ── */
.note-box { background: #e7f0fc; border: 1px solid #c9dcf6; color: #174f95; border-radius: 10px; padding: 10px 14px; margin: 0 0 14px; font-size: 14px; }
.note-box.ok { background: #e3f6ec; border-color: #bfe6d0; color: #1d6b45; }
.note-box.bad { background: #fdf0ef; border-color: #f1c9c6; color: #9b2620; }
.note-box.warn { background: #fff4e0; border-color: #f5ddb0; color: #6b4100; }
.note-box.clock { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 600; }
td.num, th.num, .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pre { white-space: pre-wrap; }
section.card + section.card, .q-grid > div > * + * { margin-top: 16px; }
.card h3 { margin: 0 0 12px; font-size: 17px; color: var(--ink); }
.card h4 { margin: 0; font-size: 15px; color: var(--navy); }
details.card summary { cursor: pointer; font-weight: 700; color: var(--navy); }
details.card[open] summary { margin-bottom: 12px; }

/* ── doors ── */
.door-where .door-addr { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin: 0 0 10px; }
.door-where .door-addr2 { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.numbox { display: flex; gap: 4px; align-items: stretch; }
.numbox .in { width: 84px; text-align: center; font-size: 20px; font-weight: 800; padding: 8px; }
.numbox .btn { padding: 0 14px; font-size: 20px; }
.door-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; }
.door-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 84px; border-radius: 14px;
  border: 2px solid var(--line); background: #fff; font-weight: 800; font-size: 15px; cursor: pointer; color: var(--ink); }
.door-btn span { font-size: 26px; line-height: 1; }
.door-btn:hover { border-color: var(--blue); }
.door-btn:active { transform: scale(.98); }
.door-btn.o-booked, .door-btn.o-sold { border-color: #9fdcc3; background: #effaf5; }
.door-btn.o-interested, .door-btn.o-come_back { border-color: #bcd4f3; background: #f3f8fe; }
.door-form { margin: 0 0 16px; }
.door-form .quick { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 12px; }
.legend { font-size: 14px; font-weight: 600; color: var(--navy); margin: 0 0 6px; padding: 0; }
.dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; vertical-align: middle; background: #9aa3ad; }
.dot.g-yes { background: #1baf7a; } .dot.g-maybe { background: #2a78d6; } .dot.g-no { background: #eb6834; } .dot.g-none { background: #9aa3ad; }
.legend-row { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--text); margin: 0 0 10px; }
.door-map { height: 460px; border-radius: var(--radius); border: 1px solid var(--line); z-index: 0; }
.streets-tbl tbody tr { cursor: default; }

/* ── quotes / invoices ── */
.q-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.q-grid > div { min-width: 0; }
.q-tbl tbody tr { cursor: pointer; }
.q-items tbody tr { cursor: default; }
.q-items tbody tr:hover { background: none; }
.q-items td { vertical-align: top; }
.q-items .q-name { min-width: 220px; }
.q-items .q-name .in { width: 100%; margin: 0 0 6px; }
.q-items .q-name textarea.in { min-height: 52px; font-size: 13px; }
.q-items .q-qty .in { width: 70px; } .q-items .q-price .in { width: 100px; }
.q-items .q-line { padding-top: 16px; font-weight: 700; }
.q-items .q-opt { padding-top: 14px; white-space: nowrap; }
.q-totals { display: grid; gap: 6px; font-size: 15px; }
.q-totals > div { display: flex; justify-content: space-between; gap: 12px; }
.q-totals .q-grand { border-top: 2px solid var(--ink); padding-top: 8px; margin-top: 2px; font-size: 19px; }
.q-totals .q-grand b { font: 800 22px/1.2 var(--display); color: var(--ink); }
.q-link { display: flex; gap: 8px; align-items: center; margin: 0 0 10px; }
.q-link code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: var(--off); padding: 8px 10px; border-radius: 8px; font-size: 13px; }
.q-share .acts { margin: 0 0 8px; }
.q-draft { background: #f1f3f5; color: #55606d; border-color: #dfe3e8; }
.q-sent { background: #fff4e0; color: #8a5300; border-color: #f5ddb0; }
.q-approved { background: #e3f6ec; color: #1d6b45; border-color: #bfe6d0; }
.q-declined { background: #fdf0ef; color: #9b2620; border-color: #f1c9c6; }
.q-opt.pill { background: var(--mint-xl); color: #1d5f57; border-color: #bfe8df; font-size: 12px; }
.i-draft { background: #f1f3f5; color: #55606d; border-color: #dfe3e8; }
.i-marked_sent { background: #fff4e0; color: #8a5300; border-color: #f5ddb0; }
.i-marked_paid { background: #e3f6ec; color: #1d6b45; border-color: #bfe6d0; }
.i-void { background: #fdf0ef; color: #9b2620; border-color: #f1c9c6; text-decoration: line-through; }

/* ── schedule + jobs ── */
.j-unscheduled { background: #fff4e0; color: #8a5300; border-color: #f5ddb0; }
.j-scheduled { background: #e7f0fc; color: #174f95; border-color: #c9dcf6; }
.j-in_progress { background: #efeafd; color: #5a3cb0; border-color: #dcd2fa; }
.j-completed { background: #e3f6ec; color: #1d6b45; border-color: #bfe6d0; }
.j-cancelled { background: #f1f3f5; color: #55606d; border-color: #dfe3e8; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.wday { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; min-height: 160px; display: flex; flex-direction: column; gap: 6px; }
.wday.today { border-color: var(--blue); box-shadow: inset 0 3px 0 var(--blue); }
.wday-h { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.wday-h b { color: var(--ink); }
.wday-add { margin-left: auto; text-decoration: none; font-weight: 800; font-size: 18px; line-height: 1; padding: 2px 7px; border-radius: 6px; }
.wday-add:hover { background: var(--off); }
.wday-empty { color: #b3bcc6; text-align: center; margin: 6px 0; }
.jcard { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--text); border: 1px solid #c9dcf6; border-left: 4px solid var(--blue);
  background: #f6faff; border-radius: 8px; padding: 6px 8px; font-size: 13px; min-width: 0; }
.jcard:hover { border-color: var(--blue); }
.jcard strong { overflow: hidden; text-overflow: ellipsis; }
.jcard .jc-time { font-weight: 700; color: var(--navy); font-size: 12px; }
.jcard .jc-sub, .jcard .jc-crew { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.jcard .pill { align-self: flex-start; font-size: 11px; padding: 0 7px; }
.jcard.j-completed { border-left-color: var(--ok); background: #f3fbf7; border-color: #bfe6d0; }
.jcard.j-in_progress { border-left-color: #5a3cb0; background: #f8f6fe; border-color: #dcd2fa; }
.jcard.j-cancelled { opacity: .55; text-decoration: line-through; border-left-color: #9aa3ad; background: #f6f7f8; border-color: var(--line); }
.jcard.big { font-size: 15px; padding: 12px 14px; }
.jcard.big .jc-time { font-size: 13px; } .jcard.big .jc-sub { font-size: 14px; white-space: normal; }
.jlist { display: grid; gap: 8px; }
.jday + .jday { margin-top: 14px; }
.jday h4 { margin: 0 0 6px; }
.todo-row { display: flex; align-items: center; gap: 10px; }
.todo-row > a:first-child { flex: 1; min-width: 0; }
.crew-list { display: grid; gap: 8px; }
.crew-chk { color: var(--text); font-size: 15px; }
.run-acts { margin: 0 0 16px; }
.run-acts .btn { font-size: 17px; padding: 14px 22px; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.checklist .chk { color: var(--text); font-size: 15px; align-items: flex-start; gap: 10px; }
.checklist input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; }
.ph-group + .ph-group { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.ph-group h4 { margin: 0; }
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 8px; }
.ph-grid figure { margin: 0; position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--off); }
.ph-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-missing { display: grid; place-items: center; height: 100%; color: var(--muted); font-size: 13px; }
.ph-del { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(7, 26, 46, .7); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.sig { display: block; width: 100%; height: 160px; border: 1px dashed #9fb3c8; border-radius: 10px; background: #fff; touch-action: none; margin: 0 0 6px; }
.sig-view img { max-width: 100%; max-height: 160px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.sig-view { margin: 8px 0 0; }

/* ── print view (invoices) ── */
.print-wrap { position: fixed; inset: 0; z-index: 60; background: rgba(7, 26, 46, .55); overflow-y: auto; padding: 20px 12px; }
.print-wrap > .acts { max-width: 820px; margin: 0 auto 12px; align-items: center; background: #fff; border-radius: 12px; padding: 10px 12px; }
.print-sheet { max-width: 820px; margin: 0 auto; background: #fff; border-radius: 4px; padding: 40px; color: #111; font-size: 14px; }
.ps-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin: 0 0 28px; }
.ps-head p, .ps-meta p { margin: 2px 0; }
.ps-logo { height: 58px; width: auto; margin: 0 0 8px; }
.ps-word { font: 800 24px/1.15 var(--display); color: var(--navy); margin: 0 0 8px; letter-spacing: .01em; }   /* the name as text on the printed invoice (Gecko rebrand) */
.ps-meta { text-align: right; }
.ps-meta h1 { font: 800 30px/1 var(--display); letter-spacing: .04em; margin: 0 0 8px; color: var(--ink); }
.ps-to { display: flex; flex-direction: column; margin: 0 0 22px; }
.ps-items { margin: 0 0 18px; }
.ps-items tbody tr { cursor: default; }
.ps-items tbody tr:hover { background: none; }
.ps-totals { max-width: 320px; margin: 0 0 22px auto; }
.ps-paid { font: 800 22px/1 var(--display); color: var(--ok); border: 3px solid var(--ok); display: inline-block; padding: 8px 14px; transform: rotate(-3deg); }

/* ── customer quote page (/q/<link>) ── */
body.pub { background: var(--off); }
.pub-top { background: #fff; border-bottom: 1px solid var(--line); padding: 10px 16px; text-align: center; }
.pub-top img { height: 56px; width: auto; display: inline-block; vertical-align: middle; }
.pub-main { max-width: 760px; margin: 0 auto; padding: 20px 16px 40px; outline: none; }
.pub-card { padding: 26px; }
.pub-card h1 { font: 800 24px/1.2 var(--display); color: var(--ink); margin: 0 0 4px; }
.pq-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 0 0 16px; }
.pq-head p { margin: 0; }
.pq-for { display: flex; flex-direction: column; text-align: right; font-size: 14px; }
.pq-msg { background: var(--off); border-radius: 10px; padding: 12px 14px; white-space: pre-wrap; }
.pq-items { list-style: none; margin: 0 0 16px; padding: 0; border-top: 1px solid var(--line); }
.pq-item { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.pq-item.opt { background: linear-gradient(90deg, var(--mint-xl), transparent 70%); padding-left: 10px; border-radius: 0; }
.pq-what p { margin: 4px 0 0; font-size: 14px; }
.pq-amt { font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pq-pick { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; cursor: pointer; }
.pq-pick input { width: 20px; height: 20px; }
.pq-terms { margin: 18px 0 0; font-size: 14px; color: var(--muted); }
.pq-terms h3 { font-size: 14px; margin: 0 0 4px; color: var(--navy); }
.pq-terms p { white-space: pre-wrap; margin: 0; }
.pq-approve { margin: 24px 0 0; padding: 18px; border: 2px solid var(--blue); border-radius: var(--radius); background: #f6faff; }
.pq-approve h2 { margin: 0 0 12px; font: 800 19px/1.2 var(--display); color: var(--ink); }
.pq-agree { color: var(--text); align-items: flex-start; margin: 0 0 14px; font-size: 15px; }
.pq-agree input { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.pq-decline { margin: 14px 0 0; }
.pub-foot { text-align: center; font-size: 14px; margin: 22px 0 0; }
.pub-foot p { margin: 4px 0; }

/* ── dispatch: drag-and-drop calendar, day lanes, route planner, crew map ── */
.week-wrap { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 10px; align-items: start; }
.unsched { background: #fff; border: 1px dashed #b9c6d4; border-radius: var(--radius); padding: 10px; display: flex; flex-direction: column; gap: 6px; min-height: 120px; position: sticky; top: 76px; }
.unsched h4 { margin: 0; font-size: 14px; color: var(--navy); }
.unsched p { margin: 0 0 4px; }
.jcard[role=button] { cursor: grab; user-select: none; }
.jcard.dragging { opacity: .35; }
.drag-ghost { position: fixed; z-index: 80; pointer-events: none; box-shadow: var(--shadow); transform: rotate(1.5deg); cursor: grabbing; }
.drop-on { outline: 3px dashed var(--blue); outline-offset: -3px; background: #f3f8fe !important; }
.jc-plan { position: absolute; top: 4px; right: 6px; font-weight: 800; color: var(--blue); font-size: 13px; }
.jcard { position: relative; }
.day-board { display: flex; flex-direction: column; gap: 6px; min-width: 0; overflow-x: auto; }
.lane { display: grid; grid-template-columns: 150px minmax(560px, 1fr); gap: 8px; align-items: stretch; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 6px; }
.lane-hours { background: none; border: 0; padding: 0 6px; }
.lane-h { display: flex; flex-direction: column; gap: 4px; justify-content: center; font-size: 14px; min-width: 0; }
.lane-h .btn { align-self: flex-start; }
.lane-track { position: relative; min-height: 72px; background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 14 - 1px), var(--line) calc(100% / 14 - 1px) calc(100% / 14)); border-radius: 6px; }
.lane-track.hours { min-height: 18px; background: none; }
.lane-track.hours span { position: absolute; top: 0; transform: translateX(-50%); font-size: 11px; color: var(--muted); white-space: nowrap; }
.hour-line { display: none; }
.lane-card { position: absolute; height: 56px; overflow: hidden; padding: 4px 6px; font-size: 12px; }
.lane-card .jc-time { font-size: 11px; white-space: nowrap; }
.lane-card strong, .lane-card .jc-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.modal { position: fixed; inset: 0; z-index: 70; background: rgba(7, 26, 46, .5); display: grid; place-items: center; padding: 16px; }
.modal-box { background: #fff; border-radius: 14px; padding: 22px; max-width: 560px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow); }
.modal-box h3 { margin: 0 0 6px; }
.route-list { padding-left: 22px; margin: 12px 0; }
.route-list li { margin: 0 0 8px; }
.map-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 12px; align-items: start; }
.crew-side { max-height: 460px; overflow-y: auto; }
.crew-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; }
.crew-pin { background: var(--blue); color: #fff; border: 3px solid #fff; border-radius: 50%; display: grid !important; place-items: center; font: 800 12px/1 var(--body); box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.crew-pin.stale { background: #9aa3ad; }
.loc-pill { position: fixed; left: 50%; transform: translateX(-50%); bottom: 12px; z-index: 40; background: #e3f6ec; color: #1d6b45; border: 1px solid #bfe6d0;
  border-radius: 99px; padding: 6px 14px; font-size: 13px; font-weight: 600; box-shadow: 0 4px 14px rgba(7, 26, 46, .12); max-width: calc(100vw - 24px); text-align: center; }
body:has(.loc-pill) .toast-plain { bottom: 60px; }
/* C-15: the pill never covers a button — it ignores taps and the page gets room below it (older Safari without :has uses the class) */
.loc-pill { pointer-events: none; max-width: calc(100vw - 32px); }
body:has(.loc-pill) #main, body.has-loc-pill #main { padding-bottom: 72px; }
.month-grid { display: grid; grid-template-columns: repeat(6, auto); gap: 6px 12px; }
.type-card summary { cursor: pointer; }
.type-card[open] summary { margin-bottom: 12px; }
.type-card + .type-card { margin-top: 10px; }
.fields-builder { display: grid; gap: 8px; }
.field-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px; background: var(--off); border-radius: 8px; }
.field-row .in-sm:first-child { flex: 1 1 180px; }
.field-row .in-sm[aria-label=Choices] { flex: 1 1 180px; }

/* ── money ── */
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0 0 16px; align-items: start; }
.bars .val-wide { white-space: nowrap; }
.bars li:has(.val-wide) { grid-template-columns: minmax(100px, 40%) 1fr auto; }
.exp-form { margin: 0 0 16px; }
.exp-form.compact { margin: 10px 0; border-style: dashed; }
.exp-tbl tbody tr, .profit-tbl tbody tr { cursor: default; }
.profit-tbl td:not(:first-child), .profit-tbl th:not(:first-child) { text-align: right; white-space: nowrap; }
.rates { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px 16px; }
.rate-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; }
.rate-row .in-sm { width: 90px; }
.narrow-wide { max-width: 620px; }

/* ── grow: referrals + campaigns ── */
.ref-pick .mini { margin-top: 6px; }
.c-draft { background: #f1f3f5; color: #55606d; border-color: #dfe3e8; }
.c-sending { background: #fff4e0; color: #8a5300; border-color: #f5ddb0; }
.c-sent, .c-printed { background: #e3f6ec; color: #1d6b45; border-color: #bfe6d0; }
.aud-count { background: var(--off); border-radius: 10px; padding: 12px 14px; font-size: 15px; }
.aud-count b { font: 800 22px/1 var(--display); color: var(--ink); margin-right: 4px; }
.chips { align-items: center; margin: -4px 0 8px; }
.c-preview { background: #fcfdff; }
.c-preview .pc-front { margin-top: 8px; border: 1px solid var(--line); border-radius: 8px; }
.pc-front { aspect-ratio: 6 / 4; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; background: #fff; overflow: hidden; }
.pc-logo { height: 40px; width: auto; align-self: flex-start; }
.pc-logo.pc-word { height: auto; font: 800 20px/1.15 var(--display); color: var(--navy); letter-spacing: .01em; }
.pc-front h4 { font: 800 20px/1.15 var(--display); color: var(--ink); margin: 4px 0 0; }
.pc-front p { margin: 0; font-size: 14px; }
.pc-cta { font-weight: 800; color: var(--blue); font-size: 14px; margin-top: auto; }
.pc-ref { font-size: 11px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 6px; }
.pc-sheet { display: grid; gap: 12px; justify-items: center; }
.pc-page { width: 6in; height: 4in; background: #fff; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.pc-page .pc-front { height: 100%; aspect-ratio: auto; }
.pc-back { font-size: 13px; }
.pc-from { position: absolute; top: .3in; left: .3in; font-size: 10px; color: #333; }
.pc-stamp { position: absolute; top: .3in; right: .3in; width: .8in; height: .9in; border: 1px dashed #999; display: grid; place-items: center; font-size: 9px; color: #999; }
.pc-to { position: absolute; left: 2.6in; top: 1.8in; font-size: 14px; line-height: 1.35; }
.labels { width: 8.5in; background: #fff; display: grid; grid-template-columns: repeat(3, 2.625in); grid-auto-rows: 1in; column-gap: .125in; padding: .5in .1875in; margin: 0 auto; }
.label { padding: .1in .15in; font-size: 11px; line-height: 1.3; overflow: hidden; }

.toast-plain { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; z-index: 50; max-width: min(520px, calc(100vw - 24px)); text-align: center; }
body.bulk-on .toast-plain { bottom: calc(108px + env(safe-area-inset-bottom)); }
body.bulk-on main { padding-bottom: calc(120px + env(safe-area-inset-bottom)); }

@media (max-width: 760px) {
  .lb-row { grid-template-columns: 30px 1fr auto; }
  .lb-trk { display: none; }
  .who span { display: none; }
  .detail, .controls { grid-template-columns: 1fr; }
  .q-grid { grid-template-columns: 1fr; }
  .week-wrap, .map-wrap, .grid2 { grid-template-columns: 1fr; }
  .unsched { position: static; min-height: 0; }
  .lane { grid-template-columns: 96px minmax(560px, 1fr); }
  .month-grid { grid-template-columns: repeat(4, auto); }
  th.hide-sm { display: none; }
  .week { grid-template-columns: 1fr; }
  .wday { min-height: 0; }
  .door-btns { grid-template-columns: repeat(2, 1fr); }
  .door-map { height: 360px; }
  .pq-for { text-align: left; }
  .pub-card, .print-sheet { padding: 18px; }
  .detail { grid-template-areas: "info" "ctl" "extra" "hist"; }
  .kv { grid-template-columns: 96px 1fr; }
  .filters .grow { flex-basis: 100%; }
  .filters select.in { flex: 1 1 40%; min-width: 0; }
  /* leads table → one card per lead */
  .leads-tbl table, .leads-tbl tbody, .leads-tbl tr, .leads-tbl td { display: block; }
  .leads-tbl thead, td.hide-sm { display: none; }
  .leads-tbl tbody tr { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; padding: 8px 12px 8px 6px; border-bottom: 1px solid var(--line); }
  .leads-tbl tbody tr:last-child { border-bottom: 0; }
  .leads-tbl td { padding: 0; border: 0; }
  .leads-tbl .c-check { grid-column: 1; grid-row: 1 / span 4; align-self: center; width: auto; }
  .leads-tbl .lead-check { width: 44px; height: 44px; }
  .leads-tbl .c-name { grid-column: 2; grid-row: 1; }
  .leads-tbl .c-status { grid-column: 3; grid-row: 1; text-align: right; }
  .leads-tbl .c-phone { grid-column: 2; grid-row: 2; }
  .leads-tbl .c-date { grid-column: 3; grid-row: 2; text-align: right; color: var(--muted); font-size: 13px; }
  .leads-tbl .c-area { grid-column: 2 / -1; grid-row: 3; color: var(--muted); font-size: 13px; }
  .leads-tbl .c-area::before { content: 'Area: '; }
  .leads-tbl td.empty { grid-column: 1 / -1; }
  .leads-tbl .c-fu { grid-column: 2; grid-row: 4; }
  .leads-tbl .c-fu:not(:empty)::before { content: 'Follow-up: '; }
  .leads-tbl .c-who { grid-column: 3; grid-row: 3 / 5; text-align: right; align-self: end; font-size: 13px; color: var(--muted); }
  .bulk-bar { left: 8px; right: 8px; transform: none; width: auto; max-width: none; }
  .bulk-pop { margin-left: auto; }
  .history li { flex-direction: column; gap: 2px; }
  /* admin accounts → one card per person */
  .admin-tbl, .admin-tbl tbody, .admin-tbl tr, .admin-tbl td { display: block; }
  .admin-tbl thead { display: none; }
  .admin-tbl tbody tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .admin-tbl td { padding: 2px 0; border: 0; }
  .admin-tbl td:last-child { padding-top: 8px; }
}

@page postcard { size: 6in 4in; margin: 0; }
@media print {
  body:has(> .print-wrap) > *:not(.print-wrap) { display: none !important; }
  .pc-sheet { display: block; }
  .pc-page { page: postcard; box-shadow: none; break-after: page; }
  .labels { padding: .5in .1875in; }
  .loc-pill { display: none; }
  .print-wrap { position: static; background: none; padding: 0; overflow: visible; }
  .print-sheet { padding: 0; max-width: none; }
  .no-print { display: none !important; }
  body.pub .pq-approve, body.pub .pq-decline, body.pub .linkbtn { display: none !important; }
  body.pub { background: #fff; }
  .card { border: 0; }
}

/* ── doors v2: canvassing map, dispositions, territories, offline ── */
.offline-bar { margin: 0 0 12px; padding: 9px 12px; border-radius: 10px; font-size: 13px; font-weight: 600;
  background: #fff6e5; color: #7a5300; border: 1px solid #f3d79a; }
.offline-bar.is-off { background: #fdecea; color: #8a1f17; border-color: #f3b4ad; }
.map-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 10px; }
.map-bar .live-toggle { margin: 0; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.door-map.is-drawing { cursor: crosshair; outline: 3px solid #7b4fd0; }
.dot.g-hot { background: #7b4fd0; } .dot.g-info { background: #2a78d6; } .dot.g-dnk { background: #b0262b; }
/* disposition group tints for the Log + Map buttons */
.door-btn.grp-yes, .disp-btn.grp-yes { border-color: #9fdcc3; background: #effaf5; }
.door-btn.grp-hot, .disp-btn.grp-hot { border-color: #cbbaf0; background: #f5f1fd; }
.door-btn.grp-maybe, .disp-btn.grp-maybe { border-color: #f2dd9b; background: #fdf8ea; }
.door-btn.grp-info, .disp-btn.grp-info { border-color: #bcd4f3; background: #f3f8fe; }
.door-btn.grp-no, .disp-btn.grp-no { border-color: #f3c0ac; background: #fdf1ec; }
.door-btn.grp-dnk, .disp-btn.grp-dnk { border-color: #e3a9a9; background: #fcecec; }
.door-btn.grp-none, .disp-btn.grp-none { border-color: var(--line); background: #f7f8fa; }
/* bottom sheet */
.sheet-back { position: fixed; inset: 0; background: rgba(15,36,23,.45); display: flex; align-items: flex-end;
  justify-content: center; z-index: 1000; animation: sheetfade .15s ease; }
.sheet { width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto; background: #fff; border-radius: 18px 18px 0 0;
  padding: 14px 16px calc(16px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 30px rgba(15,36,23,.25); animation: sheetup .2s ease; }
@keyframes sheetfade { from { opacity: 0; } } @keyframes sheetup { from { transform: translateY(100%); } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 12px; }
.sheet-head h3 { margin: 0; }
.sheet-x { border: 0; background: #eef2f6; width: 34px; height: 34px; border-radius: 50%; font-size: 16px; cursor: pointer; color: var(--navy); }
.sheet-body { }
.disp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.disp-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 76px;
  border-radius: 14px; border: 2px solid var(--line); background: #fff; font-weight: 600; font-size: 14px; color: var(--navy); cursor: pointer; }
.disp-btn span { font-size: 24px; line-height: 1; }
.disp-btn:active { transform: scale(.98); }
.disp-btn.is-disabled { opacity: .45; }
.btn-block { width: 100%; justify-content: center; margin-top: 4px; }
.btn-xs { padding: 4px 10px; font-size: 13px; }
@media (min-width: 560px) { .disp-grid { grid-template-columns: repeat(3, 1fr); } }

/* doors v2: bigger map + mobile full-screen */
.door-map { height: 70vh; min-height: 340px; }
@media (min-width: 760px) { .door-map { height: 520px; } }
.door-map.fs { position: fixed; inset: 0; height: auto !important; width: auto; z-index: 1200; border: 0; border-radius: 0; }
body.map-fs-open { overflow: hidden; }
.map-fs-exit { position: absolute; top: calc(10px + env(safe-area-inset-top)); right: 10px; z-index: 1300;
  width: 42px; height: 42px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.3);
  font-size: 18px; color: var(--navy); cursor: pointer; }
/* keep the disposition sheet above a full-screen map */
.sheet-back { z-index: 1400; }

/* doors v2: walking-map drop pin + active locate button */
.drop-pin { background: none; border: 0; font-size: 28px; line-height: 1; text-align: center; filter: drop-shadow(0 1px 1px rgba(0,0,0,.35)); }
.map-bar .btn.on { background: var(--blue, #1f7a3d); color: #fff; border-color: var(--blue, #1f7a3d); }

/* ── bug reports ── */
.nav-badge { margin-left: auto; flex: 0 0 auto; min-width: 1.25rem; height: 1.25rem; padding: 0 6px; border-radius: 99px;
  background: var(--err); color: #fff; font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; line-height: 1; }
.nav-head .nav-badge { margin-right: 6px; }
.fb-list { display: grid; gap: 10px; }
.fb-card h3 { margin: 0 0 4px; font-size: 16px; }
.fb-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.fb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.fb-desc { white-space: pre-wrap; margin: 0 0 8px; }
.fb-shot { display: block; max-width: 280px; max-height: 160px; border-radius: 12px; margin-top: 8px; }
.fb-ua { word-break: break-word; }
.pr-high { background: #fde8e6; color: #9b2620; border-color: #f1c9c6; }
.fb-file { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
@media (max-width: 700px) { .fb-grid { grid-template-columns: 1fr; } }

/* ── Admin: a small note beside the title, and Roles & permissions ── */
.raju-note { align-self: center; font-size: 10px; line-height: 1.2; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; white-space: nowrap; }
.perm-tbl tbody tr { cursor: default; }
.perm-tbl th.perm-cell, .perm-tbl td.perm-cell { text-align: center; white-space: nowrap; }
.perm-tbl .perm-star { color: var(--muted); font-weight: 600; cursor: help; }
.perm-tbl input[type="checkbox"] { width: 18px; height: 18px; }
.perm-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.perm-people .card { padding: 14px 16px; }
.perm-people h3 { margin: 0 0 8px; }
.perm-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }

/* ── Household Info pop-up (household.js) ── */
.hh { position: fixed; right: 16px; top: 76px; width: 340px; max-height: calc(100vh - 100px); display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); z-index: 1200; }
.hh.min { top: auto; bottom: 16px; max-height: none; width: 280px; }
.hh.min .hh-body { display: none; }
.hh-head { display: flex; align-items: center; gap: 4px; padding: 8px 8px 8px 12px; border-bottom: 1px solid var(--line); }
.hh.min .hh-head { border-bottom: 0; }
.hh-title { flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; color: var(--navy); }
.hh-title b { display: block; font-size: 15px; }
.hh-addr { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hh-btn { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--navy); font-size: 18px; line-height: 1; cursor: pointer; }
.hh-btn:hover { background: #f2f6fa; }
.hh-body { overflow-y: auto; padding: 4px 12px 12px; }
.hh-sec { padding: 10px 0; border-bottom: 1px solid var(--line); }
.hh-sec:last-of-type { border-bottom: 0; }
.hh-sec h4 { margin: 0 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.hh-row { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; font-size: 14px; }
.hh-row > span { color: var(--muted); }
.hh-row > b { text-align: right; font-weight: 600; color: var(--text); }
.hh-fit { display: inline-block; margin: 0 0 6px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.hh-ok { background: #e3f4ea; color: var(--ok); } .hh-mid { background: #fff3d6; color: #8a5a00; } .hh-low { background: #fde8e7; color: var(--err); }
.hh-notes { display: grid; gap: 8px; }
.hh-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 8px; }
.hh-grid .hh-f:first-child { grid-column: 1 / -1; }
.hh-f span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.hh-f .in { padding: 7px 9px; font-size: 14px; }
.hh-links { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 14px; }
.hh .tiny { font-size: 11px; margin: 8px 0 0; }
@media (max-width: 600px) {
  .hh { left: 8px; right: 8px; width: auto; top: auto; bottom: 8px; max-height: 70vh; }
  .hh.min { width: auto; }
}

/* ── Stats page: one section per area (app.js viewStats + stats-*.js), jump chips at the top ── */
.stats-jump { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 8px; }
.stats-jump button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 13px; font: 600 13px/1 var(--body); color: var(--navy); cursor: pointer; }
.stats-jump button:hover, .stats-jump button:focus-visible { border-color: var(--blue); color: var(--blue); }
.stats-sec { scroll-margin-top: 64px; margin: 0 0 8px; }
.stats-h { margin: 28px 0 14px; padding-top: 18px; border-top: 2px solid var(--line); }
.stats-sub { margin-top: 4px; }
.stats-h3 { margin: 18px 0 12px; font-size: 17px; color: var(--navy); }
.stats-tracked { margin: 4px 0 0; }
.presence-score { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; }
.ps-ring { --c: var(--err); width: 112px; height: 112px; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: radial-gradient(closest-side, #fff 78%, transparent 79% 100%), conic-gradient(var(--c) calc(var(--p) * 1%), var(--line) 0); }
.ps-ring b { font: 800 34px/1 var(--display); color: var(--ink); }
.ps-ring span { font-size: 12px; color: var(--muted); }
.ps-ok { --c: var(--ok); } .ps-mid { --c: #d99a00; } .ps-low { --c: var(--err); }
.ps-todo { grid-column: 1 / -1; font-size: 14px; }
.ps-todo ol { margin: 6px 0 0; padding-left: 20px; }
.ps-todo li { margin: 0 0 4px; }
.ps-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0 12px; }
.stats-sec .grid2 > *, .stats-sec .tiles > * { min-width: 0; }   /* wide tables scroll inside their card instead of widening the page */
.stats-sec, .stats-jump { max-width: 100%; }
@media (max-width: 600px) { .presence-score { grid-template-columns: 1fr; justify-items: start; } }
.steps code { word-break: break-all; }

/* Stats -> The Roots (stats-roots.js) */
.roots-log > summary { cursor: pointer; font-weight: 700; padding: 10px 0; color: var(--ink); }
.roots-log[open] > summary { margin-bottom: 8px; }
/* Stats → Revenue & forecast: goals editor; job editor: cancel with a reason */
.goal-edit > summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.goal-edit[open] > summary { margin-bottom: 8px; }
.goal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.goal-grid .f { margin: 0; }
.cancel-why { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cancel-why select { width: auto; min-width: 0; max-width: 100%; }
.bars-wide { container-type: inline-size; }
.bars-wide li { grid-template-columns: minmax(90px, 38%) 1fr auto; }
.bars-wide .val { white-space: nowrap; }
@container (max-width: 420px) {
  .bars-wide li { grid-template-columns: minmax(90px, 45%) 1fr; row-gap: 2px; }
  .bars-wide .val { grid-column: 1 / -1; text-align: left; font-weight: 600; font-size: 13px; color: var(--muted); white-space: normal; }
}

/* Admin (admin-kit.js, Nov 2026): Lines Of Code beside the heading, the Database tab's left column of tabs, online dots, custom roles */
.admin-title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.admin-title h2 { margin-bottom: 0; }
.loc-badge { font-variant-numeric: tabular-nums; white-space: nowrap; }
.admin-split { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 18px; align-items: start; margin-top: 12px; }
.admin-rail { flex-direction: column; flex-wrap: nowrap; align-items: stretch; position: sticky; top: 12px; }
.admin-rail .tab.sub { text-align: left; width: 100%; }
@media (max-width: 760px) {
  .admin-split { grid-template-columns: minmax(0, 1fr); }
  .admin-rail { flex-direction: row; flex-wrap: wrap; position: static; }
  .admin-rail .tab.sub { width: auto; }
}
.on-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; vertical-align: middle; border: 1.5px solid var(--muted); opacity: .45; }
.last-on.is-on { color: #1f9d55; font-weight: 600; }
.on-dot.on { background: #1f9d55; border-color: #1f9d55; opacity: 1; box-shadow: 0 0 0 2px rgba(31, 157, 85, .2); }
.cr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.cr-card .row-end { margin-bottom: 8px; }
.cr-ticks { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 8px; }
.cr-new { margin-top: 12px; }
.cr-sel { margin-top: 6px; display: block; }
.hard-del { margin-top: 16px; border-left: 4px solid var(--err); }
/* Settings (settings.js, Nov 2026) */
.st-tabs { margin: 12px 0 14px; }
.st-tabs a.tab.sub { text-decoration: none; display: inline-block; }
.st-body { display: grid; gap: 12px; max-width: 860px; }
.st-card h3 { margin-top: 0; }
.st-chk { align-items: flex-start; gap: 8px; margin: 6px 0; }
.st-hint { display: block; }
.st-days { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 10px; }
.st-list { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 6px; }
.st-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin: 0 0 10px; }
.st-dl dt { font-weight: 600; } .st-dl dd { margin: 0; }
@media (max-width: 560px) { .st-dl { grid-template-columns: minmax(0, 1fr); } .st-dl dd { margin-bottom: 6px; } }

/* ── Date picker (datepick.js): one calendar for every date / date-time field ── */
@supports selector(::-webkit-calendar-picker-indicator) {
  input[type="date"]:not([data-native]), input[type="datetime-local"]:not([data-native]) {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234c5d72' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; padding-right: 34px; cursor: pointer; }
  input[type="date"]:not([data-native])::-webkit-calendar-picker-indicator,
  input[type="datetime-local"]:not([data-native])::-webkit-calendar-picker-indicator { display: none; }
}
.dp { position: fixed; z-index: 1501; width: 300px; max-width: calc(100vw - 16px); background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px 10px 8px; color: var(--text); font: 15px/1.3 var(--body); }
.dp-shade { position: fixed; inset: 0; z-index: 1500; background: rgba(7, 26, 46, .35); }
.dp-sheet { left: 0 !important; right: 0; bottom: 0; top: auto !important; width: auto; max-width: none; border-radius: 16px 16px 0 0;
  padding: 14px 14px calc(12px + env(safe-area-inset-bottom)); }
.dp-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.dp-title { font-family: var(--display); font-size: 16px; color: var(--navy); }
.dp-nav { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--navy); font-size: 20px; line-height: 1; cursor: pointer; }
.dp-nav:hover:not([disabled]) { background: var(--off); }
.dp-nav[disabled] { opacity: .35; cursor: default; }
.dp-dow, .dp-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.dp-dow span { text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); padding: 4px 0; }
.dp-day { height: 36px; border: 0; border-radius: 9px; background: transparent; color: var(--text); font: inherit; cursor: pointer; }
.dp-day:hover:not([disabled]) { background: var(--ice); }
.dp-day.dp-today { box-shadow: inset 0 0 0 1.5px var(--blue); font-weight: 700; }
.dp-day.dp-on { background: var(--blue); color: #fff; font-weight: 700; }
.dp-day[disabled] { color: #b5c0cc; cursor: default; }
.dp-day:focus-visible, .dp-nav:focus-visible { outline: 3px solid rgba(31, 122, 61, .35); outline-offset: 1px; }
.dp-sheet .dp-day { height: 46px; font-size: 17px; }
.dp-sheet .dp-nav { width: 44px; height: 44px; }
.dp-time { display: flex; align-items: center; gap: 6px; margin: 8px 0 2px; padding-top: 8px; border-top: 1px solid var(--line); }
.dp-time > span:first-child { font-weight: 600; color: var(--navy); margin-right: auto; }
.dp-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }

/* A receipt with no file (receipt-kit.js missing / attachBtn) */
.acct-afford ul { margin: 6px 0 10px; padding-left: 20px; } .acct-afford li { margin: 3px 0; }
.acct-verdict { margin: 10px 0 4px; padding: 10px 12px; border-radius: 10px; border-left: 4px solid var(--line, #d7dee8); }
.acct-verdict.v-yes { border-left-color: var(--ok, #1d7a46); } .acct-verdict.v-tight { border-left-color: #c98a00; } .acct-verdict.v-no { border-left-color: var(--err); }
.tab-count { display: inline-block; min-width: 18px; margin-left: 6px; padding: 0 5px; border-radius: 99px; background: var(--err); color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; vertical-align: middle; }
.clawd-list { display: grid; gap: 10px; margin: 0 0 14px; } .clawd-f { border-left: 4px solid var(--line, #d7dee8); padding: 12px 14px; } .clawd-f p { margin: 6px 0 8px; }
.clawd-wrong { border-left-color: var(--err); } .clawd-question { border-left-color: var(--blue); } .clawd-todo { border-left-color: #c98a00; } .clawd-unusual { border-left-color: #7a5cc0; } .clawd-idea { border-left-color: var(--ok, #1d7a46); }
.clawd-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; } .clawd-kind { font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.clawd-high { font-size: 11px; font-weight: 800; padding: 0 7px; border-radius: 99px; background: var(--err); color: #fff; }
.clawd-sum p { margin: 0 0 8px; } .clawd-old, .clawd-mem { margin: 0 0 14px; } .clawd-old summary, .clawd-mem summary { cursor: pointer; font-weight: 700; }
.clawd-notes { margin: 8px 0; padding-left: 18px; } .clawd-notes li { margin: 4px 0; } .clawd-chat { max-height: 420px; overflow-y: auto; }
.rk-review { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; vertical-align: middle; }
.rk-flag { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.5; background: #fff4e0; color: #8a5300; border: 1px solid #f5ddb0; white-space: normal; }
html[data-theme="dark"] .rk-flag { background: rgba(227, 179, 65, .14); color: #e3b341; border-color: rgba(227, 179, 65, .4); }
.er-skip { opacity: .85; }
.rk-missing { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.5; white-space: nowrap; vertical-align: middle;
  color: var(--err); border: 1px solid var(--err); background: transparent; background: color-mix(in srgb, var(--err) 12%, transparent); }
.btn.rk-attach { color: var(--err); border: 1px solid var(--err); background: transparent; }
.btn.rk-attach.er-drop { outline: 2px dashed var(--err); outline-offset: 2px; }
.rk-attach-wrap { display: inline-flex; }
/* 168: a receipt's note, edited in place */
.rk-note { margin-top: 3px; font-size: 13px; overflow-wrap: anywhere; }
.rk-note-text { white-space: pre-wrap; }
.rk-note-edit { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rk-note-edit .in { flex: 1 1 200px; min-width: 0; }

/* To do (todo.js, Nov 15 2026): a private checklist; done = crossed out + faded, under "Completed tasks" */
.todo-list { list-style: none; margin: 0; padding: 0; }
.todo-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.todo-item:last-child { border-bottom: 0; }
.todo-item > input[type="checkbox"] { width: 20px; height: 20px; margin-top: 2px; flex: none; cursor: pointer; accent-color: var(--blue); }
.todo-body { flex: 1; min-width: 0; }
.todo-t { font-weight: 600; overflow-wrap: anywhere; }
.todo-sub { font-size: .8rem; color: var(--muted); margin-top: 3px; white-space: pre-wrap; overflow-wrap: anywhere; }
.todo-due { font-size: .78rem; color: var(--muted); margin-top: 2px; }
.todo-due.late { color: var(--err); font-weight: 600; }
.todo-acts { display: flex; gap: 4px; flex: none; }
.todo-item.done { opacity: .55; }
.todo-item.done .todo-t { text-decoration: line-through; font-weight: 400; }
.todo-done { margin-top: 14px; }
.todo-done > summary { cursor: pointer; font-weight: 600; padding: 2px 0; }
.todo-add-row .f:first-child { flex: 1 1 260px; }
.todo-edit { flex: 1; }
/* crew.js (Nov 16 2026): the crew's tabs, reviews, assignments, Schedule → Training */
/* max-width: the row scrolls sideways inside itself. Without it its five tabs made every crew page wider than a phone screen (Nov 17 2026). */
.crew-tabs { flex-wrap: nowrap; overflow-x: auto; max-width: calc(100vw - 16px); margin: 0 0 14px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.crew-tabs::-webkit-scrollbar { display: none; }
.crew-tabs .tab.sub { white-space: nowrap; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.stars { color: #e8a300; font-size: 18px; letter-spacing: 1px; white-space: nowrap; }
.stars i { font-style: normal; color: #cfd6de; }
.rv-list { list-style: none; margin: 0; padding: 0; }
.rv { padding: 12px 0; border-top: 1px solid var(--line); }
.rv:first-child { border-top: 0; padding-top: 2px; }
.rv p { margin: 4px 0 0; }
.rv-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rv-add { margin-top: 12px; }
.rv-add summary { cursor: pointer; font-weight: 600; color: var(--blue); margin-bottom: 8px; }
.asg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.asg { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); text-decoration: none; background: var(--white); }
.asg:hover { border-color: var(--blue); }
.asg.is-late { border-color: var(--err); box-shadow: inset 4px 0 0 var(--err); }
.asg.is-done { opacity: .8; }
.asg-kind { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.asg-sum { font-size: 14px; color: var(--muted); }
.asg-when { font-size: 13px; font-weight: 600; margin-top: 4px; }
.asg.is-late .asg-when { color: var(--err); }
.asg-one p { margin: 0 0 10px; }
.asg-list { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 6px; }
.trn-tbl td.late, .late { color: var(--err); font-weight: 700; }
.trn-tbl th { font-size: 12px; max-width: 150px; white-space: normal; vertical-align: bottom; }
.tag.trn-live { background: #dff5e7; color: #17603b; }
.tag.trn-draft { background: #fff1cf; color: #7a5200; }
.tag.trn-retired { background: #e8ecf1; color: #4c5d72; }
/* rate.js: the customer's star page */
.rate-card { text-align: center; }
.rate-stars { display: flex; justify-content: center; gap: 6px; margin: 14px 0 4px; }
.rate-star { width: 54px; height: 54px; border: 0; background: none; font-size: 44px; line-height: 1; color: #cfd6de; cursor: pointer; padding: 0; }
.rate-star.on { color: #e8a300; }
.rate-star:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 8px; }
.rate-said { margin: 0 0 14px; font-weight: 600; min-height: 1.5em; }
.rate-shown { font-size: 34px; color: #e8a300; margin: 0 0 10px; letter-spacing: 3px; }
.rate-shown i { font-style: normal; color: #cfd6de; }
.rate-card textarea { text-align: left; margin-bottom: 12px; }
/* health.js (Nov 16 2026): Admin -> Health */
.health-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .health-head > .small { flex: 1 1 auto; }
.health-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.health-row { display: flex; align-items: flex-start; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.health-row.bad { border-color: #f1c9c6; box-shadow: inset 4px 0 0 var(--err); } .health-row.warn { box-shadow: inset 4px 0 0 #d9a13a; }
.health-main { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.health-dot { flex: 0 0 auto; width: 12px; height: 12px; border-radius: 50%; margin-top: 5px; background: #2f9e5f; }
.health-dot.warn { background: #d9a13a; } .health-dot.bad { background: var(--err); }
.chip.health-chip.ok { background: #dff5e7; color: #17603b; } .chip.health-chip.warn { background: #fff1cf; color: #7a5200; } .chip.health-chip.bad { background: #fdf0ef; color: #9b2620; }
.health-hours .f { flex: 1 1 150px; }
.health-log { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
a.health-banner { display: block; text-decoration: none; }
/* offboard.js (Nov 16 2026) */
.offb-box { max-width: 560px; display: grid; gap: 12px; } .offb-box > div { display: grid; gap: 12px; }
.offb-ticks { display: grid; gap: 8px; } .offb-line { margin: 0 0 6px; } .offb-line:last-child { margin: 0; }
.offb-last { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0; } .offb-last > span { flex: 1 1 240px; }
/* complaints.js (Nov 16 2026) */
.cp-box { max-width: 560px; display: grid; gap: 10px; } .cp-row .f { flex: 1 1 180px; }
.cp-list { display: grid; gap: 10px; }
.cp-item { display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--text); text-decoration: none; }
.cp-item:hover { border-color: var(--blue); } .cp-item.is-late { border-color: #f1c9c6; box-shadow: inset 4px 0 0 var(--err); } .cp-item.sev-high:not(.is-late) { box-shadow: inset 4px 0 0 #d9a13a; }
.cp-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .cp-sum { margin: 6px 0 4px; overflow-wrap: anywhere; } .cp-what { white-space: pre-wrap; overflow-wrap: anywhere; }
.chip.cp-open { background: #fff1cf; color: #7a5200; } .chip.cp-working { background: #e7f0fc; color: #174f95; } .chip.cp-resolved { background: #dff5e7; color: #17603b; }
.chip.cp-late, .chip.cp-high { background: #fdf0ef; color: #9b2620; }
.cp-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; } .cp-bars li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 6px; } .cp-bars li:last-child { border: 0; }
.cp-notes { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; } .cp-notes p { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.cp-mini { display: grid; gap: 6px; } .cp-mini-row { color: var(--text); text-decoration: none; overflow-wrap: anywhere; } .cp-mini-row:hover span:last-child { text-decoration: underline; }
a.cp-banner { display: block; text-decoration: none; }
/* goals.js (Nov 16 2026) */
.goal-list { display: grid; gap: 14px; } .goal-team { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.goal-top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; } .goal-num { margin-left: auto; font-weight: 700; }
.goal-bar { position: relative; height: 12px; border-radius: 99px; background: #e8ecf1; margin: 6px 0 4px; }
.goal-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: var(--blue); max-width: 100%; }
.goal-done .goal-fill { background: #2f9e5f; } .goal-behind .goal-fill { background: #d9822b; }
.goal-tick { position: absolute; top: -4px; bottom: -4px; width: 3px; margin-left: -1px; border-radius: 2px; background: var(--ink); }
.goal-line { margin: 0; color: var(--muted); } .goal-behind .goal-line { color: #8a4b00; } .goal-done .goal-line { color: #17603b; }
.goal-table-wrap { overflow-x: auto; contain: inline-size; } .goal-table th[scope=row] { text-align: left; white-space: nowrap; font-weight: 600; }
.goal-table .goal-in { min-width: 92px; } .goal-co th, .goal-co td { background: #f5f8fc; }
/* Good / Better / Best (Nov 16 2026, migration 075): the customer's option cards (quote.js) and the editor (quotes.js) */
.pq-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 0 0 18px; }
.pq-tiers[hidden] { display: none; }
.pq-tiers-lead { margin: 0 0 10px; font-weight: 600; }
.pq-tier { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; padding: 18px 14px 14px; border: 2px solid var(--line); border-radius: 14px;
  background: var(--white); color: var(--text); font: inherit; cursor: pointer; }
.pq-tier:hover:not(:disabled) { border-color: #9db9dc; } .pq-tier.on { border-color: var(--blue); box-shadow: 0 0 0 3px var(--ice); } .pq-tier:disabled { cursor: default; }
.pq-tier strong { font-size: 18px; } .pq-tier-note { font-size: 14px; color: var(--muted); } .pq-tier-price { font: 800 24px/1.2 var(--display); margin-top: 6px; }
.pq-rec { position: absolute; top: -11px; left: 12px; } .pq-tier-go { margin-top: 8px; font-weight: 700; color: var(--blue); }
.pq-approve-what { font-weight: 700; margin: 0 0 10px; }
.gbb { margin: 4px 0 14px; display: grid; gap: 10px; }
.gbb-set { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; } .gbb-opt { display: grid; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
.gbb-ticks { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 6px; }
.gbb-total { padding: 8px 0; border-bottom: 1px solid var(--line); display: grid; gap: 2px; } .gbb-total > div { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.gbb-total > div:first-child b { margin-left: auto; } .gbb-total.rec strong { color: var(--blue); }
@media print { .pq-tier:not(.on) { display: none; } .pq-tier-go { display: none; } }
/* self-booking (Nov 16 2026, migration 076): the customer's page (book.js) and the staff card (selfbook.js) */
.book-days { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 10px; max-height: 60vh; overflow-y: auto; }
.book-day { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.book-parts { display: flex; gap: 8px; }
.book-part { padding: 10px 14px; border: 2px solid var(--line); border-radius: 10px; background: var(--white); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; min-height: 44px; }
.book-part:hover:not(:disabled) { border-color: #9db9dc; } .book-part.on { border-color: var(--blue); background: var(--blue); color: #fff; } .book-part:disabled { opacity: .45; cursor: not-allowed; }
.book-when { font: 800 22px/1.3 var(--display); margin: 6px 0 12px; }
.sb-body { display: grid; gap: 10px; } .sb-custom { display: grid; gap: 10px; padding: 10px; border: 1px dashed var(--line); border-radius: 10px; } .sb-custom[hidden] { display: none; }
.sb-dows { display: flex; flex-wrap: wrap; gap: 6px 14px; } .sb-times .f { flex: 1 1 150px; } .sb-news { display: grid; gap: 8px; } a.sb-new { display: block; text-decoration: none; margin: 0; }
/* recruiting (Nov 16 2026, migration 077): the board (recruiting.js) and the public Join form (join.js) */
.rc-board { display: grid; grid-template-columns: repeat(5, minmax(180px, 1fr)); gap: 12px; overflow-x: auto; contain: inline-size; padding-bottom: 6px; }
.rc-col { background: #f5f8fc; border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: grid; gap: 8px; align-content: start; min-width: 180px; }
.rc-col h3 { margin: 0 0 2px; font-size: 15px; display: flex; justify-content: space-between; align-items: center; }
.rc-card { display: grid; gap: 2px; padding: 10px 12px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; color: var(--text); text-decoration: none; }
.rc-card:hover { border-color: var(--blue); } .rc-when { color: var(--blue); font-weight: 600; } .rc-new .rc-card { box-shadow: inset 4px 0 0 var(--blue); }
.rc-closed { margin-top: 14px; } .rc-closed summary { cursor: pointer; font-weight: 600; } .rc-closed-list { display: grid; gap: 4px; margin-top: 8px; }
.rc-box { max-width: 560px; display: grid; gap: 10px; } .rc-row .f { flex: 1 1 180px; }
.rc-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-bottom: 8px; } .rc-fact { display: flex; flex-direction: column; }
.rc-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0 0 8px; } .rc-moves { margin-bottom: 8px; } .rc-hire { display: grid; gap: 10px; }
.rc-rate { display: flex; gap: 2px; } .rc-star { border: 0; background: none; font-size: 26px; line-height: 1; color: #cfd6de; cursor: pointer; padding: 2px; } .rc-star.on { color: #e8a300; }
.chip.rc-chip.rc-new { background: #e7f0fc; color: #174f95; } .chip.rc-chip.rc-hired { background: #dff5e7; color: #17603b; } .chip.rc-chip.rc-rejected, .chip.rc-chip.rc-withdrawn { background: #e8ecf1; color: #4c5d72; }
a.rc-banner { display: block; text-decoration: none; }
.join-form { display: grid; gap: 14px; margin-top: 8px; } .join-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.join-yn { border: 0; padding: 0; margin: 0; } .join-yn legend { font-weight: 600; margin-bottom: 4px; padding: 0; } .join-yn-row { display: flex; gap: 18px; }
.join-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 800px) { .rc-board { grid-template-columns: repeat(5, minmax(220px, 78vw)); } }
/* features.js (Nov 16 2026): Admin -> Features */
.feat-sec h3 { display: flex; align-items: center; gap: 8px; } .feat-list { margin: 0; padding-left: 20px; columns: 2 320px; column-gap: 28px; } .feat-list li { break-inside: avoid; margin: 0 0 4px; }
.feat-sub { margin: 0 0 14px; } .feat-sub .chip { cursor: pointer; font: inherit; }
.cl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; } .cl-list li { display: flex; gap: 8px; align-items: baseline; font-size: 14px; }
.cl-time { flex: 0 0 66px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.cl-tag { flex: 0 0 auto; min-width: 62px; text-align: center; padding: 0 7px; border: 1px solid currentColor; border-radius: 99px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.cl-new { color: var(--ok, #1d7a46); } .cl-fix { color: var(--blue); } .cl-changed { color: #9a6700; } .cl-removed { color: var(--err); }
html[data-theme="dark"] .cl-changed { color: #e3b341; }
.feat-total { text-align: center; font-weight: 700; margin: 18px 0 4px; } .feat-cost { text-align: center; font-size: 12px; color: var(--muted); max-width: 720px; margin: 0 auto 24px; }

/* Stats areas as tabs (Audit #2, F-08): one area on screen at a time; a hidden area takes no room. */
.stats-tabs { margin: 0 0 12px; }
.stats-sec[hidden] { display: none !important; }

/* "Update ready" (Audit #2, D-02): a small bar at the bottom while a newer version is live; never reloads by itself. */
.upd-bar { position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 90; display: flex; align-items: center; gap: 10px;
  background: var(--surface, #fff); color: var(--text, #141a21); border: 1px solid var(--border-strong, #c9d0d8);   /* theme surface: right in light AND dark (it was --ink, which turns light in dark mode) */
  padding: 8px 10px 8px 14px; border-radius: 12px; font: 600 14px/1.3 var(--body); box-shadow: 0 6px 24px rgba(0, 0, 0, .25); max-width: calc(100vw - 24px); }
.upd-bar .upd-later { background: none; border: 0; color: var(--text-2, #4a5562); font: inherit; font-weight: 500; cursor: pointer; padding: 6px 8px; min-height: 40px; }
.upd-bar .upd-later:hover, .upd-bar .upd-later:focus-visible { color: var(--text, #141a21); text-decoration: underline; }
body:has(.upd-bar) .toast-plain { bottom: calc(76px + env(safe-area-inset-bottom)); }
.upd-bar { width: max-content; }
.upd-bar > span { flex: 1 1 auto; min-width: 0; }
@media (max-width: 560px) { .upd-bar { left: 12px; right: 12px; transform: none; width: auto; max-width: none; } }
.upd-bar .btn { min-height: 40px; flex: none; }

/* Audit #2 (F-01): the tab row over a page of a merged menu item; the Receipt button at the top of every page */
.merge-tabs { margin: 0 0 12px; width: fit-content; max-width: 100%; }
.merge-tabs[hidden] { display: none; }
.merge-tabs .tab.sub { text-decoration: none; display: inline-block; }
.nav-kid { display: contents; }
.snap-btn { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; white-space: nowrap; }
.snap-btn .icn, .snap-btn .icn svg { width: 18px; height: 18px; display: inline-block; }
.mobar .snap-btn { margin-left: auto; min-height: 40px; }
@media (max-width: 380px) { .mobar .snap-txt { display: none; } }

/* Audit #2 (F-10): the Leaderboard period picker */
.lb-pick { display: inline-flex; align-items: center; gap: 8px; }
.lb-pick select { min-height: 36px; }

/* Audit #2 (F-09): Admin -> Connections, the row of one-time set-ups */
.admin-conn { margin: 8px 0 12px; width: fit-content; max-width: 100%; }

/* Audit #2 (F-09): Deposit -> Schedule -> Invoice -> Paid on a sold quote */
.q-steps { display: flex; list-style: none; margin: 4px 0 14px; padding: 0; }
.q-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; position: relative; font-size: 13px; color: var(--muted); text-align: center; min-width: 0; }
.q-step + .q-step::before { content: ""; position: absolute; top: 11px; right: 50%; width: 100%; height: 2px; background: var(--line); }
.q-step.done + .q-step::before { background: var(--ok); }
.q-dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); background: var(--white); display: grid; place-items: center; font-size: 13px; font-weight: 700; position: relative; z-index: 1; }
.q-step.done { color: var(--navy); }
.q-step.done .q-dot { background: var(--ok); border-color: var(--ok); color: var(--white); }
.q-step.now { color: var(--navy); font-weight: 600; }
.q-step.now .q-dot { border-color: var(--navy); }
.q-step small { font-weight: 400; color: var(--muted); font-size: 12px; }

/* Audit #2 (F-02): Accountant groups + the one "needs attention" line */
.acct-nav { display: grid; gap: 6px; }
.acct-groups .tab.sub { font-weight: 600; text-decoration: none; }
.acct-attn { margin: 0 0 12px; border: 1px solid var(--line); border-radius: 10px; padding: 0; }
.acct-attn > summary { cursor: pointer; padding: 10px 14px; font-weight: 600; min-height: 40px; box-sizing: border-box; }
.acct-attn.warn > summary { color: #8a5a00; }
.acct-attn.bad > summary { color: var(--err); }
.acct-attn[open] > summary { border-bottom: 1px solid var(--line); }
.acct-attn .acct-alerts { padding: 10px; }
html[data-theme="dark"] .acct-attn.warn > summary { color: #f5d39c; }
html[data-theme="dark"] .acct-attn.bad > summary { color: #ffb8b0; }

/* Audit #2 (F-03): lists of 25, then "Show 25 more" (a class, so phone card rules cannot show a hidden row) */
.more-hid { display: none !important; }
.more-row > td, div.more-row { text-align: center; padding: 10px 0; }
.list-more { min-height: 40px; }

/* Audit #2 (F-09): the CRA list on Snap a receipt (acct.css is not loaded there) */
.snap-itc { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 3px; font-size: 14px; }
.snap-itc .ok { color: var(--ok); }
.snap-itc-box h4 { margin: 10px 0 2px; }

/* 145 (REA): doorstep agreement + finger signature on the quote page (quote.js) */
.pub-brand { font: 800 22px/44px var(--display); color: var(--navy); letter-spacing: .01em; }
.pq-agree-wrap { margin: 0 0 14px; }
.pq-agree-wrap h3 { font-size: 15px; margin: 0 0 6px; color: var(--navy); }
.pq-agreement { max-height: 320px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 12px 14px; font-size: 14px; line-height: 1.5; color: var(--text); }
.pq-agreement section + section { margin-top: 10px; }
.pq-agreement h4 { margin: 0 0 2px; font-size: 14px; color: var(--navy); }
.pq-agreement p { margin: 0 0 6px; }
.pq-agreement .pq-cpa { border: 2px solid var(--navy); border-radius: 8px; padding: 10px 12px; font-size: 16px; background: #f6faff; }
.pq-agreement .pq-cpa h3 { margin: 0 0 6px; font-size: 16px; color: var(--navy); }
.pq-sig { border: 1px dashed var(--muted); border-radius: 10px; background: #fff; }
.pq-sig-pad { display: block; width: 100%; height: 170px; touch-action: none; cursor: crosshair; border-radius: 10px 10px 0 0; }
.pq-sig-pad:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.pq-sig-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding: 4px 10px; }
.pq-signed-terms { margin: 16px 0 0; }
.pq-signed-terms summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.note-box p { margin: 0 0 4px; }
body.pq-present .pub-main { max-width: 900px; font-size: 18px; }
body.pq-present .pq-tier { min-height: 150px; }
body.pq-present .pq-sig-pad { height: 230px; }
body.pq-present .pq-approve .btn[type="submit"] { font-size: 19px; padding: 14px 26px; }
.q-agree-warn { color: var(--err); font-weight: 600; }

/* 146: the rep's card page (card.js) + Settings → My card + the full-screen QR (card-setup.js) */
.card-btn { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.card-btn .icn, .card-btn .icn svg { width: 18px; height: 18px; display: inline-block; }
.mobar .card-btn:not([hidden]) { margin-left: auto; min-height: 40px; }
.mobar .card-btn:not([hidden]) + .snap-btn { margin-left: 4px; }
.qr-full { position: fixed; inset: 0; z-index: 9999; background: #fff; color: #0b1b2b; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.qr-full .qr-canvas { width: min(86vw, 70vh, 560px); height: auto; image-rendering: pixelated; }
.qr-full .qr-say { font: 700 20px/1.2 var(--display); margin: 0; color: #17602f; }
.qr-full .qr-name { font: 700 18px/1.2 var(--display); margin: 4px 0 0; }
.qr-full .qr-url { margin: 0 0 8px; color: #44556a; font-size: 15px; word-break: break-all; text-align: center; }
.card-live .acts { margin: 8px 0; }
.rc-card { display: grid; gap: 14px; }
.rc-who { display: flex; gap: 14px; align-items: center; }
.rc-who h1 { margin: 0; font-size: 24px; }
.rc-photo { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; flex: none; background: #e7eef6; }
.rc-initials { display: inline-flex; align-items: center; justify-content: center; font: 800 36px/1 var(--display); color: var(--navy); }
.rc-title { margin: 2px 0 0; color: var(--muted); }
.rc-stars { margin: 4px 0 0; font-size: 14px; }
.rc-stars b { color: #c98a00; letter-spacing: 1px; }
.rc-bio { margin: 0; font-size: 16px; }
.rc-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rc-acts .btn { min-height: 48px; justify-content: center; text-align: center; }
.rc-acts .rc-quote { grid-column: 1 / -1; }
.rc-num { margin: -6px 0 0; text-align: center; }
.rc-sec h2 { font-size: 16px; margin: 0 0 4px; color: var(--navy); }
.rc-sec p { margin: 0; }
@media (max-width: 360px) { .rc-who { flex-direction: column; text-align: center; } }

/* 147: where people clocked in / out (Timesheets → Where, crm/clock-geo.js) */
.clock-wheres { display: grid; gap: 2px; font-size: 13px; min-width: 170px; }
.clock-where { color: var(--text); text-decoration: none; }
a.clock-where:hover { text-decoration: underline; }
.clock-where.far { color: #a4161a; font-weight: 700; }
.clock-where.none { color: var(--muted); }

/* 148: the offline job card (crm/job-offline.js) */
.off-pill { margin: 0 0 12px; }
.off-shell { min-height: 100vh; background: var(--bg, #f6f8fb); }
.off-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--line); }
.off-main { max-width: 720px; margin: 0 auto; padding: 12px 16px 40px; }


/* 149: video lessons in Training (crm/training.js, crew.js) */
.trn-player { margin: 10px 0 14px; }
.trn-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; overflow: hidden; }
.trn-video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.trn-watch { height: 6px; background: var(--line); border-radius: 3px; margin-top: 8px; overflow: hidden; }
.trn-watch > i { display: block; height: 100%; width: 0; background: var(--blue); transition: width .3s; }
.trn-watch-say { margin: 4px 0 0; }
.trn-steps { padding-left: 22px; }
.trn-steps li { margin: 4px 0; }
.trn-quiz { display: grid; gap: 12px; margin: 8px 0 12px; }
.trn-q { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 0; }
.trn-q legend { font-weight: 700; padding: 0 4px; }
.trn-opt { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0; }
.trn-edit-video { border: 1px dashed var(--line); border-radius: 10px; padding: 10px; margin: 8px 0; }
.trn-rec .acts { flex-wrap: wrap; }
.trn-rec-view { width: 100%; max-height: 320px; background: #000; border-radius: 8px; margin: 8px 0; }


/* 150: Recruiting → Sources (crm/recruit-sources.js) */
.rs-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 10px 0; }
.rs-tile { display: flex; flex-direction: column; gap: 2px; padding: 12px; }
.rs-tile strong { font-size: 24px; }
.rs-list { padding: 0; }
.rs-row { display: grid; grid-template-columns: minmax(180px, 1.3fr) 2fr auto; gap: 12px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); }
.rs-row:first-child { border-top: 0; }
.rs-off { opacity: .6; }
.rs-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rs-url { color: var(--blue); overflow-wrap: anywhere; }
.rs-nums { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; text-align: center; }
.rs-nums b { display: block; font-size: 16px; }
.rs-nums i { display: block; font-style: normal; font-size: 11px; color: var(--muted); }
.rs-acts { flex-wrap: wrap; justify-content: flex-end; }
.rs-qr-box { text-align: center; }
.rs-qr-box .qr-canvas { width: min(320px, 80vw); height: auto; }
.rs-poster-box { max-width: 720px; width: 96vw; max-height: 92vh; overflow: auto; }
.rs-poster { background: #fff; color: #0b1b2b; border: 1px solid var(--line); border-radius: 8px; padding: 28px 24px; text-align: center; margin: 10px 0; }
.rs-p-brand { font-weight: 800; letter-spacing: .18em; color: #1d4ed8; font-size: 14px; }
.rs-p-head { font-size: 40px; margin: 8px 0 10px; color: #0b1b2b; }
.rs-p-line { font-size: 16px; margin: 4px 0; }
.rs-p-qr .qr-canvas { width: min(280px, 70vw); height: auto; margin: 14px auto 6px; display: block; }
.rs-p-url { font-weight: 700; font-size: 15px; }
.rs-print { display: none; }
@media print {
  html.rs-printing body > *:not(.rs-print) { display: none !important; }
  html.rs-printing .rs-print { display: block; }
  html.rs-printing .rs-poster { border: 0; padding: 0.6in 0.4in; }
  html.rs-printing .rs-p-head { font-size: 72pt; }
  html.rs-printing .rs-p-line { font-size: 20pt; }
  html.rs-printing .rs-p-brand { font-size: 18pt; }
  html.rs-printing .rs-p-qr .qr-canvas { width: 4.2in; }
  html.rs-printing .rs-p-url { font-size: 18pt; }
}
@media (max-width: 760px) {
  .rs-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rs-row { grid-template-columns: 1fr; }
  .rs-nums { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rs-acts { justify-content: flex-start; }
}


/* 151: the customer's own page (crm/my/ + hub.js) and its staff card (hub-staff.js) */
.hub-main { max-width: 720px; }
.hub-sec h2 { font-size: 20px; margin: 0 0 10px; }
.hub-sec h3 { font-size: 15px; margin: 14px 0 6px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.hub-list { list-style: none; margin: 0; padding: 0; }
.hub-item { border-top: 1px solid var(--line); padding: 12px 0; }
.hub-item:first-child { border-top: 0; }
.hub-row { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.hub-amt { text-align: right; }
.hub-owing { color: #b45309; font-weight: 700; }
.hub-paid { color: #15803d; }
.hub-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.hub-ask { display: grid; gap: 8px; margin-top: 8px; }
.hub-crew { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }
.hub-person { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.hub-person img, .hub-av { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.hub-av { display: inline-grid; place-items: center; background: var(--line); font-weight: 700; }
.hub-pays { margin: 8px 0 0; padding-left: 18px; font-size: 14px; }
.hub-pay { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 8px; padding: 8px 10px; margin: 8px 0 0; }
.hub-ref { font-size: 18px; overflow-wrap: anywhere; }
.hub-det { margin-top: 10px; overflow-x: auto; }
.hub-doc h1 { font-size: 22px; margin: 10px 0; }
.hub-co { font-size: 14px; }
.hub-tbl { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 8px; }
.hub-tbl th, .hub-tbl td { border-bottom: 1px solid var(--line); padding: 6px 4px; text-align: left; }
.hub-tbl td:not(:first-child), .hub-tbl th:not(:first-child) { text-align: right; white-space: nowrap; }
.hub-tbl tfoot td:first-child, .hub-tbl tfoot th:first-child { text-align: right; }
.hub-print { display: none; }
@media print {
  html.hub-printing body > *:not(.hub-print) { display: none !important; }
  html.hub-printing .hub-print { display: block; color: #000; padding: 0.4in; }
}
.hub-card .hub-url a { overflow-wrap: anywhere; }
.hub-banner { display: block; width: 100%; text-align: left; cursor: pointer; }

/* Sell a plan: the door screen (plans-door.js, service plans piece B, Nov 24 2026) */
.sell-panes { font-size: 1.4rem; max-width: 10rem; }
.sell-box { display: grid; gap: 10px; margin-top: 12px; }
.sell-plan { display: grid; gap: 2px; text-align: left; width: 100%; padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); color: var(--text); cursor: pointer; font: inherit; }
.sell-plan.on { border-color: var(--primary); box-shadow: inset 0 0 0 2px var(--primary); }
.sell-plan .sell-name { font-weight: 600; }
.sell-plan .sell-price { font-size: 1.5rem; font-weight: 700; }
.sell-plan.big .sell-price { font-size: 2.2rem; }
.sell-plan .sell-price small { font-size: .9rem; font-weight: 400; color: var(--text-2); }
.sell-plan .sell-month { color: var(--text-2); }
.sell-others { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.sell-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sell-extras { margin: 0; padding-left: 18px; }
.sell-sum { font-weight: 600; margin: 0; }
.sell-add { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.sell-add .in { width: 6rem; }
.sell-reasons { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.sell-go .btn { min-width: 9rem; }
.sell-dates { margin: 6px 0 0; padding-left: 20px; }
/* a plan on the customer quote page (quote.js, migration 164) */
.pq-plan { border: 1px solid var(--border-strong, #c9d0d8); border-radius: var(--radius, 12px); padding: 12px 14px; margin: 12px 0; }
.pq-plan h2 { margin: 0 0 4px; }
.pq-plan-price { font-size: 1.15rem; margin: 0 0 4px; }
.pq-visits { margin: 6px 0; padding-left: 20px; }
