/* Find a Pro (static/find-a-pro.mjs): the tool's own tokens, flat, one filled button. A centred card on wide
   screens, a sheet from the bottom on phones. */
.fapDialog{width:min(460px,calc(100vw - 32px));max-height:min(760px,calc(100vh - 48px));padding:0;border:1px solid var(--pt-border,#c8d7e3);border-radius:var(--pt-radius-card,14px);background:var(--pt-paper,#f7fafc);color:var(--pt-ink,#19384f);font:400 15px/1.45 var(--pt-font,system-ui,sans-serif);overflow:auto;overscroll-behavior:contain}
.fapDialog::backdrop{background:var(--pt-backdrop,rgba(25,56,79,.48))}
.fapHead{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px 12px;background:var(--pt-paper,#f7fafc);border-bottom:1px solid var(--pt-border,#c8d7e3)}
.fapHead h2{margin:0;font-size:19px;font-weight:650;letter-spacing:-.01em}
.fapDialog.pt-controls button.fapClose,.fapClose{width:36px;height:36px;min-height:0;padding:0;border:0;border-radius:8px;background:transparent;color:var(--pt-muted,#506779);font-size:24px;line-height:1;cursor:pointer}
.fapDialog.pt-controls button.fapClose:hover{background:var(--pt-hover,#e2ebf3);color:var(--pt-ink,#19384f)}
.fapForm{display:flex;flex-direction:column;gap:14px;padding:16px 20px 20px}
.fapIntro{margin:0;color:var(--pt-muted,#506779)}
.fapField{display:flex;flex-direction:column;gap:5px;min-width:0}
.fapField label,.fapLabel{font-weight:600;font-size:14px}
.fapField input:not([type=radio]),.fapField select,.fapField textarea{width:100%;box-sizing:border-box;min-height:44px;padding:10px 12px;border:1px solid var(--pt-border,#c8d7e3);border-radius:var(--pt-radius-control,8px);background:#fff;color:var(--pt-ink,#19384f);font:inherit;font-size:16px}
.fapField textarea{min-height:84px;resize:vertical}
.fapField input:focus,.fapField select:focus,.fapField textarea:focus{outline:2px solid var(--pt-accent,#326b98);outline-offset:1px;border-color:var(--pt-accent,#326b98)}
.fapField.bad input,.fapField.bad select{border-color:var(--pt-danger,#a8323c)}
.fapRow{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.fapHint{margin:0;font-size:13px;color:var(--pt-muted,#506779)}
.fapEither{margin-top:-8px}
.fapChips{display:flex;flex-wrap:wrap;gap:8px}
.fapChips input{position:absolute;opacity:0;pointer-events:none}
.fapChips label{display:inline-flex;align-items:center;min-height:40px;padding:0 14px;border:1px solid var(--pt-border,#c8d7e3);border-radius:999px;background:#fff;font-weight:500;font-size:14px;cursor:pointer}
.fapChips input:checked+label{background:var(--pt-selected,#e0ecf7);border-color:var(--pt-selected-border,#779dbb);color:var(--pt-ink,#19384f);font-weight:600}
.fapChips input:focus-visible+label{outline:2px solid var(--pt-accent,#326b98);outline-offset:2px}
.fapAttach{display:grid;grid-template-columns:auto 64px 1fr;align-items:center;gap:12px;padding:12px;border:1px solid var(--pt-border,#c8d7e3);border-radius:var(--pt-radius-control,8px);background:#fff;cursor:pointer}
.fapAttach[hidden]{display:none}
.fapAttach input{width:20px;height:20px;margin:0;accent-color:var(--pt-accent,#326b98)}
.fapThumb{width:64px;height:48px;border-radius:6px;border:1px solid var(--pt-border,#c8d7e3);background:var(--pt-canvas,#d4e2ed) center/cover no-repeat}
.fapThumb[hidden]{display:none}
.fapAttach:has(.fapThumb[hidden]){grid-template-columns:auto 1fr}
.fapAttachText{display:flex;flex-direction:column;min-width:0}
.fapAttachSum{font-size:13px;color:var(--pt-muted,#506779);overflow-wrap:anywhere}
.fapAttachNote{margin-top:-8px}
.fapHp{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
.fapError{margin:0;padding:10px 12px;border-left:3px solid var(--pt-danger,#a8323c);background:#fff;color:var(--pt-danger,#a8323c);font-weight:500}
.fapError[hidden]{display:none}
.fapDialog.pt-controls button.fapSubmit,.fapSubmit{width:100%;min-height:48px;border:1px solid var(--pt-action,#326b98);border-radius:var(--pt-radius-control,8px);background:var(--pt-action,#326b98);color:var(--pt-on-accent,#fff);font:600 16px var(--pt-font,system-ui,sans-serif);cursor:pointer}
.fapDialog.pt-controls button.fapSubmit:hover{background:var(--pt-action-hover,#244f73);border-color:var(--pt-action-hover,#244f73)}
.fapDialog.pt-controls button.fapSubmit:disabled{opacity:.65;cursor:default}
.fapFine{margin:-4px 0 0;font-size:12px;color:var(--pt-muted,#506779);text-align:center}
.fapDone{display:flex;flex-direction:column;gap:10px;padding:8px 0}
.fapDone h3{margin:0;font-size:18px}
.fapDone p{margin:0}
.fapDone .fapSubmit{margin-top:8px}

/* the button beside the measurements, and the rail item */
.workspaceActions .fapStrip{background:var(--pt-paper,#fff);color:var(--pt-action,#326b98);border:1px solid var(--pt-border,#c8d7e3)}
.workspaceActions .fapStrip:hover{background:var(--pt-hover,#e2ebf3);color:var(--pt-action-hover,#244f73)}
.workspaceActions{display:flex;gap:8px;align-items:center}
#sceneRail .fapRail{margin-top:auto;border-top:1px solid var(--pt-border,#c8d7e3)!important;border-radius:0;padding-top:10px}
#sceneRail .fapRail span{text-align:center;line-height:1.15}

@media (max-width:600px){
  .fapDialog{width:100vw;max-width:100vw;max-height:92vh;margin:auto 0 0;border-radius:16px 16px 0 0;border-bottom:0}
  .fapHead{padding:14px 16px 10px}
  .fapForm{padding:14px 16px calc(18px + env(safe-area-inset-bottom))}
  .fapRow{grid-template-columns:1fr}
  .workspaceActions .fapStrip{display:none}
}
