/* The collapsed row always keeps its title, filter dropdown and actions visible. */
.card-filter-toolbar.is-collapsed{display:grid!important;grid-template-columns:minmax(0,1fr) auto 38px!important;grid-template-rows:auto!important;grid-template-areas:none!important;min-width:0!important;width:100%!important;max-width:100%!important;align-items:center!important;gap:12px!important}
.card-filter-toolbar.is-collapsed>.card-filter-title{grid-area:auto!important;grid-column:1!important;grid-row:1!important;min-width:0}
.card-filter-toolbar.is-collapsed>.card-filter-toggle{grid-column:2!important;grid-row:1!important}
.card-filter-toolbar.is-collapsed>.card-filter-actions{grid-area:auto!important;grid-column:3!important;grid-row:1!important;justify-self:stretch;align-self:stretch}
.card-filter-toggle{display:flex;align-items:center;justify-content:center;width:38px;height:38px;padding:8px;border:1px solid var(--news-border);border-radius:8px;background:var(--news-input-background,var(--news-background));color:var(--news-text);font:13px var(--font-body);cursor:pointer}
.card-filter-toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.card-filter-toggle[aria-expanded=true]{border-color:var(--news-active-border);background:color-mix(in srgb,var(--news-muted-text) 22%,var(--news-background))}.card-filter-toggle[hidden]{display:none!important}
.card-filter-panel{position:fixed;inset:auto;margin:0;box-sizing:border-box;padding:12px;border:1px solid var(--news-border);border-radius:9px;background:var(--news-background);color:var(--news-text);box-shadow:0 8px 24px #0006;z-index:70;overflow:auto;overscroll-behavior:contain;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));gap:12px}
.card-filter-panel[hidden]{display:none!important}.card-filter-panel>*{grid-area:auto!important;grid-column:auto!important;grid-row:auto!important;width:auto!important;min-width:0!important;margin:0!important}
.card-filter-panel:popover-open{display:grid}.card-filter-panel::backdrop{background:transparent;pointer-events:none}

.card-filter-panel .account-overview-options{grid-template-columns:repeat(2,minmax(0,1fr))}.card-filter-panel .account-month-filter .account-overview-options{grid-template-columns:repeat(6,minmax(0,1fr))}.card-filter-panel .account-overview-options button{width:100%;min-width:0}

/* Shared choice groups, matching the Article card. */
:is(.card-choice-filter,.article-filter){min-width:0;min-height:0;margin:0;border:1px solid var(--news-border);border-radius:9px;background:var(--news-input-background,var(--news-background));padding:9px}:is(.card-choice-filter,.article-filter) legend,:is(.card-choice-filter,.article-filter) h2{font:14px var(--font-body);line-height:20px;color:var(--news-text);margin:0 0 7px;padding:0 0 3px;border-bottom:1px solid var(--news-border);max-width:100%;width:100%}:is(.card-choice-filter,.article-filter) legend{float:left}:is(.card-choice-filter,.article-filter) legend+*{clear:both}:is(.card-choice-options,.article-options){display:grid;grid-template-columns:repeat(var(--option-columns),minmax(0,1fr));gap:4px}:is(.card-choice-options,.article-options) button{min-width:0;padding:6px 4px;min-height:30px;line-height:18px;font-size:12px;color:var(--news-text);background:var(--news-background);border:1px solid var(--news-border);cursor:pointer}:is(.card-choice-options,.article-options) button[aria-pressed=true]{border-color:var(--news-active-border);background:color-mix(in srgb,var(--news-muted-text) 22%,var(--news-background));font-weight:600}

:is(.card-choice-options,.article-options) button{width:100%}
