/* ============================================================
   .pb-select — custom <select> with a chevron
   ------------------------------------------------------------
   Markup: <div class="pb-select"><select>…</select>
            <span class="chev"><svg…/></span></div>
   The native select is restyled; the chevron is an absolutely
   positioned, pointer-events:none glyph (rotated to point down).
   ============================================================ */
.pb-select {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.pb-select select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  padding: 0.5rem 2.125rem 0.5rem 0.75rem;
  font: inherit;
  color: var(--text);
  background: var(--input-fill);
  border: none;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.pb-select select:hover { background: var(--surface-3); }
.pb-select select:focus-visible {
  outline: none;
  background: var(--surface);
  box-shadow: 0 0 0 0.1875rem var(--focus-ring);
}

.pb-select .chev {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%) rotate(90deg); /* the > glyph points down */
  display: grid;
  place-items: center;
  color: var(--text-faint);
  pointer-events: none;
}
.pb-select .chev svg { width: 16px; height: 16px; }

/* ---- Dark theme ---- */
/* --surface fällt auf Dunkel UNTER die surface-2-Ruhefläche — der
   Fokus dunkelte das Feld ab statt es zu heben. */
[data-theme="dark"] .pb-select select:focus-visible { background: var(--surface-3); }
