/* TRK-863: the right panel's breadcrumb, settings search with Changed only, and one list entry on its own */
.pe-crumb > * { flex-shrink: 0; }
.pe-crumb > strong, .pe-crumb > button { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex-shrink: 1; }
.pe-crumb > button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.pe-find {
  position: sticky;
  top: 48px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.pe-find-q { flex: 1; min-width: 0; }
.pe-find-q input { height: 32px; min-width: 0; }
.pe-find-q input::-webkit-search-cancel-button { cursor: pointer; }
.pe-find-changed { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; color: var(--muted); font-size: 12px; font-weight: 500; white-space: nowrap; cursor: pointer; user-select: none; }
.pe-find-changed:has(:checked) { color: var(--text); }
.pe-find-switch { width: 28px; height: 16px; border-radius: 8px; }
.pe-find-switch::before { top: 2px; left: 2px; width: 10px; height: 10px; }
.pe-find-switch:checked::before { transform: translateX(12px); }
.pe-find-count { min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-size: 10.5px; font-weight: 600; line-height: 16px; text-align: center; font-variant-numeric: tabular-nums; }
.pe-find-count[hidden] { display: none; }
.pe-find + .pe-tabs { margin-top: 12px; }

/* What a search or Changed only leaves out */
.pe-inspector .pe-off { display: none !important; }
.pe-find-group { display: grid; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border); min-width: 0; }
.pe-find-group:last-of-type { border-bottom: 0; }
.pe-find-group > h3 { margin: 0; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.pe-find-content { display: grid; gap: 14px; min-width: 0; }

/* One entry of a list, picked on the page */
.pe-item-view { display: grid; gap: 12px; padding: 0; border: 0; background: none; }
.pe-item-part { display: grid; gap: 4px; min-width: 0; }
.pe-item-name { font-size: 12px; font-weight: 500; color: var(--text); }
.pe-item-part input:not([type="checkbox"]), .pe-item-part textarea, .pe-item-part select { width: 100%; box-sizing: border-box; }
.pe-item-view .pe-item-remove { justify-self: start; color: var(--danger, #d92d20); }

@media (max-width: 760px) {
  .pe-find { top: 0; position: static; padding: 8px 12px; }
  .pe-find-q input { font-size: 16px; }
  .pe-item-part input:not([type="checkbox"]), .pe-item-part textarea, .pe-item-part select { font-size: 16px; }
}
