/* ═══ PROVIDER FILTERS (canvas "Account, Settings, Admin and Filters",
   boards F1 + F2, Ren 2026-10-31). Sheet content + skill picker from
   provfilter.js. Colours are the --ag-* tokens (agreements.css), so dark
   mode follows. ═══ */
#phFilterSheet.pf-on .ph-fs-panel { background: var(--ag-card); max-height: 90vh; }
#phFilterSheet.pf-on .ph-fs-head { border-bottom: 0; padding: 6px 12px 4px 16px; }
#phFilterSheet.pf-on .ph-fs-title { font-size: 18px; color: var(--ag-ink); }
#phFilterSheet.pf-on .ph-fs-x { background: var(--ag-soft); color: var(--ag-ink); box-shadow: none; width: 40px; height: 40px; border-radius: 12px; }
#phFilterSheet.pf-on .ph-fs-body { padding: 4px 16px 14px; }
#phFilterSheet.pf-on .ph-fs-foot { background: var(--ag-card); border-top: 1px solid var(--ag-line); }
#phFilterSheet.pf-on .ph-fs-apply { background: var(--ag-green); border-radius: 14px; font-size: 16px; padding: 15px; }
#phFilterSheet .pf-reset { height: 40px; padding: 0 10px; border: 0; background: none; color: var(--ag-green); font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }

