.works-section .works-filter-heading { align-items: flex-start; }
.works-filter-trigger { display: flex; align-items: center; gap: 8px; flex-shrink: 0; min-height: 44px; margin: 6px 0 0; padding: 8px 0 8px 8px; border: 0; background: none; font-size: 14px; }
.works-filter-trigger svg { width: 24px; height: 24px; fill: #fff; stroke: currentColor; stroke-width: 1.5; }
.works-filter-summary { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: -12px 0 30px; padding-bottom: 16px; border-bottom: 1px solid var(--line); font-size: 12px; color: #626b63; }
.works-filter-summary p { margin: 0; overflow-wrap: anywhere; }
.works-filter-summary > span { flex-shrink: 0; }
.works-filter-empty { grid-column: 1 / -1; text-align: center; padding: 40px 12px; }
.works-filter-empty p { margin: 0 0 24px; }
#works-filter-dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 34px 30px 24px; overflow: auto; border-radius: 4px; color: var(--ink); }
#works-filter-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; padding: 0; border: 0; background: none; font-size: 28px; }
#works-filter-title { margin: 0 35px 30px 0; font-size: 24px; font-weight: 600; line-height: 1.5; letter-spacing: .02em; }
#works-filter-form fieldset { min-width: 0; margin: 0 0 24px; padding: 0; border: 0; }
#works-filter-form legend { margin-bottom: 12px; padding: 0; font-size: 14px; font-weight: 600; }
#works-filter-form legend small { font-size: 12px; font-weight: 400; }
#works-filter-form .works-audience-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#works-filter-form .works-audience-options label { position: relative; cursor: pointer; }
#works-filter-form .works-audience-options input { position: absolute; opacity: 0; width: 1px; height: 1px; }
#works-filter-form .works-audience-options span { display: block; padding: 14px 6px; border: 1px solid var(--line); border-radius: 4px; text-align: center; font-size: 15px; }
#works-filter-form .works-audience-options small { display: block; margin-top: 5px; font-size: 11px; }
#works-filter-form .works-audience-options input:checked + span { color: #fff; background: var(--green); border-color: var(--green); }
#works-filter-form .works-audience-options input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 3px; }
.works-select-field { display: grid; gap: 12px; margin-bottom: 24px; font-size: 14px; font-weight: 600; }
#works-filter-form select { width: 100%; min-height: 48px; padding: 12px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: #fff; font-size: 16px; font-weight: 400; }
#works-maker-options { display: grid; gap: 8px; max-height: 250px; overflow: auto; padding: 4px; margin: -4px; }
#works-filter-form .works-maker-option { display: flex; gap: 12px; align-items: center; min-height: 54px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; cursor: pointer; }
#works-filter-form .works-maker-option:has(input:checked) { border-color: var(--green); background: var(--paper); }
#works-filter-form .works-maker-option input { width: 18px; height: 18px; flex: 0 0 18px; margin: 0; accent-color: var(--green); }
#works-filter-form .works-maker-option span { font-size: 14px; overflow-wrap: anywhere; }
#works-filter-form .works-maker-option small { display: block; margin-top: 4px; color: #626b63; font-size: 12px; }
#works-filter-form .works-maker-help { font-size: 12px; color: #626b63; margin: 10px 0 0; }
#works-filter-count { font-size: 12px; color: #626b63; margin: 0 0 14px; }
#works-filter-apply { width: 100%; min-height: 48px; font-size: 15px; border-radius: 4px; }
#works-filter-reset { display: block; min-height: 44px; margin: 8px auto 0; border: 0; background: none; font-size: 13px; text-decoration: underline; text-underline-offset: 5px; }
html:has(#works-filter-dialog[open]) { overflow: hidden; scrollbar-gutter: stable; }
@media(max-width:700px) {
  .works-filter-trigger { gap: 5px; margin: 0; font-size: 12px; }
  .works-filter-trigger svg { width: 22px; height: 22px; }
  .works-section .works-filter-heading { gap: 12px; }
  .works-section .works-filter-heading > div { min-width: 0; }
  .works-section .works-filter-heading span { font-size: 15px; }
  .works-filter-summary { gap: 8px; font-size: 11px; margin-top: -4px; }
  #works-filter-dialog { padding: 28px 20px 18px; }
  #works-filter-title { font-size: 21px; margin-bottom: 24px; }
  #works-filter-form .works-audience-options { gap: 8px; }
  #works-filter-form .works-audience-options span { font-size: 13px; }
  #works-filter-form .works-audience-options small { font-size: 10px; }
}
