/* Advanced search (/servers): filters built up as readable sentences */
.as-page { color: var(--ink); padding-bottom: 56px; }
.as-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 36px 0 20px; }
.as-title h1 { margin: 0; font-size: 40px; font-weight: 800; letter-spacing: -.03em; }
.as-title p { margin: 6px 0 0; color: var(--ink-2); }
.as-games { margin-top: 12px; }
.as-games .hint { margin: 0; }
.as-builder { padding: 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-2); }
.as-panel-go button:hover { background: var(--brand); }
.as-filters { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; margin-top: 12px; }
.as-filter { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 6px 0 12px; border-radius: 8px; background: var(--surface-3); border: 1px solid var(--line-2); color: var(--ink); font-size: 14px; }
.as-filter em { font-style: normal; color: var(--ink-2); }
.as-filter b { color: var(--white); font-weight: 600; }
.as-mono { font-family: var(--mono); font-weight: 500; }
.as-filter-x { display: inline-flex; padding: 4px; border-radius: 6px; color: var(--ink-2); }
.as-filter-x:hover { background: var(--line-2); color: var(--white); }
.as-add { position: relative; }
.as-panel { position: absolute; left: 0; top: 44px; z-index: 20; display: grid; grid-template-columns: repeat(4, minmax(180px, 1fr)); gap: 18px; width: min(940px, calc(100vw - 48px)); padding: 18px; border-radius: 12px; background: var(--surface-3); border: 1px solid var(--line-2); box-shadow: var(--shadow-panel); }
.as-panel fieldset { display: flex; flex-direction: column; gap: 10px; min-width: 0; margin: 0; padding: 0; border: 0; }
.as-panel legend { margin-bottom: 4px; color: var(--ink-3); font-size: 12px; font-weight: 600; }
.as-panel label { display: flex; flex-direction: column; gap: 4px; color: var(--ink); font-size: 13px; }
.as-panel select, .as-panel input[type=text], .as-panel input[type=number] { height: 36px; padding: 0 10px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--white); font: inherit; font-size: 14px; }
.as-panel select:focus, .as-panel input:focus { outline: 2px solid var(--brand); outline-offset: 0; }
.as-panel .as-check { flex-direction: row; align-items: center; gap: 8px; font-size: 14px; }
.as-panel .as-check input { width: 16px; height: 16px; accent-color: var(--brand); }
.as-panel small { color: var(--ink-3); font-size: 12px; line-height: 1.6; }
.as-panel code { padding: 1px 5px; border-radius: 4px; background: var(--surface-2); color: var(--ink); font: 12px "Fira Code", monospace; }
.as-panel-go { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 10px; }
.as-panel-x { position: absolute; top: 10px; right: 10px; display: inline-flex; padding: 4px; border-radius: 6px; color: var(--ink-2); font-size: 18px; }
.as-panel-x:hover { background: var(--line-2); color: var(--white); }
.as-results-head { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; padding-bottom: 10px; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 14px; }
.as-results-head b { color: var(--white); }
.as-sort { display: flex; align-items: center; gap: 8px; }
.as-sort select { height: 34px; padding: 0 10px; border-radius: 7px; background: var(--surface-3); border: 1px solid var(--line-2); color: var(--white); font: inherit; font-size: 14px; }

@media (max-width: 1100px) {
  .as-panel { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
}
@media (max-width: 860px) {
  .as-title { flex-direction: column; align-items: flex-start; }
  .as-panel { position: static; grid-template-columns: 1fr; width: auto; margin-top: 8px; }
  .as-add, .as-add[open] { width: 100%; }
}
