/* Compact desktop toolbar: two rows, no third row for scan/reset/alerts. */
.pm-heading{margin-bottom:6px}
.pm-heading h1{font-size:14px}
#pmFilters>.pm-one-line{gap:4px;padding:4px 6px}
#pmFilters>.pm-one-line>label:not(.pm-search){height:26px;min-width:0}
#pmFilters>.pm-one-line>label:not(.pm-search) select{height:24px;padding:0 18px 0 6px;font-size:11px;background-position:right 5px center;min-width:0;max-width:100%;flex:1 1 0;width:0}
#pmFilters>.pm-one-line>label:not(.pm-search)>.pm-sr-only{font-size:9px;letter-spacing:0;padding:0 5px;line-height:24px}
#pmFilters .pm-search{min-width:0;max-width:none}
#pmFilters .pm-search input{height:26px;font-size:11px;padding-left:25px;min-width:0;width:100%;background-size:11px;background-position:8px center}
#pmFilters .pm-dropdown>summary{height:26px;min-width:0;padding:0 6px;gap:4px;font-size:11px;white-space:nowrap}
#pmFilters .btn{height:26px;min-height:26px;padding:0 6px;font-size:11px;white-space:nowrap}
#pmFilters #pmBookPicker,#pmFilters #pmMarketPicker,#pmFilters #pmRefresh,#pmFilters #pmReset,#pmFilters #pmSignalsToggle{margin-left:0;min-width:0}
#pmFilters #pmBookPicker::before,#pmFilters #pmMarketPicker::before{display:none}
#pmFilters #pmOnlyAtOrAbove{height:26px;width:24px;margin:0;border-radius:4px}
#pmFilters #pmOnlyAtOrAbove svg{width:14px;height:14px}
#pmFilters .pm-range-group{height:24px;padding:0 3px;gap:1px;min-width:0;flex:1 1 0}
#pmFilters .pm-range-value{height:20px;width:35px;font-size:11px;padding:0 2px;flex:1 1 0;min-width:25px}
#pmFilters .pm-liquidity-filter .pm-range-value{width:40px;min-width:30px}
#pmFilters .pm-custom-value{height:20px;width:44px;font-size:11px;padding:0 2px}
#pmFilters #pmBookSelectionCount,#pmFilters #pmMarketSelectionCount{font-size:10px;min-width:14px;padding:0 3px}
/* A selected value already identifies sport, country, league and exchange;
   preserve their full labels for screen readers and control tooltips. */
#pmFilters .pm-sport-filter>.pm-sr-only,#pmFilters .pm-country-filter>.pm-sr-only,
#pmFilters .pm-league-filter>.pm-sr-only,#pmFilters .pm-window-filter>.pm-sr-only,
#pmFilters .pm-reference-filter>.pm-sr-only,#pmFilters .pm-side-filter>.pm-sr-only,
#pmFilters .pm-scope-choice>.pm-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@media(min-width:1200px){
  #pmFilters>.pm-primary-filters{display:grid;grid-template-columns:minmax(80px,.85fr) minmax(90px,1.4fr) minmax(85px,1fr) minmax(100px,1.4fr) minmax(68px,.8fr);align-items:center}
  #pmFilters>.pm-options{gap:3px;display:grid;grid-template-columns:minmax(70px,120px) 80px minmax(95px,170px) 78px minmax(176px,200px) minmax(128px,160px) minmax(92px,120px) max-content 85px;align-items:center;justify-content:start}
  #pmFilters>.pm-one-line>label:not(.pm-search){width:100%;max-width:none}
  #pmFilters>.pm-one-line>label[hidden]{display:none}
  #pmFilters .pm-search{width:100%}
  #pmFilters #pmRefresh{overflow:hidden;text-overflow:ellipsis}
  #pmFilters .pm-dropdown>summary{justify-content:center}
}
/* Smaller screens keep usable controls instead of shrinking text below 11px. */
@media(max-width:1199px){
  #pmFilters>.pm-one-line>label:not(.pm-search) select{flex:1 1 auto;width:auto}
  #pmFilters>.pm-one-line>label:not(.pm-search){max-width:100%}
  #pmFilters .pm-search{flex:1 1 130px}
}

/* HEADING_ACTIONS_20260930: scan/reset/alerts above the two filter rows. */
.pm-heading{gap:8px;align-items:center}
.pm-heading h1{margin:0}
.pm-heading-actions{display:flex;align-items:center;gap:5px;margin-left:auto;flex-shrink:0}
.pm-heading-actions .btn{height:26px;min-height:26px;padding:0 8px;font-size:11px;white-space:nowrap;margin:0}
.pm-heading-actions #pmRefresh{max-width:180px;overflow:hidden;text-overflow:ellipsis}
.pm-heading-actions #pmSignalsToggle{margin-left:0}

/* LIQ_TOGGLE_20261006: the liquidity display toggle beside LIQ. EUR, one line with Mercati. */
#pmFilters>.pm-one-line>label.pm-size-toggle{gap:5px;padding:0 7px;font-size:11px;width:auto;justify-self:start}

/* FILTER_COLUMNS_20261007: nine controls; the removed eye has no reserved slot. */
#pmFilters{container:pm-filters / inline-size}
#pmFilters>.pm-options>.pm-tolerance-filter{min-width:176px}
#pmFilters>.pm-options>.pm-odds-filter{min-width:128px}
#pmFilters>.pm-options>.pm-liquidity-filter{min-width:92px}
/* Fit the actual workspace beside alerts, rather than the whole viewport. */
@container pm-filters (max-width:900px){
  #pmFilters>.pm-options{display:flex;flex-wrap:wrap;gap:4px}
  #pmFilters>.pm-options>label:not(.pm-search){width:auto;max-width:100%;flex:0 0 auto}
  #pmFilters>.pm-options>label:not(.pm-search) select{width:auto;flex:1 1 auto}
}

/* BACK_SIDE_WIDTH_20261008: reserve text and arrow room for the full BACK label. */
#pmFilters>.pm-options>label.pm-side-filter{min-width:80px;flex:0 0 80px}
