/* Compact category filters (T-234): collapsible groups, tight rows, counts on the right. */
body.sector-shell[data-theme] .filter-panel { padding: 6px 14px; }
body.sector-shell[data-theme] .filter-panel .filter-group { border-bottom: 1px solid var(--line, #eceef1); }
body.sector-shell[data-theme] .filter-panel .filter-group:last-of-type { border-bottom: 0; }
body.sector-shell[data-theme] .filter-panel .filter-group > summary { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 10px 0; cursor: pointer; list-style: none; font-size: 13px; font-weight: 700; color: var(--ink, #1f2933); }
body.sector-shell[data-theme] .filter-panel .filter-group > summary::-webkit-details-marker { display: none; }
body.sector-shell[data-theme] .filter-panel .filter-group > summary::after { content: ""; width: 7px; height: 7px; margin-inline-start: auto; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .55; transition: transform .15s; }
body.sector-shell[data-theme] .filter-panel .filter-group[open] > summary::after { transform: rotate(-135deg) translateY(-1px); }
body.sector-shell[data-theme] .filter-panel .filter-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent, #2563eb); }
body.sector-shell[data-theme] .filter-panel .filter-options { display: grid; gap: 1px; padding-bottom: 8px; }
body.sector-shell[data-theme] .filter-panel .filter-option { display: flex; align-items: center; gap: 8px; min-height: 30px; padding: 2px 6px; margin: 0 -6px; border-radius: 6px; font-size: 13px; line-height: 1.25; cursor: pointer; }
body.sector-shell[data-theme] .filter-panel .filter-option:hover { background: var(--te-color-surface-2, #f5f6f8); }
body.sector-shell[data-theme] .filter-panel .filter-option input { width: 15px; height: 15px; margin: 0; flex: 0 0 auto; accent-color: var(--accent, #2563eb); }
body.sector-shell[data-theme] .filter-panel .filter-option span:not(.swatch) { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.sector-shell[data-theme] .filter-panel .filter-option small { flex: 0 0 auto; color: var(--muted, #8a94a3); font-size: 11px; font-variant-numeric: tabular-nums; }
body.sector-shell[data-theme] .filter-panel .filter-option .swatch { width: 14px; height: 14px; border-radius: 50%; flex: 0 0 auto; }
body.sector-shell[data-theme] .filter-panel .filter-search { min-height: 34px; margin: 0 0 6px; padding: 6px 10px; font-size: 13px; }
/* Values after the sixth hide until "Show more" is ticked; no script needed. */
body.sector-shell[data-theme] .filter-panel .filter-option[data-more] { display: none; }
body.sector-shell[data-theme] .filter-panel .filter-group:has(.filter-more input:checked) .filter-option[data-more] { display: flex; }
body.sector-shell[data-theme] .filter-panel .filter-more { display: inline-flex; margin: -4px 0 8px; font-size: 12px; font-weight: 650; color: var(--accent, #2563eb); cursor: pointer; }
body.sector-shell[data-theme] .filter-panel .filter-more input { position: absolute; opacity: 0; width: 1px; height: 1px; }
body.sector-shell[data-theme] .filter-panel .filter-group:has(.filter-more input:checked) .filter-more { display: none; }
body.sector-shell[data-theme] .filter-panel .te-field { margin: 0 0 10px; font-size: 13px; }
body.sector-shell[data-theme] .filter-panel legend { margin-bottom: 4px; font-size: 13px; font-weight: 700; }
body.sector-shell[data-theme] .filter-panel .filter-links { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; font-size: 13px; }
body.sector-shell[data-theme] .filter-panel .filter-actions { position: sticky; bottom: 0; display: flex; gap: 6px; padding: 10px 0; background: var(--card, #fff); }
body.sector-shell[data-theme] .filter-panel .filter-actions .te-btn { flex: 1; min-height: 38px; font-size: 13px; }
body.sector-shell[data-theme] .filter-panel .filter-links { gap: 1px; padding-bottom: 8px; }
body.sector-shell[data-theme] .filter-panel .filter-links li { margin: 0; padding: 0; border: 0; background: none; }
body.sector-shell[data-theme] .filter-panel a.filter-option { box-sizing: border-box; width: 100%; min-height: 30px; margin: 0; padding: 2px 6px; border: 0; background: none; box-shadow: none; color: inherit; font-weight: 500; text-decoration: none; }
body.sector-shell[data-theme] .filter-panel a.filter-option[aria-current] { background: color-mix(in srgb, var(--accent, #2563eb) 10%, transparent); color: var(--accent, #2563eb); font-weight: 700; }
body.sector-shell[data-theme] .filter-panel .filter-price { display: grid; gap: 6px; padding-bottom: 6px; }
body.sector-shell[data-theme] .filter-panel .filter-price label { display: grid; gap: 2px; font-size: 11px; color: var(--muted, #8a94a3); }
body.sector-shell[data-theme] .filter-panel .filter-price input[type="range"] { width: 100%; accent-color: var(--accent, #2563eb); }
body.sector-shell[data-theme] .filter-panel .filter-actions { display: flex; gap: 6px; }
body.sector-shell[data-theme] .filter-panel .filter-actions > * { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; flex: 1 1 0; min-width: 0; min-height: 34px; padding: 6px 8px; font-size: 13px; line-height: 1.2; white-space: normal; text-align: center; overflow-wrap: anywhere; border-radius: 8px; }
body.sector-shell[data-theme] .filter-panel .filter-price label { margin: 0; }
body.sector-shell[data-theme] .filter-panel .filter-price .filter-price-value { font-size: 13px; font-weight: 600; color: var(--ink, #111827); font-variant-numeric: tabular-nums; }
body.sector-shell[data-theme] .filter-panel .filter-price input.te-input { height: auto; min-height: 0; padding: 0; border: 0; background: none; box-shadow: none; }
/* T-333: a long value (e.g. an importer's full company name) wraps inside the panel instead of running out of it. */
body.sector-shell[data-theme] .filter-panel, body.sector-shell[data-theme] .filter-panel .filter-group { min-width: 0; }
body.sector-shell[data-theme] .filter-panel .filter-options { grid-template-columns: minmax(0, 1fr); }
body.sector-shell[data-theme] .filter-panel .filter-option { min-width: 0; align-items: flex-start; }
body.sector-shell[data-theme] .filter-panel .filter-option input, body.sector-shell[data-theme] .filter-panel .filter-option small { margin-top: 2px; }
body.sector-shell[data-theme] .filter-panel .filter-option span:not(.swatch) { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; overflow-wrap: anywhere; }
