/* ld-pick (assets/js/ld-pick.js): the compact searchable select. Field-height button, popover under it, a bottom sheet under 600px. */
.ldpk { position: relative; display: block; min-width: 0; }
.ldpk__native { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; opacity: 0 !important; pointer-events: none !important; }
.ldpk__btn, .ldpk__btn:hover, .ldpk__btn:focus, .ldpk__btn:active { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 46px; margin: 0; padding: 0 14px; border: 0 !important; border-radius: 12px !important;
	background: var(--ldpk-bg, var(--ld-pearl, #F3F5FA)) !important; box-shadow: var(--ldpk-ring, inset 0 0 0 1px transparent); color: var(--ld-ink, #0B0D1A) !important; font: 500 15px/1.2 var(--ld-text, Inter, sans-serif) !important;
	text-align: left; text-transform: none; letter-spacing: 0; cursor: pointer; transition: box-shadow 140ms; -webkit-tap-highlight-color: transparent; }
.ldpk__btn:hover { box-shadow: inset 0 0 0 1px #C9D0E2; }
/* on a pearl surface (Manage) the control is white with a hairline: set --ldpk-bg and --ldpk-ring on the container */
.ldpk__btn[aria-expanded="true"], .ldpk__btn:focus-visible { outline: 0; box-shadow: inset 0 0 0 2px var(--ld-electric, #3D6BFF); }
.ldpk__btn:disabled { cursor: default; background: var(--ld-pearl, #F3F5FA) !important; box-shadow: none; }
.ldpk__btn:disabled .ldpk__v, .ldpk__btn.is-empty .ldpk__v { color: var(--ld-text-faint, rgba(11,13,26,.5)); }
.ldpk__v { flex: 1; min-width: 0; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ldpk__chev { flex: none; color: var(--ld-text-faint, rgba(11,13,26,.5)); transition: transform 160ms cubic-bezier(.2,0,0,1); }
.ldpk__btn[aria-expanded="true"] .ldpk__chev { transform: rotate(180deg); }

.ldpk-pop { position: absolute; z-index: 100003; display: flex; flex-direction: column; max-height: 360px; overflow: hidden; border-radius: 14px; background: var(--ld-white, #fff);
	box-shadow: 0 0 0 1px rgba(11,13,26,.08), 0 18px 40px -12px rgba(20,26,102,.35); font-family: var(--ld-text, Inter, sans-serif); color: var(--ld-ink, #0B0D1A);
	animation: ldpk-in 140ms cubic-bezier(.2,0,0,1); outline: 0; }
@keyframes ldpk-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.ldpk-pop__s { flex: none; position: relative; display: block; margin: 0; padding: 8px 8px 4px; }
.ldpk-pop__s svg { position: absolute; left: 20px; top: 50%; margin-top: 2px; transform: translateY(-50%); color: var(--ld-text-faint, rgba(11,13,26,.5)); pointer-events: none; }
.ldpk-pop__s input, .ldpk-pop__s input:focus { width: 100%; height: 38px; margin: 0; padding: 0 10px 0 36px; border: 0 !important; border-radius: 10px; background: var(--ld-pearl, #F3F5FA); box-shadow: none; outline: 0; color: var(--ld-ink, #0B0D1A); font: 500 15px/1 var(--ld-text, Inter, sans-serif); -webkit-appearance: none; appearance: none; }
.ldpk-pop__l { flex: 1; min-height: 0; margin: 0; padding: 4px 6px 6px; overflow-y: auto; overscroll-behavior: contain; list-style: none; }
.ldpk-pop__l li { margin: 0; }
.ldpk-pop__l [role=option] { position: relative; display: flex; align-items: center; min-height: 38px; padding: 8px 34px 8px 10px; border-radius: 8px; font-size: 14.5px; line-height: 1.25; cursor: pointer; }
.ldpk-pop__l [role=option]:hover, .ldpk-pop__l [role=option].is-act { background: var(--ld-pearl, #F3F5FA); }
.ldpk-pop__l [role=option][aria-selected] { font-weight: 650; color: var(--ld-electric, #3D6BFF); }
.ldpk-pop__l [role=option][aria-selected]::after { content: ""; position: absolute; right: 12px; top: 50%; width: 11px; height: 6px; margin-top: -5px; border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.ldpk-pop__l .ldpk__ct { margin-left: auto; padding-left: 12px; font-weight: 500; font-size: 13.5px; color: var(--ld-text-faint, rgba(11,13,26,.5)); font-variant-numeric: tabular-nums; }
.ldpk-pop__l [role=option][aria-selected] .ldpk__ct { color: inherit; opacity: .7; }
.ldpk-pop__l .is-clear { color: var(--ld-text-muted, rgba(11,13,26,.66)); }
.ldpk-pop__l [hidden] { display: none; }
.ldpk-pop__g { padding: 10px 10px 4px; font: 650 11.5px/1 var(--ld-text, Inter, sans-serif); letter-spacing: .06em; text-transform: uppercase; color: var(--ld-text-faint, rgba(11,13,26,.5)); }
.ldpk-pop__none { margin: 0; padding: 4px 16px 14px; font-size: 14px; color: var(--ld-text-muted, rgba(11,13,26,.66)); }
.ldpk-pop__none[hidden] { display: none; }

/* phones: a bottom sheet; tapping search makes it full height so the keyboard leaves room for the list */
.ldpk-back { position: fixed; inset: 0; z-index: 100002; background: rgba(11,13,26,.38); animation: ldpk-fade 160ms ease-out; }
@keyframes ldpk-fade { from { opacity: 0; } }
.ldpk-pop--sheet { position: fixed; left: 0; right: 0; bottom: 0; max-height: 72vh; max-height: 72dvh; border-radius: 18px 18px 0 0; padding-bottom: env(safe-area-inset-bottom); animation: ldpk-up 220ms cubic-bezier(.2,0,0,1); }
.ldpk-pop--sheet:focus-within:has(input:focus) { max-height: 100dvh; height: 100dvh; border-radius: 0; }
@keyframes ldpk-up { from { transform: translateY(100%); } }
.ldpk-pop__h { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 6px; }
.ldpk-pop__h b { font: 750 17px/1.2 var(--ld-heading, "Inter Tight", sans-serif); }
.ldpk-pop__x, .ldpk-pop__x:hover, .ldpk-pop__x:focus { padding: 6px 2px; border: 0; background: none !important; color: var(--ld-electric, #3D6BFF) !important; font: 650 16px/1 var(--ld-text, Inter, sans-serif); cursor: pointer; }
.ldpk-pop--sheet [role=option] { min-height: 46px; font-size: 16px; }
.ldpk-pop--sheet .ldpk-pop__s input { height: 42px; font-size: 16px; }
html.ldpk-lock, html.ldpk-lock body { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .ldpk-pop, .ldpk-back { animation: none; } }
