/* Pilot module "subfind" (AZIMUTH-47). Every selector prefixed p-subfind-; colours follow pilot.css tokens. */
.p-subfind-hudbtn { min-height: 44px; padding: 0 16px; gap: 8px; font-size: 13px; font-weight: 600; color: #000; background: var(--acc, #00ffff); border-color: var(--acc, #00ffff); white-space: nowrap; }
.p-subfind-hudbtn:hover, .p-subfind-hudbtn:active { color: #000; background: #fff; border-color: #fff; }
.p-subfind-hudbtn span { font-size: 16px; line-height: 1; }
@media (max-width: 899px) { .p-subfind-hudbtn { min-height: 48px; min-width: 220px; font-size: 15px; } }
.p-hud-sub:has(> .p-subfind-hudbtn) { padding: 2px; background: none; border: 0; }

.p-subfind-form { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.p-subfind-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.p-subfind-lab { font-size: 10px; letter-spacing: .12em; color: var(--dim, #a6adbb); margin: 0; }
.p-subfind-bar { display: flex; gap: 6px; min-width: 0; }
.p-subfind-q { flex: 1 1 160px; min-width: 0; min-height: 48px; box-sizing: border-box; padding: 0 12px; font: 16px ui-monospace, Menlo, Consolas, monospace;
  color: #fff; background: #05080d; border: 1px solid var(--line, #2f343d); border-radius: 6px; }
.p-subfind-q:focus { border-color: var(--acc, #00ffff); outline: none; }
.p-subfind-go { flex: 0 0 auto; min-width: 72px; min-height: 48px; color: #000; background: var(--acc, #00ffff); border-color: var(--acc, #00ffff); font-weight: 600; }
.p-subfind-dim { color: var(--dim, #a6adbb); margin: 0; font-size: 11px; overflow-wrap: anywhere; }
.p-subfind-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; min-width: 0; }
.p-subfind-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; box-sizing: border-box; padding: 0 12px; max-width: 100%;
  font: 12px ui-monospace, Menlo, monospace; color: #d8dde6; background: var(--panel, rgba(11, 14, 20, .86)); border: 1px solid var(--line, #2f343d); border-radius: 22px; cursor: pointer; overflow-wrap: anywhere; text-align: left; }
.p-subfind-chip i { width: 10px; height: 10px; border-radius: 2px; flex: 0 0 auto; }
.p-subfind-chip small { color: var(--dim, #a6adbb); }
.p-subfind-chip[aria-pressed="true"] { color: #000; background: var(--acc, #00ffff); border-color: #fff; }
.p-subfind-chip:hover, .p-subfind-chip:focus-visible { border-color: var(--acc, #00ffff); }
.p-subfind-status { margin: 8px 0 0; color: var(--dim, #a6adbb); overflow-wrap: anywhere; }
.p-subfind-status:empty { display: none; }
.p-subfind-error { color: #ffb3b3; } .p-subfind-warn, .p-subfind-none { color: var(--warn, #ffae00); }
p.p-subfind-error, p.p-subfind-warn, p.p-subfind-none { margin: 6px 0; overflow-wrap: anywhere; }
.p-subfind-status.p-subfind-error, p.p-subfind-error { border-left: 3px solid #ff5c5c; padding-left: 8px; }
.p-subfind-h { margin: 12px 0 4px; font-size: 12px; color: var(--acc, #00ffff); letter-spacing: .04em; overflow-wrap: anywhere; }
.p-subfind-h small { color: var(--dim, #a6adbb); font-weight: 400; }
.p-subfind-origin { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding: 6px 8px; border: 1px solid #00ffff55; border-radius: 6px; overflow-wrap: anywhere; min-width: 0; }
.p-subfind-origin > div { min-width: 0; }
.p-subfind-origin .pbtn { flex: 0 0 auto; }
.p-subfind-pin { display: inline-block; width: 0; height: 0; margin-right: 6px; border: 6px solid transparent; border-top: 10px solid var(--acc, #00ffff); vertical-align: -3px; }
.p-subfind-alts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.p-subfind-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.p-subfind-row { padding: 8px; background: var(--panel, rgba(11, 14, 20, .86)); border: 1px solid var(--line, #2f343d); border-radius: 6px; min-width: 0; }
.p-subfind-head { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.p-subfind-rank { flex: 0 0 auto; width: 22px; height: 22px; line-height: 20px; box-sizing: border-box; text-align: center; border: 2px solid; border-radius: 50%; font-size: 11px; color: #fff; align-self: center; }
.p-subfind-name { flex: 1 1 auto; min-width: 0; color: #fff; font-weight: 600; overflow-wrap: anywhere; }
.p-subfind-d { flex: 0 0 auto; color: var(--acc, #00ffff); white-space: nowrap; }
.p-subfind-tie { flex: 0 0 auto; font-size: 10px; color: #000; background: var(--warn, #ffae00); border-radius: 3px; padding: 0 4px; }
.p-subfind-brg { flex: 0 0 auto; color: #d8dde6; white-space: nowrap; }
.p-subfind-meta { margin: 2px 0 6px 30px; color: #d8dde6; font-size: 11px; overflow-wrap: anywhere; }
.p-subfind-unk { color: var(--warn, #ffae00); }
.p-subfind-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.p-subfind-acts .pbtn { flex: 1 1 96px; touch-action: manipulation; line-height: 1.2; text-align: center; }
.p-subfind-fly { color: #000; background: var(--acc, #00ffff); border-color: var(--acc, #00ffff); font-weight: 600; }
.p-subfind-ga { color: var(--link, #66ccff); }
.p-subfind-rhead { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.p-subfind-cav { font-size: 10px; color: var(--dim, #a6adbb); margin: 10px 0 0; overflow-wrap: anywhere; }
.p-subfind-cmeta { margin: 2px 0; overflow-wrap: anywhere; }
.p-subfind-link { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 899px) { .p-subfind-wide, #p-subfind-hint { display: none; } .p-subfind-chips { gap: 5px; margin-top: 6px; } .p-subfind-chip { padding: 0 10px; } }
@media (prefers-reduced-motion: reduce) { .p-subfind-hudbtn, .p-subfind-chip, .p-subfind-row { transition: none; animation: none; } }
