.controls-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 0 0 20px; }
.control-group { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.segmented { display: inline-flex; gap: 2px; background: var(--sunk); border: 1px solid var(--line); padding: 2px; border-radius: var(--radius-control); }
.segmented button { min-height: 28px; padding: 5px 12px; border-radius: 4px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.segmented button:hover { color: var(--ink); }
.segmented button.selected { background: var(--ink); color: #fff; font-weight: 550; }
.hurdle-control { display: flex; align-items: center; gap: 8px; flex-shrink: 0; font-size: 13px; color: var(--muted); white-space: nowrap; }
.hurdle-control > span { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-control); padding-right: 9px; display: inline-flex; align-items: center; min-height: 34px; color: var(--ink-2); }
.hurdle-control > span:focus-within { border-color: var(--ink-2); box-shadow: 0 0 0 3px #16202a12; }
.hurdle-control input { width: 52px; padding: 6px 0 6px 9px; border: 0; font-size: 13px; background: transparent; -moz-appearance: textfield; }
.hurdle-control input:focus-visible { outline: none; }
.hurdle-control input::-webkit-inner-spin-button { -webkit-appearance: none; }
.sort-control { margin-left: auto; position: relative; z-index: 5; flex-shrink: 0; }
.sort-control > summary { min-height: 34px; display: flex; align-items: center; gap: 9px; padding: 7px 11px; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--paper); color: var(--ink); font-size: 13px; font-weight: 500; list-style: none; white-space: nowrap; }
.sort-control > summary::-webkit-details-marker { display: none; }
.sort-control > summary::after { display: none; }
.sort-control > summary > .icon { width: 15px; height: 15px; color: var(--muted); }
.sort-control > summary > .icon:last-child { width: 12px; margin-left: 8px; transition: transform .12s; }
.sort-control[open] > summary > .icon:last-child { transform: rotate(180deg); }
.sort-control > summary:hover { background: var(--sunk); }
.sort-options { position: absolute; right: 0; top: calc(100% + 6px); padding: 4px; min-width: 220px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 24px #16202a1a; }
.sort-options button { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; min-height: 36px; padding: 9px 10px; font-size: 13px; text-align: left; border-radius: 4px; white-space: nowrap; }
.sort-options button:hover, .sort-options button:focus-visible { background: var(--sunk); }
.sort-options button[aria-pressed="true"] { color: var(--forest); font-weight: 550; }
.sort-options .icon { width: 14px; height: 14px; }
@media (max-width: 760px) {
  .controls-bar { gap: 10px; }
  .segmented button { min-height: 30px; padding: 5px 9px; font-size: 12px; }
  .hurdle-control { font-size: 12px; gap: 6px; }
  .hurdle-control > span { min-height: 32px; }
  .hurdle-control input { width: 48px; font-size: 12px; }
  .sort-control > summary { min-height: 32px; padding: 6px 10px; font-size: 12px; }
}
@media (max-width: 570px) {
  .compact-controls { justify-content: space-between; }
  .compact-controls .sort-control { margin-left: auto; }
}
@media (max-width: 420px) {
  .compact-controls .sort-control { margin-left: 0; width: 100%; }
  .compact-controls .sort-control > summary { width: 100%; }
  .compact-controls .sort-control > summary > .icon:last-child { margin-left: auto; }
  .compact-controls .sort-options { left: 0; right: 0; min-width: 0; }
}
@media (pointer: coarse) { .sort-control > summary, .sort-options button { min-height: 44px; } }