.pf { display: flex; flex-direction: column; gap: 18px; color: var(--ag-ink); font-family: inherit; }
.pf button { font-family: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pf b { font-weight: 800; }
.pf-grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pf-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pf-sec { display: flex; flex-direction: column; gap: 9px; }
.pf-sec > b, .pf-row > b { font-size: 14px; }
.pf-link { border: 0; background: none; padding: 6px 0; color: var(--ag-green); font-size: 13px; font-weight: 700; }

/* available */
.pf-avail { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 18px; background: var(--ag-green-bg); cursor: pointer; }
.pf-avail b { font-size: 15px; color: var(--ag-green-ink); }
.pf-avail small { font-size: 12px; color: var(--ag-green-ink); }
.pf-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--ag-green); box-shadow: 0 0 0 4px rgba(46,168,74,.25); flex-shrink: 0; }
.pf-avail.off { background: var(--ag-soft); }
.pf-avail.off b, .pf-avail.off small { color: var(--ag-label); }
.pf-avail.off .pf-dot { background: #9aaa9e; box-shadow: 0 0 0 4px rgba(154,170,158,.25); }
.pf-sw { appearance: none; -webkit-appearance: none; width: 48px; height: 28px; border-radius: 999px; background: var(--ag-track); position: relative; flex-shrink: 0; margin: 0; cursor: pointer; transition: background .2s; }
.pf-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.pf-sw:checked { background: var(--ag-green); }
.pf-sw:checked::after { transform: translateX(20px); }

/* skill chips (pastel tones also used by the picker tags) */
.pf-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.pf-chip { height: 38px; padding: 0 13px; border-radius: 999px; border: 1.5px solid var(--ag-line); background: var(--ag-card); color: var(--ag-text); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }
.pf-chip.on { font-weight: 800; }
.pf-t0.on, .pfk-tag.pf-t0 { background: var(--ag-blue-bg); color: var(--ag-blue-ink); border-color: var(--ag-blue-ink); }
.pf-t1.on, .pfk-tag.pf-t1 { background: var(--ag-orange-bg); color: var(--ag-orange-ink); border-color: var(--ag-orange-ink); }
.pf-t2.on, .pfk-tag.pf-t2 { background: var(--ag-teal-bg); color: var(--ag-teal-ink); border-color: var(--ag-teal-ink); }
.pf-t3.on, .pfk-tag.pf-t3 { background: var(--ag-purple-bg); color: var(--ag-purple); border-color: var(--ag-purple); }
.pf-all.on { background: var(--ag-green-bg); color: var(--ag-green-ink); border-color: var(--ag-green); }
.pf-empty { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: var(--ag-soft); font-size: 13px; line-height: 1.4; color: var(--ag-text); }
.pf-empty span { flex: 1; }
.pf-btn-soft { height: 38px; padding: 0 12px; border: 0; border-radius: 10px; background: var(--ag-green-bg); color: var(--ag-green-ink); font-size: 13px; font-weight: 800; white-space: nowrap; }

/* distance */
.pf-km { font-size: 20px; font-weight: 800; color: var(--ag-green-ink); }
.pf-range { width: 100%; margin: 0; accent-color: var(--ag-green); height: 28px; }
.pf-qs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.pf-q { height: 38px; border: 1.5px solid transparent; border-radius: 10px; background: var(--ag-soft); color: var(--ag-text); font-size: 13px; font-weight: 700; padding: 0; }
.pf-q.on { background: var(--ag-green-bg); border-color: var(--ag-green); color: var(--ag-green-ink); font-weight: 800; }
.pf-hint { font-size: 12px; color: var(--ag-label); }

/* measured from (the real #provLocationInput sits in .pf-loc-slot) */
.pf-loc { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 12px; border: 1.5px solid var(--ag-line); border-radius: 14px; color: var(--ag-teal-ink); }
.pf-loc-slot { flex: 1; min-width: 0; display: flex; }
.pf-loc-slot input { width: 100%; min-width: 0; border: 0; outline: 0; background: none; padding: 8px 0; font-family: inherit; font-size: 14px; font-weight: 700; color: var(--ag-ink); }
.pf-loc-slot input::placeholder { color: var(--ag-label); font-weight: 500; }
.pf-gps { height: 36px; padding: 0 10px; border: 0; border-radius: 10px; background: var(--ag-teal-bg); color: var(--ag-teal-ink); font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; flex-shrink: 0; }
.pf-gps:disabled { opacity: .7; }

/* stats */
.pf-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pf-st { border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.pf-st b { font-size: 18px; }
.pf-st span { font-size: 12px; font-weight: 600; }
.pf-st-p { background: var(--ag-purple-bg); color: var(--ag-purple); }
.pf-st-b { background: var(--ag-blue-bg); color: var(--ag-blue-ink); }
.pf-st-g { background: var(--ag-green-bg); color: var(--ag-green-ink); }
body.dark-mode .pf-st-p { color: #c7b4f5; }
body.dark-mode .pf-t3.on, body.dark-mode .pfk-tag.pf-t3 { color: #c7b4f5; border-color: #c7b4f5; }

/* bar above the task list while a skill filter is on */
.pf-bar { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; padding: 8px 8px 8px 14px; border-radius: 14px; background: var(--ag-green-bg); color: var(--ag-green-ink); font-size: 13px; }
.pf-bar span { flex: 1; min-width: 0; }
.pf-bar button { height: 34px; padding: 0 12px; border: 0; border-radius: 10px; background: var(--ag-card); color: var(--ag-green-ink); font-family: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }

/* ═══ skill picker (full screen, above the sheet) ═══ */
.pfk { position: fixed; inset: 0; z-index: 10046; display: flex; justify-content: center; background: var(--ag-page); color: var(--ag-ink); font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.pfk-in { width: 100%; max-width: 560px; height: 100%; display: flex; flex-direction: column; background: var(--ag-page); }
.pfk button { font-family: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pfk-top { height: 60px; padding: env(safe-area-inset-top, 0px) 12px 0; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.pfk-top b { flex: 1; font-size: 18px; font-weight: 800; }
.pfk-back { width: 40px; height: 40px; border-radius: 12px; border: 0; background: var(--ag-card); color: var(--ag-ink); display: flex; align-items: center; justify-content: center; padding: 0; }
.pfk-cnt { height: 28px; padding: 0 10px; border-radius: 999px; background: var(--ag-green-bg); color: var(--ag-green-ink); font-size: 12px; font-weight: 800; display: flex; align-items: center; }
.pfk-body { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.pfk-body > * { flex-shrink: 0; }
.pfk-search { height: 46px; border-radius: 14px; background: var(--ag-card); display: flex; align-items: center; gap: 10px; padding: 0 14px; color: var(--ag-label); }
.pfk-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-family: inherit; font-size: 16px; color: var(--ag-ink); }
.pfk-sel { display: flex; flex-wrap: wrap; gap: 8px; }
.pfk-tag { height: 34px; padding: 0 4px 0 12px; border-radius: 999px; border: 0; font-size: 13px; font-weight: 800; display: inline-flex; align-items: center; gap: 2px; }
.pfk-tag button { width: 28px; height: 28px; border: 0; border-radius: 50%; background: none; color: inherit; display: flex; align-items: center; justify-content: center; padding: 0; }
.pfk-none { margin: 0; padding: 0 4px; font-size: 13px; line-height: 1.45; color: var(--ag-label); }
.pfk-cats { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 0 14px; }
.pfk-cats::-webkit-scrollbar { display: none; }
.pfk-cat { height: 36px; padding: 0 13px; border: 1.5px solid transparent; border-radius: 999px; background: var(--ag-card); color: var(--ag-text); font-size: 13px; font-weight: 700; white-space: nowrap; flex-shrink: 0; }
.pfk-cat.on { background: var(--ag-green-bg); border-color: var(--ag-green); color: var(--ag-green-ink); font-weight: 800; }
.pfk-list { background: var(--ag-card); border-radius: 20px; padding: 2px 14px; display: flex; flex-direction: column; }
.pfk-list .pfk-none { padding: 14px 0; }
.pfk-item { display: flex; align-items: center; gap: 12px; min-height: 48px; border-bottom: 1px solid var(--ag-soft); cursor: pointer; }
.pfk-item:last-child { border-bottom: 0; }
.pfk-item span { flex: 1; font-size: 15px; font-weight: 600; }
.pfk-item span.on { font-weight: 800; }
.pfk-item input { width: 22px; height: 22px; accent-color: var(--ag-green); margin: 0; }
.pfk-foot { padding: 12px 14px calc(16px + env(safe-area-inset-bottom, 0px)); flex-shrink: 0; background: var(--ag-card); border-radius: 22px 22px 0 0; }
.pfk-save { width: 100%; height: 52px; border: 0; border-radius: 14px; background: var(--ag-green); color: #fff; font-size: 16px; font-weight: 800; }
.pfk-save:disabled { background: var(--ag-track); color: var(--ag-label); cursor: default; }
@media (min-width: 901px) {
  .pfk { background: rgba(10, 20, 14, .5); align-items: center; }
  .pfk-in { height: min(860px, 92vh); border-radius: 24px; overflow: hidden; box-shadow: 0 24px 70px rgba(0,0,0,.35); }
}

/* ── Your starting rate: note on Provider home + bottom sheet
      (ratesheet.js, All Providers redesign board 5, Ren 2026-11-03) ── */
#rsNote { display: flex; align-items: center; gap: 10px; margin: 14px 2px 0; padding: 12px 14px; border-radius: 16px; background: #fff4db; color: #4a3500; font-size: 13px; line-height: 1.45; }
#rsNote svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: #8a5a00; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#rsNote span { flex: 1; }
#rsNote button { flex-shrink: 0; min-height: 40px; padding: 0 14px; border: 0; border-radius: 20px; background: #1f8a3a; color: #fff; font-family: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
#rsNote.rs-set { background: var(--ag-card, #fff); color: var(--ag-text, #2f3b32); border: 1px solid var(--ag-line, #e3e9e5); padding: 6px 6px 6px 14px; }
#rsNote.rs-set b { color: var(--ag-ink, #1a2b20); }
#rsNote.rs-set button { background: transparent; color: var(--ag-green-ink, #1f6b30); }
body.dark-mode #rsNote:not(.rs-set) { background: rgba(229,160,0,.16); color: #f3dca6; }
body.dark-mode #rsNote:not(.rs-set) svg { stroke: #f0b84a; }
@media (min-width: 901px) { #rsNote { display: none; } }

.rs-wrap { position: fixed; inset: 0; z-index: 10050; }
.rs-wrap[hidden] { display: none; }
.rs-dim { position: absolute; inset: 0; background: rgba(10,20,14,.45); opacity: 0; transition: opacity .2s; }
.rs-sheet { position: absolute; left: 0; right: 0; bottom: 0; max-width: 520px; margin: 0 auto; max-height: 92vh; overflow-y: auto; box-sizing: border-box;
  background: var(--ag-card, #fff); color: var(--ag-ink, #1a2b20); border-radius: 24px 24px 0 0; padding: 10px 18px calc(20px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 12px; transform: translateY(100%); transition: transform .22s ease; font-family: inherit; }
.rs-wrap.rs-open .rs-dim { opacity: 1; }
.rs-wrap.rs-open .rs-sheet { transform: none; }
body.rs-lock { overflow: hidden; }
.rs-grab { width: 40px; height: 4px; border-radius: 2px; background: var(--ag-line, #d3dbd5); align-self: center; }
.rs-head { display: flex; align-items: center; justify-content: space-between; }
.rs-head h2 { margin: 0; font-size: 21px; font-weight: 800; }
.rs-x { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--ag-soft, #f1f4f2); color: inherit; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.rs-x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.rs-sub { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ag-text, #3c4a40); }
.rs-lbl { font-size: 13px; font-weight: 700; color: var(--ag-muted, #3b4a40); margin-bottom: -6px; }
.rs-cap { font-size: 11px; letter-spacing: .6px; text-transform: uppercase; color: var(--ag-label, #4b5d52); }
.rs-amt { display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 14px; border: 1.5px solid var(--ag-green, #1f8a3a); border-radius: 14px; }
.rs-amt span { font-size: 18px; font-weight: 800; }
.rs-amt input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: inherit; font-family: inherit; font-size: 18px; font-weight: 800; }
.rs-seg { display: flex; gap: 8px; }
.rs-seg button { flex: 1; height: 44px; border-radius: 12px; border: 1px solid var(--ag-line, #dde5df); background: var(--ag-card, #fff); color: inherit; font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.rs-seg button[aria-pressed="true"] { background: var(--ag-green-bg, #e5f5e8); border-color: var(--ag-green, #1f8a3a); color: var(--ag-green-ink, #1f6b30); }
.rs-prev { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--ag-line, #e3e9e5); border-radius: 16px; }
.rs-pav { width: 40px; height: 40px; border-radius: 50%; background: var(--ag-blue-bg, #e6f0fc); color: var(--ag-blue-ink, #174f96); font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rs-pmid { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rs-pmid b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-pmid small, .rs-pr small { font-size: 12px; color: var(--ag-label, #4b5d52); }
.rs-pr { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.rs-pr b { font-size: 15px; font-weight: 800; }
.rs-save { height: 50px; border: 0; border-radius: 25px; background: var(--ag-green, #1f8a3a); color: #fff; font-family: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
.rs-save:disabled { opacity: .6; }
.rs-keep { height: 44px; border: 0; background: transparent; color: var(--ag-green-ink, #1f6b30); font-family: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
.rs-amt input::-webkit-outer-spin-button, .rs-amt input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.rs-amt input[type=number] { -moz-appearance: textfield; }
