#a2p-bot-finder { color: var(--text); font: 14px/1.45 var(--sans); }
#a2p-bot-finder [hidden] { display: none !important; }
#a2p-bot-finder button, #a2p-bot-finder input { font: inherit; }
#a2p-bot-finder button { cursor: pointer; }
#a2p-bot-finder-launcher { margin-left: auto; flex: 0 0 auto; color: var(--text); font: 14px/1.45 var(--sans); }
#a2p-bot-finder-launcher[hidden] { display: none !important; }
#a2p-bot-finder-launcher .bf-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 8px 14px; border: 1px solid var(--line2); border-radius: 10px;
  color: var(--text); background: var(--accent-weak); font: inherit; cursor: pointer; white-space: nowrap;
}
#a2p-bot-finder-launcher .bf-toggle:hover, #a2p-bot-finder-launcher .bf-toggle:focus-visible { background: var(--surface3); outline: 2px solid var(--accent); }
#a2p-bot-finder .bf-backdrop { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; padding: 20px; background: #030710c9; }
#a2p-bot-finder .bf-dialog { width: min(650px, 100%); max-height: min(680px, calc(100dvh - 40px)); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 24px 80px #000b; }
#a2p-bot-finder .bf-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 19px 22px 9px; }
#a2p-bot-finder .bf-head strong { display: block; font-size: 20px; }
#a2p-bot-finder .bf-head small { display: block; margin-top: 3px; color: var(--text2); }
#a2p-bot-finder .bf-close { width: 34px; height: 34px; border: 1px solid var(--line2); border-radius: 9px; background: var(--surface2); color: var(--text); font-size: 24px; line-height: 1; }
#a2p-bot-finder .bf-search { display: flex; align-items: center; gap: 8px; margin: 8px 22px; padding: 0 12px; min-height: 46px; border: 1px solid var(--line2); border-radius: 10px; background: var(--bg); color: var(--accent2); }
#a2p-bot-finder .bf-search:focus-within { outline: 2px solid var(--accent); }
#a2p-bot-finder .bf-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); }
#a2p-bot-finder .bf-search input::placeholder { color: var(--muted); }
#a2p-bot-finder .bf-filters { display: flex; gap: 6px; flex-wrap: wrap; padding: 6px 22px 9px; }
#a2p-bot-finder .bf-filters button { padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface2); color: var(--text2); }
#a2p-bot-finder .bf-filters button[aria-pressed=true] { color: var(--accent2); border-color: var(--accent); background: var(--accent-weak); }
#a2p-bot-finder .bf-status { min-height: 24px; padding: 0 22px 4px; color: var(--muted); }
#a2p-bot-finder .bf-results { min-height: 130px; overflow-y: auto; padding: 0 12px 12px; }
#a2p-bot-finder .bf-results > p { padding: 8px 10px; color: var(--text2); }
#a2p-bot-finder .bf-result { width: 100%; display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 1px 12px; align-items: center; margin: 2px 0; padding: 10px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--text); text-align: left; }
#a2p-bot-finder .bf-result:hover, #a2p-bot-finder .bf-result:focus-visible { border-color: var(--line2); background: var(--surface2); outline: none; }
#a2p-bot-finder .bf-kind { grid-row: span 2; color: var(--accent2); font-size: 12px; }
#a2p-bot-finder .bf-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
#a2p-bot-finder .bf-result small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text2); }
#a2p-bot-finder .bf-hint { margin: 0; padding: 12px 22px 16px; border-top: 1px solid var(--line); color: var(--text2); font-size: 12px; }
body.bf-open { overflow: hidden; }
#root .bf-highlight { outline: 3px solid var(--accent) !important; outline-offset: 4px; border-radius: 7px; }
@media (max-width: 700px) {
  #a2p-bot-finder-launcher { flex-basis: 100%; margin-left: 0; }
  #a2p-bot-finder-launcher .bf-toggle { width: 100%; min-height: 44px; }
  #a2p-bot-finder .bf-backdrop { align-items: end; padding: 0; }
  #a2p-bot-finder .bf-dialog { width: 100%; max-height: 88dvh; border-radius: 18px 18px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  #a2p-bot-finder .bf-result { grid-template-columns: 80px minmax(0, 1fr); }
}
