/* PeakFrame's dropdown: see select-menu.js. One field shape for every select
   in the workspace, the chevron inside the box, and a menu in the house
   style. No shadow, ring or glow; focus is the single border in the accent. */

.pf-dd { position: relative; display: inline-flex; min-width: 0; max-width: 100%; vertical-align: middle; }
.pf-dd.pf-dd-block { display: flex; width: 100%; }
select.pf-dd-native {
  position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important;
  margin: 0 !important; padding: 0 !important; opacity: 0 !important; pointer-events: none !important;
}

.pf-dd-btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; min-width: 0; height: 36px; margin: 0; padding: 0 12px;
  border: 1px solid transparent; border-radius: 10px;
  background: var(--pf-panel-2, #141518); color: var(--pf-text, #f1f1f4);
  font: inherit; font-size: 13px; font-weight: 520; line-height: 1; text-align: left; cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease;
}
.pf-dd-btn:hover { background: var(--pf-panel-3, #1c1d21); }
.pf-dd-btn:focus-visible, .pf-dd-btn[aria-expanded="true"] { outline: none; border-color: rgba(141, 162, 255, .6); }
.pf-dd-btn:disabled { opacity: .5; cursor: default; }
.pf-dd-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-dd-chev, html.ui-v2 .pf-dash .pf-dd-chev { width: 8px; height: 8px; flex: 0 0 8px; overflow: visible; color: var(--pf-dim, #9a9ba3); transition: transform 160ms ease; }
.pf-dd-btn[aria-expanded="true"] .pf-dd-chev { transform: rotate(180deg); }

/* The workspace's compact select keeps its size and weight, minus the room
   it used to leave for the browser's arrow. */
html.ui-v2 .pf-dd-btn.pf-select { height: 32px; padding: 0 12px; font-size: 12.5px; font-weight: 600; }
html.ui-v2 .pf-titlesel .pf-dd-btn.pf-select { height: 34px; font-size: 16px; font-weight: 700; }
html.ui-v2 .pf-selwrap:has(> .pf-dd) > svg { display: none; }

.pf-dd-menu {
  position: fixed; z-index: 2147483000; box-sizing: border-box; overflow-y: auto; overscroll-behavior: contain;
  padding: 5px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px;
  background: #16171b; color: var(--pf-text, #f1f1f4); font-size: 13px; outline: none; scrollbar-width: thin;
}
.pf-dd-option {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: 34px; padding: 0 10px; border-radius: 8px; cursor: pointer; white-space: nowrap;
}
.pf-dd-option > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pf-dd-option.is-active { background: rgba(255, 255, 255, .07); }
.pf-dd-option[aria-selected="true"] { color: #ccd5ff; font-weight: 600; }
.pf-dd-option[aria-disabled] { opacity: .4; cursor: default; }
.pf-dd-tick { width: 12px; height: 12px; flex: 0 0 12px; opacity: 0; }
.pf-dd-option[aria-selected="true"] .pf-dd-tick { opacity: 1; }
.pf-dd-group { padding: 9px 10px 4px; color: var(--pf-dimmer, #6b6c74); font-size: 11px; font-weight: 600; }

@media (pointer: coarse) {
  .pf-dd-btn { height: 40px; }
  .pf-dd-option { min-height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  .pf-dd-btn, .pf-dd-chev { transition: none; }
}
