/* Production filter grammar: progressive disclosure, stable controls, no ranking. */
.cq-tools{box-sizing:border-box;max-width:1440px;width:calc(100% - 48px);margin:14px auto 28px;color:var(--ink,#242720);font:14px/1.6 system-ui,sans-serif}
.cq-tools *{box-sizing:border-box;min-width:0}.cq-tools[hidden]{display:none!important}
.cq-panel{border:1px solid #c8bfaf;background:#f9f5ec;border-radius:3px}
.cq-panel>summary{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;cursor:pointer;padding:16px 20px;font-weight:650;font-size:16px;min-height:52px}
.cq-muted,.cq-help{color:#65584a;font-size:13px;font-weight:400}.cq-help{margin:6px 0 12px;line-height:1.6}.cq-body{padding:0 20px 20px}
.cq-tools fieldset{border:0;padding:0;margin:20px 0;min-width:0}.cq-tools legend{font-weight:650;font-size:15px;margin-bottom:8px}
.cq-chip-row{display:flex;flex-wrap:wrap;gap:8px}.cq-tools button,.cq-tools select{font:inherit;color:inherit}
.cq-tools button{cursor:pointer;white-space:normal}.cq-chip,.cq-group-button,.cq-topic,.cq-active button,#cqContextShortcut{border:1px solid #b9ab98;background:#fffdf7;border-radius:3px;padding:9px 12px;min-height:42px}
.cq-chip{display:inline-flex;gap:12px;align-items:center}.cq-chip small,.cq-topic small,.cq-group summary small{font:12px/1.5 system-ui,sans-serif;color:inherit;opacity:.8}
.cq-tools button[aria-pressed=true]{background:#783730;color:#fffdf7;border-color:#783730}.cq-tools button:disabled{cursor:default;opacity:.6}
.cq-tools select{width:100%;max-width:100%;background:#fffdf7;padding:11px 12px;border:1px solid #b9ab98;border-radius:3px;min-height:44px}.cq-tools select:disabled{opacity:1;color:#756b5d;background:#ece6db}
.cq-tools label{display:block;margin:4px 0 7px}.cq-mode{display:flex;flex-wrap:wrap;gap:10px 22px}.cq-mode legend{font-size:13px;font-weight:500}.cq-mode label{display:inline-flex;gap:8px;align-items:center;cursor:pointer;min-height:38px}.cq-mode input{width:18px;height:18px;accent-color:#783730}
.cq-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;align-items:start}
.cq-group{border:1px solid #d3c8b7;background:#fffdf7;border-radius:3px;overflow:hidden}.cq-group>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;font-weight:600;cursor:pointer;min-height:48px}.cq-group>summary:before{content:'+';font-size:18px;flex-shrink:0}.cq-group[open]>summary:before{content:'−'}.cq-group>summary small{margin-left:auto}
.cq-group-body{padding:0 12px 12px;display:flex;flex-direction:column;gap:8px}.cq-group-button{font-size:12px!important;text-align:center}.cq-topic{display:flex;justify-content:space-between;align-items:center;gap:10px;text-align:left}.cq-topic span{flex:1}.cq-definition{font:12px/1.6 system-ui,sans-serif;color:#65584a;margin:0 4px 8px}.cq-definition summary{cursor:pointer;min-height:32px;padding:5px 0}.cq-definition p{margin:6px 0}
.cq-advanced{border-top:1px solid #c8bfaf;margin:20px 0 0;padding-top:12px}.cq-advanced>summary{cursor:pointer;font-weight:600;min-height:44px;padding:8px 0}.cq-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.cq-field{min-width:0}.cq-field label{font-weight:500}.cq-field .cq-help{font-size:12px}
.cq-actions{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin:14px 0 4px}.cq-actions #eefQuerySummary{flex:1 1 360px;margin:0;overflow-wrap:anywhere}.cq-actions .eef-button{min-height:42px}
.cq-active{display:flex;flex-wrap:wrap;gap:7px;margin-top:9px}.cq-active button{font-size:12px;padding:6px 10px;min-height:36px}.cq-notice{padding:11px 14px;background:#f1e7d5;border-left:3px solid #986b35;overflow-wrap:anywhere}.cq-anchor{display:block;height:0;scroll-margin-top:100px}
.cq-match{margin:14px 0 20px;padding:13px 15px;background:#eee6d5;border-left:3px solid #8e302b;font:14px/1.65 system-ui,sans-serif;overflow-wrap:anywhere}.cq-match p{margin:5px 0}.cq-match strong{font-weight:650}.cq-match button{font:600 13px/1.5 system-ui,sans-serif;cursor:pointer;background:none;border:0;color:#793630;text-decoration:underline;padding:8px 0}.cq-inline-note{font:12px/1.6 system-ui,sans-serif!important;color:#793630!important;margin:5px 0 12px!important}.cq-empty{padding:18px;background:#f5eee1;font:15px/1.7 system-ui,sans-serif;grid-column:1/-1}
.eef-rollout-ready .party-section[hidden],.eef-rollout-ready .party-group[hidden],.eef-rollout-ready article.candidate[hidden],.eef-rollout-ready [data-cc-evidence][hidden]{display:none!important}
.eef-rollout-ready #eefQueryShareDialog[open]{display:block}.cq-tools :is(button,select,summary,input):focus-visible{outline:3px solid #783730;outline-offset:3px}
@media(max-width:960px){.cq-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.cq-tools{width:calc(100% - 24px);margin:12px auto 22px}.cq-panel>summary{padding:13px 14px;font-size:15px}.cq-muted{width:100%;font-size:12px}.cq-body{padding:0 13px 14px}.cq-groups,.cq-fields{grid-template-columns:1fr}.cq-actions{gap:8px}.cq-actions #eefQuerySummary{flex-basis:100%;font-size:13px}.cq-actions>.eef-button{flex:1 1 135px;width:auto}.cq-tools select{font-size:14px}.cq-chip{padding:8px 10px}.cq-match{padding:10px 12px;font-size:13px}}
@media(prefers-reduced-motion:reduce){.cq-tools *{scroll-behavior:auto!important}}
/* Query sharing belongs to the same disclosure layer, independent of old CSS. */
#eefQueryShareDialog{width:min(620px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:0;border:1px solid #b9ab98;border-radius:5px;overflow:auto;background:#fffdf6;color:#242720;font:14px/1.6 system-ui,sans-serif}
#eefQueryShareDialog::backdrop{background:rgba(0,0,0,.48)}.eef-query-share__inner{padding:20px}.eef-query-share__head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.eef-query-share__head h2{font-size:22px;line-height:1.25;margin:0 0 10px}.eef-query-share__actions{display:flex;gap:9px;flex-wrap:wrap;margin:12px 0}.eef-query-share__inner>label{display:block;font-weight:600;margin-top:12px}.eef-query-share__inner textarea{box-sizing:border-box;width:100%;resize:vertical;min-height:90px;font:12px/1.6 ui-monospace,monospace}.eef-query-privacy{font-size:12px;color:#65584a}.eef-query-share :focus-visible{outline:3px solid #783730;outline-offset:3px}.cq-match summary{cursor:pointer;font-size:13px;font-weight:600;min-height:38px;padding-top:8px}.cq-match details>a{display:inline-block;color:#783730;text-decoration:underline;font-size:13px}
