/* Task Helper — the field picker (BRIEF-1138). Copyright Rapid Surveys Pty Ltd. App tokens only; namespace fp2-. */
.fp2-native { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; opacity: 0; pointer-events: none; }
.fp2-btn { display: flex; align-items: center; justify-content: space-between; gap: 6px; width: 100%; min-width: 0; min-height: 38px; margin: 0; padding: 8px 10px; font-size: 14px; font-weight: 500;
  text-align: left; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.fp2-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fp2-btn[aria-expanded="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47, 109, 246, .15); }
.fp2-cur { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fp2-caret { flex: none; color: var(--muted); transition: transform .15s; }
.fp2-btn[aria-expanded="true"] .fp2-caret { transform: rotate(180deg); }
.fp2-backdrop { position: fixed; inset: 0; z-index: 90; background: transparent; }
.fp2-pop { position: fixed; z-index: 91; display: flex; flex-direction: column; max-height: min(380px, 65vh); overflow: hidden; padding: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 10px 28px rgba(20, 28, 40, .18); animation: fp2-in .15s ease-out; }
.fp2-tools { flex: none; display: flex; justify-content: flex-end; padding: 0 2px 4px; }
.fp2-all { width: auto; min-height: 32px; padding: 4px 10px; font-size: 13px; font-weight: 600; background: transparent; color: var(--accent); border: 0; border-radius: 6px; cursor: pointer; }
.fp2-all:hover { background: var(--hover); }
.fp2-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; outline: none; }   /* only the list scrolls: the title + Expand all stay */
.fp2-head { display: flex; align-items: center; gap: 6px; min-height: 34px; padding: 4px 8px 4px 4px; margin-top: 2px; font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  color: var(--muted); border-radius: 8px; cursor: pointer; }
.fp2-head .fp2-n { margin-left: auto; font-weight: 600; letter-spacing: 0; }
.fp2-chev { flex: none; transition: transform .15s; }
.fp2-head[aria-expanded="true"] .fp2-chev { transform: rotate(90deg); }
.fp2-opt { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 10px 4px 14px; font-size: 14px; border-radius: 8px; cursor: pointer; }
.fp2-check { flex: none; width: 18px; display: inline-flex; justify-content: center; color: var(--accent); }
.fp2-act { background: var(--hover); }
.fp2-list:focus-visible .fp2-act { box-shadow: inset 0 0 0 2px var(--accent); }
.fp2-sheet-bg { background: rgba(20, 28, 40, .45); }
.fp2-sheet { left: 0 !important; right: 0; bottom: 0; top: auto !important; max-height: 75vh; padding: 6px 12px calc(12px + env(safe-area-inset-bottom)); border-radius: 16px 16px 0 0; border: 0; animation: fp2-up .2s ease-out; }
.fp2-sheet-h { flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px 0 6px; }
.fp2-grab { width: 40px; height: 4px; border-radius: 2px; background: var(--line); }
.fp2-sheet .fp2-opt, .fp2-sheet .fp2-head, .fp2-sheet .fp2-all { min-height: 48px; }
@keyframes fp2-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes fp2-up { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .fp2-pop, .fp2-sheet { animation: none; } .fp2-caret, .fp2-chev { transition: none; } }
@media (pointer: coarse) { .fp2-btn { min-height: 44px; } }
.fp2-pop .fp2-list:focus, .fp2-pop .fp2-list:focus-visible { outline: none; }   /* the active row carries the focus ring */
