/* VM presentation for the unchanged Foundation reference filters. */
.vm-main .vm-filter-panel {
  min-width:0; margin:24px 0 32px; padding:26px;
  border:1px solid var(--line); border-radius:16px; background:#fff; box-shadow:none;
}
.vm-main .vm-filter-panel .field { min-width:0; margin:0; display:grid; gap:8px; }
.vm-main .vm-filter-panel label { min-width:0; margin:0; font-size:14px; font-weight:500; line-height:1.5; color:var(--ink); }
.vm-main .vm-filter-panel input:not([type=hidden]),
.vm-main .vm-filter-panel select {
  display:block; width:100%; max-width:100%; min-width:0; min-height:48px; margin:0;
  padding:11px 14px; border:1px solid #cbdcd6; border-radius:9px; background:#f6f9f7;
  color:var(--ink); font:400 16px/1.5 Onest,Arial,sans-serif; text-align:left;
}
.vm-main .vm-filter-panel select { padding-right:30px; }
.vm-main .vm-filter-panel input:focus-visible,
.vm-main .vm-filter-panel select:focus-visible { outline:2px solid var(--brand-deep); outline-offset:2px; border-color:var(--brand); }
.vm-main .vm-filter-panel .btn { min-height:46px; padding:11px 18px; font-size:14px; white-space:normal; }
.vm-main .vm-filter-panel .vm-owner-filter-actions,
.vm-main .vm-filter-panel .gf-filter-actions,
.vm-main .vm-filter-panel .vm-results-filter-actions,
.vm-main .vm-filter-panel .vm-filter-actions {
  display:flex; flex-wrap:wrap; align-items:center; gap:12px; min-width:0; width:auto;
}
.vm-main .vm-filter-panel .vm-owner-filter-actions .btn,
.vm-main .vm-filter-panel .gf-filter-actions .btn,
.vm-main .vm-filter-panel .vm-results-filter-actions .btn,
.vm-main .vm-filter-panel .vm-filter-actions .btn { width:auto; min-width:130px; }

.vm-main .reference-contest-filters { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto; gap:20px; align-items:end; }
.vm-main .vm-contest-filter-form { display:contents; }
.vm-main .vm-filter-note { grid-column:1/-1; order:1; margin:0; font-size:14px; }

