/* Compact, grouped search results; the persistent header remains the input. */
.district-workspace { overflow:hidden; }
.part-search-results { display:grid; gap:12px; min-width:0; }
#panel-district.part-search-has-query > .workspace-header { min-height:0; padding:4px 4px 14px; }
#panel-district.part-search-has-query > .workspace-header::before,
#panel-district.part-search-has-query > .workspace-header::after,
#panel-district.part-search-has-query .workspace-heading h1::after,
#panel-district.part-search-has-query .workspace-heading > p { display:none; }
#panel-district.part-search-has-query .workspace-heading { width:100%; }
#panel-district.part-search-has-query .workspace-heading h1 { color:var(--ink); text-shadow:none; -webkit-text-stroke:0; }
#panel-district.part-search-has-query .district-workspace { overflow:visible; border:0; background:transparent; box-shadow:none; }
.part-search-controls { display:grid; gap:14px; margin:0 4px 14px; }
.part-search-controls[hidden] { display:none; }
.part-search-scopes { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); overflow:hidden; border:1px solid var(--line); border-radius:9px; background:var(--surface-2); }
.part-search-scopes button { min-width:0; min-height:42px; padding:8px 3px; border:0; border-radius:0; background:transparent; color:var(--ink); box-shadow:none; font-size:13px; font-weight:700; white-space:nowrap; }
.part-search-scopes button + button { border-left:1px solid var(--line); }
.part-search-scopes button[aria-pressed="true"] { background:var(--primary); color:#fff; border-radius:7px; }
[data-theme="agilent-web-dark"] .part-search-scopes button[aria-pressed="true"] { color:#092431; }
.part-search-scopes button:focus-visible { outline:2px solid var(--primary-dark); outline-offset:-3px; }
#districtSearchCount { color:var(--ink); font-size:16px; line-height:1.3; }
.part-search-section { min-width:0; overflow:hidden; border:1px solid var(--line); border-radius:12px; background:var(--surface); }
.part-search-heading { display:flex; align-items:center; gap:9px; min-height:50px; margin:0; padding:10px 14px; background:var(--primary-soft); color:var(--ink); font-size:15px; font-weight:750; line-height:1.3; cursor:pointer; list-style:none; }
.part-search-heading::-webkit-details-marker { display:none; }
.part-search-heading > svg { width:20px; height:20px; flex:none; color:var(--primary-dark); fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.part-search-heading > span:first-of-type { flex:1; min-width:0; }
.part-search-heading:focus-visible { outline:2px solid var(--primary); outline-offset:-3px; }
.part-search-section-chevron { flex:none; color:var(--primary-dark); font-size:22px; line-height:1; transform:rotate(-90deg); }
.part-search-section[open] .part-search-section-chevron { transform:rotate(180deg); }
.part-search-list { display:grid; padding:0 10px; }
.part-search-result { display:grid; grid-template-columns:40px minmax(0,1fr) 18px; align-items:center; gap:12px; width:100%; min-width:0; min-height:76px; padding:12px 4px; border:0; border-bottom:1px solid var(--line); border-radius:0; background:var(--surface); color:var(--ink); box-shadow:none; text-align:left; white-space:normal; }
.part-search-result:last-child { border-bottom:0; }
@media (hover:hover) and (pointer:fine) { .part-search-result:hover { background:var(--primary-soft); transform:none; box-shadow:none; } }
.part-search-result:focus-visible { outline:2px solid var(--primary); outline-offset:-3px; background:var(--primary-soft); }
.part-search-part-icon { display:grid; place-items:center; width:40px; height:40px; border-radius:10px; background:var(--primary-soft); color:var(--primary-dark); }
.part-search-part-icon svg { width:23px; height:23px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.part-search-copy { display:grid; gap:3px; min-width:0; }
.part-search-number,.part-search-description,.part-search-sources { min-width:0; overflow-wrap:anywhere; white-space:normal; }
.part-search-number { color:var(--ink); font-size:15px; font-weight:800; line-height:1.25; }
.part-search-description { color:var(--ink); font-size:14px; line-height:1.35; font-weight:400; }
.part-search-sources { display:flex; align-items:flex-start; gap:4px; color:var(--ink-2); font-size:12px; line-height:1.4; font-weight:500; }
.part-search-sources > span { min-width:0; overflow-wrap:anywhere; }
.part-search-sources svg { width:15px; height:15px; flex:none; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.part-search-chevron { color:var(--primary-dark); font-size:26px; line-height:1; text-align:center; }
.part-search-empty { margin:16px; padding:20px; border:1px solid var(--line-strong); border-radius:var(--radius-sm); background:var(--surface-2); color:var(--ink); overflow-wrap:anywhere; }
.part-search-empty p { margin:6px 0 0; color:var(--muted); font-size:14px; line-height:1.5; }
@media (max-width:620px) {
  .part-search-empty { margin:12px; padding:16px; }
  .part-search-result { gap:9px; }
}
