.dimension-card header > div { min-width: 0; flex: 1; }
.dimension-card header > .dimension-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.clear-dimension { padding: 5px 7px; color: var(--muted); background: #fff; border: 1px solid var(--line); font: inherit; font-size: 11px; cursor: pointer; }
.clear-dimension:hover, .clear-dimension:focus-visible { color: var(--red); border-color: var(--red); }
.invert-control { display: flex; align-items: center; gap: 5px; flex: 0 0 auto; font-size: 12px; cursor: pointer; }
.invert-control input { accent-color: var(--ink); }
.range-form { display: flex; align-items: flex-end; gap: 8px; margin-top: 14px; }
.range-form label { flex: 1; min-width: 0; }
.range-form label span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 11px; }
.range-form input { width: 100%; min-width: 0; padding: 9px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 12px; }
.range-form input:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.range-form button { flex: 0 0 auto; padding: 10px; font-size: 12px; }
.range-status { margin: 6px 0 0; min-height: 16px; font-size: 11px; color: var(--muted); }
.range-status.bad { color: var(--red-dark); }
.distribution-option.selected { background: var(--red); border-color: var(--red-dark); }
.distribution-option.selected b::after { content: " ✓"; }
.dimension-card.inverted .distribution-option.selected b::after { content: " ×"; }
.dimension-card.inverted .distribution-option.selected { background: var(--ink); border-color: var(--ink); }
.filter-table { width: 100%; border-collapse: collapse; table-layout: fixed; margin-top: 18px; font-size: 12px; }
.filter-table th { padding: 10px; color: var(--muted); text-align: left; font-size: 11px; font-weight: 500; border-bottom: 1px solid var(--line); }
.filter-table th:nth-child(1) { width: 19%; }
.filter-table th:nth-child(2) { width: 28%; }
.filter-table td { padding: 14px 10px; vertical-align: top; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.6); overflow-wrap: anywhere; line-height: 1.8; }
.filter-table .candidate-name-button { white-space: normal; overflow: visible; padding: 0; font-size: 13px; font-weight: 700; }
.card-effect { white-space: pre-wrap; }
.card-information { color: var(--muted); }
.filter-tag { max-width: 100%; line-height: 1.6; background: var(--red); border-color: var(--red-dark); }
.filter-tag.excluded { background: var(--ink); border-color: var(--ink); }
.filter-tag > span { overflow-wrap: anywhere; }
.filter-tag button { flex-shrink: 0; }
@media (max-width: 760px) {
  .filter-table, .filter-table tbody, .filter-table tr, .filter-table td { display: block; width: 100%; }
  .filter-table thead { display: none; }
  .filter-table tr { border: 1px solid var(--line); margin: 10px 0; }
  .filter-table td { border-bottom: 0; padding: 8px 12px; }
  .filter-table td:first-child { border-bottom: 1px solid var(--line); padding: 12px; }
  .card-effect::before { content: "卡片效果"; display: block; color: var(--muted); font-size: 10px; margin-bottom: 3px; }
}
