/* YAP part picker (2026-11-20). The dropdown under "What's broken?".
   One stylesheet, both mounts (homepage hero, /parts). Reads the site's
   custom properties; the fallbacks are the YAP palette. Same ink outline
   as the scan chip so it reads as part of the finder card. */

.yap-pp {
  position: absolute; z-index: 60;
  box-sizing: border-box; min-width: 260px;
  max-height: min(62vh, 420px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--white, #fff);
  border: 1.5px solid var(--text, #111);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .14);
  font-family: var(--font, system-ui, sans-serif);
  color: var(--text, #111);
  text-align: left;
}
.yap-pp[hidden] { display: none; }

.yap-pp-head, .yap-pp-foot {
  padding: 8px 16px;
  font-size: 12px; line-height: 1.35;
  color: var(--muted, #5a6470);
}
.yap-pp-head { border-bottom: 1px solid var(--border, #e5e7eb); }
.yap-pp-head b { color: var(--text, #111); font-weight: 700; }
.yap-pp-more { margin-left: 8px; font-style: italic; }
.yap-pp-foot { border-top: 1px solid var(--border, #e5e7eb); }

.yap-pp-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 48px; padding: 6px 16px;
  cursor: pointer;
}
.yap-pp-row + .yap-pp-row { border-top: 1px solid var(--border, #e5e7eb); }
.yap-pp-row:hover, .yap-pp-row.is-active { background: var(--red-bg, #FFF0F0); }

.yap-pp-pic {
  flex: none; width: 48px; height: 48px;
  border-radius: 8px; overflow: hidden;
}
.yap-pp-pic img {
  display: block; width: 48px; height: 48px; object-fit: cover;
  border-radius: 8px; border: 1px solid var(--text, #111); box-sizing: border-box;
}
.yap-pp-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.yap-pp-name { font-size: 16px; font-weight: 600; line-height: 1.25; }
.yap-pp-sec  { font-size: 12px; line-height: 1.3; color: var(--muted, #5a6470); }
.yap-pp-num {
  flex: none;
  font-size: 13px; font-weight: 600; letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
  color: var(--red-dk, #990000);
  white-space: nowrap;
}

@media (max-width: 429px) {
  .yap-pp-row { padding: 6px 12px; gap: 8px; }
  .yap-pp-head, .yap-pp-foot { padding: 8px 12px; }
  .yap-pp-name { font-size: 15px; }
}
