.hp-field { position: relative; }
.ls-panel { position: absolute; left: -1px; right: -1px; top: calc(100% + 8px); z-index: 40; max-height: min(420px, 62vh); overflow-y: auto; overscroll-behavior: contain; padding: 0.4rem; margin: 0; list-style: none; background: var(--hp-card, #fff); border: 1px solid var(--hp-line, rgba(0, 39, 94, 0.14)); border-radius: 16px; box-shadow: 0 2px 4px rgba(0, 39, 94, 0.06), 0 22px 48px rgba(0, 39, 94, 0.24); animation: ls-in 0.14s ease-out; text-align: left; }
.ls-panel[hidden] { display: none; }
.ls-group { padding: 0.55rem 0.7rem 0.25rem; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--hp-muted, #5a6e7c); }
.ls-group:first-child { padding-top: 0.35rem; }
.ls-option { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0.7rem; border-radius: 12px; cursor: pointer; position: relative; color: var(--hp-ink, #00275e); transition: background 0.12s ease; }
.ls-option::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 3px; border-radius: 3px; background: var(--hp-accent, #fe2c57); opacity: 0; transform: scaleY(0.4); transition: opacity 0.12s ease, transform 0.12s ease; }
.ls-option.is-active, .ls-option:hover { background: var(--hp-tint, rgba(0, 39, 94, 0.05)); }
.ls-option.is-active::before { opacity: 1; transform: scaleY(1); }
.ls-icon { flex: 0 0 auto; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: rgba(254, 44, 87, 0.1); color: var(--hp-accent, #fe2c57); font-size: 0.95rem; }
.ls-option.is-active .ls-icon { background: var(--hp-accent, #fe2c57); color: #fff; }
.ls-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.ls-title { font-weight: 700; font-size: 0.98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ls-title mark { background: none; color: var(--hp-accent, #fe2c57); padding: 0; font-weight: 800; }
.ls-detail { font-size: 0.8rem; font-weight: 500; color: var(--hp-muted, #5a6e7c); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ls-count { flex: 0 0 auto; padding: 0.18rem 0.6rem; border-radius: 999px; background: var(--hp-tint, rgba(0, 39, 94, 0.05)); border: 1px solid var(--hp-line, rgba(0, 39, 94, 0.14)); font-size: 0.74rem; font-weight: 700; color: var(--hp-ink, #00275e); white-space: nowrap; }
.ls-option.is-active .ls-count { background: var(--hp-card, #fff); }
.ls-empty { padding: 1rem 0.9rem; text-align: center; font-size: 0.9rem; color: var(--hp-muted, #5a6e7c); }
.ls-foot { display: flex; justify-content: space-between; gap: 0.75rem; padding: 0.5rem 0.75rem 0.3rem; margin-top: 0.25rem; border-top: 1px solid var(--hp-line, rgba(0, 39, 94, 0.14)); font-size: 0.72rem; color: var(--hp-muted, #5a6e7c); }
.ls-foot kbd { padding: 0.05rem 0.38rem; border-radius: 5px; border: 1px solid var(--hp-line, rgba(0, 39, 94, 0.14)); background: var(--hp-tint, rgba(0, 39, 94, 0.05)); font: inherit; font-weight: 600; color: var(--hp-ink, #00275e); }
@keyframes ls-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .ls-panel { animation: none; } .ls-option, .ls-option::before { transition: none; } }
@media (hover: none), (max-width: 700px) { .ls-foot { display: none; } .ls-option { padding: 0.62rem 0.7rem; } }
[data-bs-theme="dark"] .ls-panel { box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), 0 22px 48px rgba(0, 0, 0, 0.5); }
[data-bs-theme="dark"] .ls-icon { background: rgba(37, 245, 239, 0.12); color: var(--hp-t1, #25f5ef); }
[data-bs-theme="dark"] .ls-option.is-active .ls-icon { background: var(--hp-t1, #25f5ef); color: #0a1b33; }
[data-bs-theme="dark"] .ls-title mark { color: var(--hp-t1, #25f5ef); }
[data-bs-theme="dark"] .ls-option::before { background: var(--hp-t1, #25f5ef); }