.vm-main .vm-works-filters { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; align-items:end; }
.vm-main .vm-works-filters>label,
.vm-main .vm-works-filters .reference-works-advanced>label { display:grid; gap:8px; min-width:0; }
.vm-main .vm-works-filters .gf-combobox-native { display:none!important; }
.vm-main .vm-works-filters .gf-combobox input { padding-right:40px; }
.vm-main .vm-works-filters .gf-combobox-row::after { top:19px; right:17px; border-color:var(--brand-deep); }
.vm-main .vm-works-filters .gf-combobox-selected { margin-top:7px; font-size:13px; line-height:1.5; color:var(--muted); }
.vm-main .vm-works-filters details { grid-column:1/-1; min-width:0; border-top:1px solid #e5eeea; padding-top:8px; }
.vm-main .vm-works-filters summary { min-height:44px; margin:0; padding:10px 0; color:var(--brand-deep); font-size:14px; font-weight:600; cursor:pointer; }
.vm-main .vm-works-filters .reference-works-advanced { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px; margin-top:12px; align-items:end; }
.vm-main .vm-works-filters .gf-filter-actions { grid-column:1/-1; margin:0; }
.vm-main .vm-works-filters .gf-filter-notice { grid-column:1/-1; margin:0; padding:12px 16px; border-radius:9px; background:var(--brand-soft); font-size:14px; }
.vershina-site .gf-combobox-popup { border-color:#a6c8be; border-radius:10px; background:#fff; color:var(--ink); font:400 16px/1.5 Onest,Arial,sans-serif; box-shadow:0 8px 28px #1e514b24; }
.vershina-site .gf-combobox-option { min-height:46px; padding:12px 14px; overflow-wrap:anywhere; }
.vershina-site .gf-combobox-option:hover,
.vershina-site .gf-combobox-option.is-active { background:var(--brand-soft); outline:2px solid var(--brand); outline-offset:-2px; }
.vershina-site .gf-combobox-option[aria-selected=true] { color:var(--brand-deep); font-weight:650; }

.vm-main .vm-results-filter-panel>p { margin:0 0 22px; font-size:15px; color:var(--muted); }
.vm-main .vm-results-filter-fields { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; max-width:none; }
.vm-main .vm-results-filter-actions { margin-top:22px; }
.vm-main .vm-application-filters { display:grid; grid-template-columns:minmax(0,1fr) 150px auto; align-items:end; gap:20px; }
.vm-main .vm-search-filters,
.vm-main .vm-bonus-filters { display:grid; grid-template-columns:minmax(0,1fr) 140px auto; gap:20px; align-items:end; }
.vm-main .vm-simple-filters { display:flex; flex-wrap:wrap; align-items:end; gap:20px; }
.vm-main .vm-simple-filters .field { flex:1 1 250px; }
.vm-main .vm-simple-filters>.text-link { display:flex; align-items:center; min-height:46px; }
.vm-main .vm-local-work-filters { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); align-items:end; gap:20px; }
.vm-main .vm-local-work-filters .vm-owner-works-filter-actions { grid-column:1/-1; }
.vm-main .vm-owner-works-filters.vm-filter-panel>summary { display:none; }

@media(max-width:1100px) {
  .vm-main .reference-contest-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .vm-main .reference-contest-filters .vm-owner-filter-actions { grid-column:1/-1; }
  .vm-main .vm-works-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .vm-main .vm-works-filters>label:first-of-type { grid-column:1/-1; }
  .vm-main .vm-works-filters .reference-works-advanced { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .vm-main .vm-application-filters,
  .vm-main .vm-search-filters,
.vm-main .vm-bonus-filters { grid-template-columns:minmax(0,1fr) 140px; }
  .vm-main .vm-application-filters>button,
  .vm-main .vm-search-filters .vm-filter-actions,
  .vm-main .vm-bonus-filters .vm-filter-actions { grid-column:1/-1; justify-self:start; }
}
@media(max-width:700px) {
  .vm-main .vm-filter-panel { padding:20px; margin:22px 0 28px; border-radius:13px; }
  .vm-main .vm-owner-works-filters.vm-filter-panel { padding:0; }
  .vm-main .vm-owner-works-filters.vm-filter-panel>summary { display:flex; align-items:center; justify-content:space-between; min-height:50px; padding:12px 20px; }
  .vm-main .vm-local-work-filters { grid-template-columns:1fr; padding:10px 20px 20px; }
  .vm-main .vm-results-filter-fields { grid-template-columns:1fr; }
}
@media(max-width:650px) {
  .vm-main .reference-contest-filters,
  .vm-main .vm-works-filters,
  .vm-main .vm-works-filters .reference-works-advanced,
  .vm-main .vm-application-filters,
  .vm-main .vm-search-filters,
.vm-main .vm-bonus-filters { grid-template-columns:minmax(0,1fr); gap:20px; }
  .vm-main .vm-filter-panel .vm-owner-filter-actions,
  .vm-main .vm-filter-panel .gf-filter-actions,
  .vm-main .vm-filter-panel .vm-results-filter-actions,
  .vm-main .vm-filter-panel .vm-filter-actions { gap:10px; width:100%; }
  .vm-main .vm-filter-panel .vm-owner-filter-actions .btn,
  .vm-main .vm-filter-panel .gf-filter-actions .btn,
  .vm-main .vm-filter-panel .vm-results-filter-actions .btn,
  .vm-main .vm-filter-panel .vm-filter-actions .btn { flex:1 1 110px; min-width:0; padding-inline:12px; }
  .vm-main .vm-application-filters>button { width:100%; }
}
