/* Filters flow with the page; only the creator queue has its own list scroll. */
.selection-filter-area{min-width:0;border-bottom:1px solid var(--line);background:#fff;scroll-margin-top:0}
.selection-context-card{min-width:0;margin-bottom:10px}
.selection-context-card[hidden]{display:none}
.selection-card-local{min-width:0}
.selection-card-local .demand-filter-tags span{border:1px solid var(--line2)}
/* Keep the queue controls available in code while business reviews their place in the UI. */
.selection-page .queue-head #business-filters>.business-filter{display:none}
.selection-page .selection-filters{display:block;padding:0 20px;color:var(--ink);font-size:13px}
.sf-heading{display:flex;align-items:center;gap:12px;min-height:40px}
.sf-heading strong{font-size:13px;font-weight:600}
.sf-heading>span{color:var(--sub);font-size:11px}
.sf-heading-actions{display:flex;align-items:center;gap:6px}
.sf-heading-actions button{border:0;border-radius:5px;background:transparent;padding:6px 8px;font-size:12px;color:var(--sub);cursor:pointer;transition:background-color .15s ease,color .15s ease}
.sf-heading-actions button:hover{background:var(--workspace-hover);color:var(--ink)}
.sf-heading-actions button:active{transform:translateY(1px)}
.sf-heading-actions .sf-more-toggle{border:0;background:transparent;color:var(--ink)}
.sf-heading-actions .sf-more-toggle[aria-expanded=true]{background:var(--workspace-hover)}
.sf-more-toggle b{display:inline-flex;align-items:center;justify-content:center;min-width:16px;height:16px;margin-left:5px;padding:0 4px;border-radius:8px;background:var(--ink);color:#fff;font-size:10px;font-weight:600;box-sizing:border-box}
.sf-group{display:block;border-top:1px solid var(--line2);min-height:44px}
.sf-group-no-heading{border-top:0}
.sf-group h3,.sf-categories h3{margin:0;font-size:13px;font-weight:600;color:var(--ink)}
.sf-group>h3{display:flex;align-items:center;min-height:36px;padding-top:4px;box-sizing:border-box}
.sf-group-compact{display:grid;grid-template-columns:106px minmax(0,1fr);align-items:stretch}
.sf-group-compact>h3{grid-column:1;grid-row:1;justify-content:flex-start;min-height:0;padding:0;text-align:left}
.sf-group-compact>.sf-group-rows{grid-column:2;grid-row:1;padding:5px 0}
.sf-group-compact .sf-subrow{display:block}
.sf-group h3 small,.sf-categories h3 small{display:block;margin-top:4px;padding-right:14px;color:var(--sub);font-size:10px;font-weight:400;line-height:1.45}
.sf-group-rows{min-width:0;padding:0 0 5px}
.sf-group-no-heading .sf-group-rows{padding-top:5px}
.sf-subrow{display:grid;grid-template-columns:106px minmax(0,1fr);align-items:center;min-height:44px}
.sf-subrow-label{font-size:12px;color:var(--sub)}
.sf-fields{display:flex;flex-wrap:wrap;gap:4px 18px;padding:3px 0;min-width:0}
.sf-trigger{display:inline-flex;align-items:center;gap:8px;min-height:34px;padding:5px 8px;border:0;border-radius:5px;background:transparent;color:var(--ink);font-size:13px;font-weight:400;white-space:nowrap;cursor:pointer}
.sf-categories{display:grid;grid-template-columns:106px minmax(0,1fr);min-height:50px;align-items:center;border-top:1px solid var(--line2)}
.sf-more-groups{margin:0 -20px;padding:0 20px 4px;border-top:1px solid var(--line2);background:#fafafa}
.sf-more-groups>.sf-categories{border-top:0}
.sf-more-groups[hidden]{display:none}
.sf-category-options{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:5px 0}
.sf-category-options button{border:0;border-radius:5px;padding:7px 10px;font:inherit;background:transparent;color:var(--ink);cursor:pointer}
.sf-category-options button[aria-pressed=true]{background:var(--workspace-active);font-weight:600}
.sf-category-options button:hover{background:var(--workspace-hover)}
.sf-category-options>span{margin-left:6px;font-size:11px;color:var(--faint)}
.sf-categories[hidden]{display:none}
.sf-pending-badge{font-size:10px;font-weight:400;line-height:1.5;color:var(--sub);background:var(--workspace-hover);padding:1px 4px;border-radius:3px;white-space:nowrap}
.sf-trigger.is-pending{color:var(--sub)}
.sf-category-options>.sf-category-choice{display:inline-flex;align-items:center;margin:0;font-size:13px;color:var(--ink);border-radius:5px}
.sf-category-choice.is-active{background:var(--workspace-active)}
.sf-category-choice [data-sf-category]{padding-right:7px}
.sf-category-choice [data-sf-category-open]{padding:7px 9px 7px 4px;color:var(--sub)}
.sf-category-browser{display:grid;grid-template-columns:145px minmax(0,1fr);height:224px;min-width:0}
.sf-category-branches{overflow:auto;border-right:1px solid var(--line2);padding:2px 5px}
.sf-category-branches button{display:flex;align-items:center;justify-content:space-between;width:100%;padding:8px;border:0;border-radius:4px;background:transparent;text-align:left;color:var(--ink);cursor:pointer}
.sf-category-branches button[aria-pressed=true],.sf-category-branches button:hover{background:var(--workspace-hover)}
.sf-category-branches button span{color:var(--sub);margin-left:6px}
.sf-category-values{display:block!important;overflow:auto;padding:2px 7px!important}
.sf-category-values>.sf-muted{padding:6px;line-height:1.6}
.sf-category-matches{min-height:100px}
.sf-popover-industry .sf-popover-body{padding:0;overflow:hidden}
.sf-industry-cascade{display:grid;grid-template-columns:108px minmax(0,1fr);min-height:144px}
.sf-industry-roots{padding:6px;border-right:1px solid var(--line2);background:#fafafa}
.sf-industry-roots button{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:34px;padding:6px 8px;border:0;border-radius:5px;background:transparent;color:var(--ink);text-align:left;cursor:default}
.sf-industry-roots button[aria-selected=true]{background:var(--workspace-active);font-weight:600}
.sf-industry-roots button i{color:var(--sub);font-size:19px;font-style:normal;font-weight:400;line-height:1}
.sf-industry-children{padding:6px 8px}
.sf-industry-children label{display:flex;align-items:center;gap:8px;min-height:34px;padding:0 6px;border-radius:5px;color:var(--ink);cursor:pointer}
.sf-industry-children label:hover{background:var(--workspace-hover)}
.sf-industry-children label:has(input:disabled){color:var(--faint);cursor:default}
.sf-industry-children label:has(input:disabled):hover{background:transparent}
.sf-popover-industry .sf-confirm{margin-left:auto}
.sf-popover-industry .sf-popover-actions{min-height:36px;padding:4px 10px}
.sf-option-group{margin:0}
.sf-option-group[hidden]{display:none}
.sf-option-group h4{margin:5px 6px 2px;font-size:11px;font-weight:500;color:var(--sub)}
.sf-option-description{display:block;font-size:10px;color:var(--sub);font-weight:400;line-height:1.5;margin-top:2px}
@media(max-width:420px){.sf-category-browser{grid-template-columns:105px minmax(0,1fr)}.sf-category-branches button{font-size:12px;padding:8px 5px}.sf-category-values{padding:2px 4px!important}.sf-industry-cascade{grid-template-columns:108px minmax(0,1fr)}}
.sf-cooperation-preview{border:0;padding:4px 12px;margin:0;display:grid;gap:10px}
.sf-cooperation-preview label{display:grid;gap:5px;font-size:12px}
.sf-cooperation-preview select,.sf-cooperation-preview input{width:100%;box-sizing:border-box;border:1px solid var(--line);padding:7px;border-radius:4px;background:var(--workspace-hover);color:var(--sub)}
.sf-popover button:disabled,.sf-options:has(input:disabled) label:has(input:disabled){cursor:default}
.sf-popover-actions>.sf-confirm:disabled{background:var(--workspace-hover);color:var(--sub)}
.sf-trigger i{width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg) translateY(-2px);opacity:.55;margin-left:2px}
.sf-trigger[aria-expanded=true] i{transform:rotate(225deg) translate(-1px,-1px)}
.sf-trigger:hover,.sf-trigger[aria-expanded=true]{background:var(--workspace-hover)}
.sf-trigger.is-active{background:var(--workspace-active);font-weight:400}
.sf-trigger b{font-size:10px;font-weight:500;color:var(--sub)}
.sf-trigger:disabled{color:var(--faint);opacity:.65;cursor:default;background:transparent}
.sf-selected{display:flex;align-items:flex-start;gap:14px;min-height:34px;padding:4px 0;border-top:0;font-size:11px}
.sf-selected>span{width:68px;flex-shrink:0;color:var(--sub);padding-top:5px}
.sf-selected-values{display:flex;gap:5px;flex-wrap:wrap;flex:1;min-width:0;}
.sf-selected-values>button{display:flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:5px;background:#fff;font-size:10.5px;line-height:1.3;color:var(--ink);padding:4px 6px;max-width:360px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}
.sf-selected-values>button span{margin-left:auto;flex-shrink:0;color:var(--sub)}
.sf-selected-values>.sf-muted{padding:5px 8px}
.sf-selected #clear-business-filters{margin-left:auto;white-space:nowrap;padding:5px 0;border:0;background:transparent;color:var(--sub);cursor:pointer;font-size:11px}
.sf-muted{color:var(--sub);font-size:11px}
.sf-popover{position:fixed;z-index:140;display:flex;flex-direction:column;background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:8px;box-shadow:0 6px 20px rgba(0,0,0,.11);font-size:13px;overflow:hidden}
.sf-popover button,.sf-popover input{font:inherit}
.sf-popover-head{display:flex;align-items:center;justify-content:space-between;padding:8px 12px 5px;flex-shrink:0}
.sf-popover-head strong{font-weight:550}
.sf-popover-head button{border:0;background:transparent;color:var(--sub);font-size:19px;padding:0 4px;cursor:pointer}
.sf-hint{margin:0;padding:0 12px 6px;font-size:11px;color:var(--sub);line-height:1.6}
.sf-popover-body{min-height:0;overflow:auto;overscroll-behavior:contain;padding:0 6px 5px}
.sf-single-options,.sf-range-presets{display:flex;flex-direction:column}
.sf-single-options button,.sf-range-presets button{padding:6px 10px;min-height:32px;text-align:left;border:0;border-radius:4px;background:transparent;cursor:pointer;color:var(--ink)}
.sf-single-options button:hover,.sf-range-presets button:hover{background:var(--workspace-hover)}
.sf-range-presets button[aria-pressed="true"]{background:var(--workspace-hover);font-weight:600;box-shadow:inset 3px 0 currentColor}
.sf-single-options button[aria-pressed=true]{font-weight:600;background:var(--workspace-hover)}
.sf-single-options button[aria-pressed=true]::after{content:'✓';float:right}
.sf-options{display:grid;gap:0;padding:2px 0}
.sf-options label{display:flex;align-items:flex-start;gap:8px;min-height:32px;padding:6px 6px;line-height:1.5;border-radius:4px;cursor:pointer;overflow-wrap:anywhere}
.sf-options label[hidden]{display:none}
.sf-options .sf-min-covers{margin-left:auto;flex-shrink:0;border:1px solid var(--line);border-radius:4px;padding:1px 4px;font-size:11px;background:#fff;color:var(--sub)}
.sf-modes{display:flex;gap:2px;margin:2px 8px 6px;padding:2px;background:var(--workspace-hover);border-radius:5px}
.sf-modes button{flex:1;border:0;background:none;padding:5px 0;border-radius:4px;font-size:12px;color:var(--sub);cursor:pointer}
.sf-modes button[aria-selected=true]{background:#fff;color:var(--ink);font-weight:500;box-shadow:0 0 0 1px var(--line)}
.sf-modes b{font-size:10px;font-weight:500;margin-left:3px;color:var(--sub)}
.sf-options label:hover{background:var(--workspace-hover)}
.sf-popover input[type=checkbox]{width:14px;height:14px;flex-shrink:0;margin:2px 0 0;accent-color:var(--ink);cursor:pointer}
.sf-option-search{display:block;width:calc(100% - 16px);margin:4px 8px 8px;padding:6px 8px;border:1px solid var(--line);border-radius:5px;background:#fff;box-sizing:border-box;color:var(--ink)}
.sf-range{display:flex;align-items:flex-end;gap:8px;padding:12px 8px 5px}
.sf-quote-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:0 4px 5px}
.sf-quote-format{min-width:0;padding:0 4px}
.sf-quote-format+.sf-quote-format{border-left:1px solid var(--line2);padding-left:12px}
.sf-quote-format h4{margin:4px 10px 2px;font-size:12px;font-weight:600}
.sf-quote-format .sf-range{gap:4px;padding:6px 4px 3px}
.sf-quote-format .sf-range input{padding:6px 4px}
.sf-range label{display:grid;gap:7px;flex:1;min-width:0;color:var(--sub);font-size:11px}
.sf-range>span{padding-bottom:10px;color:var(--sub)}
.sf-range input,.sf-text-label input{width:100%;padding:6px 8px;border:1px solid var(--line);border-radius:5px;box-sizing:border-box;color:var(--ink);background:#fff}
.sf-text-label{display:grid;gap:8px;padding:10px;color:var(--sub)}
.sf-error{color:var(--danger);font-size:11px;line-height:1.5;margin:4px 8px 0}
.sf-error:empty{display:none}
.sf-popover-actions{flex-shrink:0;display:flex;align-items:center;gap:12px;min-height:40px;padding:5px 12px;box-sizing:border-box;border-top:1px solid var(--line)}
.sf-popover-actions>span{margin-left:auto}
.sf-popover-actions>button{border:0;border-radius:5px;padding:5px 10px;cursor:pointer;color:var(--ink);background:transparent}
.sf-popover-actions>button:first-child{padding-left:0;color:var(--sub)}
.sf-popover-actions>.sf-confirm{background:var(--ink);color:#fff;padding:5px 14px}
.sf-region-columns{display:flex;min-height:160px;max-height:240px;overflow-x:auto}
.sf-region-column{flex:1;min-width:145px;overflow:auto;border-right:1px solid var(--line2);padding:0 5px}
.sf-region-column:last-child{border-right:0}
.sf-region-node{display:flex;align-items:center;min-height:32px;border-radius:4px}
.sf-region-node.on,.sf-region-node:hover{background:var(--workspace-hover)}
.sf-region-node label,.sf-region-all{display:flex;align-items:center;gap:9px;flex:1;padding:6px;cursor:pointer;min-width:0;overflow-wrap:anywhere}
.sf-region-node>button{padding:8px;border:0;background:transparent;color:var(--sub);font-size:20px;cursor:pointer}
.selection-filters button:focus-visible,.sf-popover button:focus-visible,.sf-popover input:focus-visible{outline:2px solid var(--workspace-gray-500);outline-offset:2px}
@media(max-width:1100px){.selection-page .selection-filters{padding:0 14px}.sf-more-groups{margin:0 -14px;padding-left:14px;padding-right:14px}.sf-fields{gap:4px 12px}.sf-categories,.sf-subrow,.sf-group-compact{grid-template-columns:94px minmax(0,1fr)}.sf-trigger{padding:5px 6px}}
@media(max-width:760px){.selection-filter-area{max-height:none;overflow:visible}.sf-categories,.sf-group-compact{display:block;padding:6px 0}.sf-categories h3{padding:2px 6px}.sf-group-compact>h3{min-height:36px}.sf-group-compact>.sf-group-rows{padding:0}.sf-category-options{padding:3px 0 6px}.sf-group h3{font-size:12px;padding-left:6px}.sf-subrow{display:block;padding:6px 0}.sf-subrow-label{display:block;padding:2px 6px}.sf-fields{gap:3px 8px}.sf-selected>span{display:none}.sf-popover input{font-size:16px}.sf-trigger{min-height:36px}.sf-region-column{min-width:125px}.sf-selected-values>button{max-width:230px}}
@media(max-width:540px){.sf-quote-grid{grid-template-columns:1fr}.sf-quote-format+.sf-quote-format{border-left:0;border-top:1px solid var(--line2);padding:8px 4px 0}}

.sf-groups[hidden]{display:none}
.sf-selected-values>[data-sf-summary-more]{display:none}
.selection-page .selection-filters.is-collapsed{display:flex;align-items:center;flex-wrap:wrap;gap:0 12px;min-height:36px}
.is-collapsed .sf-heading{display:contents}
.is-collapsed .sf-heading-actions{display:contents}
.is-collapsed .sf-heading strong{font-size:12px;white-space:nowrap}
.is-collapsed .sf-heading-actions>[data-sf-collapse]{white-space:nowrap}
.is-collapsed .sf-selected{flex:1;min-width:0;align-items:center;gap:10px;border:0;padding:3px 0;min-height:36px}
.is-collapsed .sf-selected>span{width:auto;padding:0;white-space:nowrap}
.is-collapsed .sf-selected-values{flex:initial;max-width:100%}
.is-collapsed .sf-selected-values>button{max-width:220px;padding:3px 6px}
.is-collapsed:not(.sf-summary-expanded) [data-sf-overflow]{display:none}
.is-collapsed .sf-selected-values>[data-sf-summary-more]{display:block;background:transparent}
.is-collapsed .sf-selected #clear-business-filters{margin-left:0}
.sf-popover-single .sf-popover-body{padding:5px}
@media(pointer:coarse){.sf-trigger,.sf-single-options button,.sf-options label,.sf-popover-actions>button{min-height:44px}.sf-popover input{font-size:16px}}

.selection-page .selection-context-card{margin-bottom:0}

/* The entry is anchored to the navigation bar but appears beside the batch label. */
.view:has(.selection-page){overflow-y:auto;overflow-x:hidden}
.review.selection-page{display:block;height:auto;min-height:100%;background:#fff}
.workspace-bar:has(.selection-filter-nav-trigger:not(:empty)){position:relative;z-index:20}
.selection-filter-nav-trigger{position:absolute;top:calc(100% + 11px);left:104px;display:flex;align-items:center}
.selection-filter-nav-trigger:empty{display:none}
.selection-filter-nav-trigger .advanced-filter-toggle{width:132px;height:28px;min-height:28px;gap:8px;padding:3px 10px 3px 6px;
  border:1px solid oklch(0.92 0 0);border-radius:10px;background:#fff;color:#111;
  font-size:11.5px;white-space:nowrap}
.selection-filter-nav-trigger .advanced-filter-icon{width:12px;height:12px;flex:0 0 12px;font-size:0;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%23647a91' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:center}
.selection-filter-nav-trigger .advanced-filter-toggle:hover{border-color:oklch(0.69 0 0);
  background:oklch(0.94 0 0);color:#111}
.selection-filter-nav-trigger .advanced-filter-toggle:focus-visible{outline:2px solid oklch(0.51 0 0);outline-offset:2px}
.selection-page .sf-heading{height:40px;box-sizing:border-box;padding-top:12px;gap:0}
.selection-page .sf-heading strong{font-size:11px;font-weight:500;color:var(--faint)}
.selection-page .sf-heading-actions{flex:1;min-width:0;justify-content:flex-end}
.selection-page .sf-heading-actions [data-sf-collapse]{display:none}
.selection-page .sf-heading-actions [data-sf-more]{margin-left:auto;color:var(--sub);font-size:11px;font-weight:500}
.selection-page .sf-heading-actions [data-sf-more][aria-expanded=true]{background:transparent;color:var(--ink);font-weight:600}
.selection-page .business-filters .advanced-filter-head{display:flex;justify-content:flex-end}
@media(max-width:900px){.selection-filter-nav-trigger .advanced-filter-toggle{width:112px}}
.selection-page .selection-filter-area{display:grid;grid-template-rows:0fr;min-height:0;overflow:hidden;
  opacity:0;border-bottom:0;transition:grid-template-rows .22s ease,opacity .18s ease}
.selection-page .selection-filter-area.open{grid-template-rows:1fr;opacity:1;border-bottom:1px solid var(--line)}
.selection-filter-area-inner{min-height:0;overflow:hidden}
.selection-page .selection-filter-area.open .selection-filter-area-inner{overflow:visible}
.selection-project-page{height:100%;min-height:0;display:flex;flex-direction:column;background:#fff;color:#171717}
.selection-project-controls{flex:0 0 auto;padding:14px 22px 10px;border-bottom:1px solid #e7e7e7;background:#fff}
.selection-project-topline{display:flex;align-items:center;gap:12px;min-height:38px}
.selection-project-topline>label{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:600}
.selection-project-topline select,.selection-filter-rows select,.selection-filter-rows input,.selection-metric-fields select,.selection-metric-fields input{height:32px;border:1px solid #dedede;border-radius:5px;background:#fff;padding:0 9px;color:#222;font:inherit}
.selection-project-topline>label select{min-width:250px}
.selection-project-spacer{flex:1}
.selection-batch-menu{position:relative;z-index:12;font-size:13px}
.selection-batch-menu>summary{list-style:none;cursor:pointer;border:1px solid #dedede;border-radius:5px;padding:7px 10px;min-width:180px}
.selection-batch-menu>summary::-webkit-details-marker{display:none}
.selection-batch-menu>summary span{float:right;color:#666}
.selection-batch-options{position:absolute;top:calc(100% + 5px);left:0;width:min(360px,80vw);max-height:340px;overflow:auto;padding:7px;border:1px solid #ddd;border-radius:6px;background:#fff;box-shadow:0 8px 24px #0002}
.selection-batch-options>label{display:flex;align-items:center;gap:8px;padding:8px 5px;border-radius:4px}
.selection-batch-options>label:hover{background:#f6f6f6}
.selection-batch-options>label span{margin-left:auto;color:#777;font-size:11px}
.selection-history-option{margin-top:6px;padding:8px 5px;border-top:1px solid #e8e8e8}
.selection-history-option label{font-weight:600}.selection-history-option small{display:block;margin:5px 0 0 22px;color:#777}
.selection-query-button{height:32px;padding:0 22px;border:1px solid #111;border-radius:5px;background:#111;color:white;font-weight:600;cursor:pointer}
.selection-query-button:disabled{opacity:.4;cursor:not-allowed}
.selection-filter-rows{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;padding:12px 0 7px}
.selection-filter-group{border-top:1px solid #ededed;padding:8px 0 0}
.selection-filter-group>h3{margin:0;color:#333;font-size:12px;font-weight:700}
.selection-filter-group.selection-filter-primary{border-top:0;padding-top:11px}
.selection-filter-rows>label{display:flex;align-items:center;gap:6px;font-size:12px;color:#555}
.selection-filter-rows select{max-width:180px}.selection-filter-rows input{width:110px}.selection-filter-rows input[type=number]{width:76px}
.selection-filter-rows .selection-placeholder input{width:118px;background:#f7f7f7;color:#888}
.selection-metric-editor{font-size:12px;color:#555}.selection-metric-editor>summary{width:max-content;cursor:pointer;padding:5px 0}
.selection-metric-fields{display:flex;flex-wrap:wrap;gap:6px;padding:5px 0}.selection-metric-fields select{max-width:170px}.selection-metric-fields button{border:0;border-radius:4px;padding:0 12px;background:#222;color:#fff;cursor:pointer}
.selection-metric-editor small{color:#888}
.selection-metric-groups{display:grid;grid-template-columns:1fr;gap:8px;padding:3px 0 7px}
.selection-metric-group{min-width:0;border-top:1px solid #ededed;padding:8px 0 2px}
.selection-metric-group h3{margin:0 0 6px;color:#333;font-size:12px;font-weight:700}
.selection-metric-group-rows{display:grid;grid-template-columns:repeat(2,minmax(420px,1fr));gap:4px 12px}
.selection-metric-row{min-width:0;display:flex;align-items:center;gap:5px;padding:4px 0}
.selection-metric-name{flex:0 0 142px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#555;font-size:11px}
.selection-metric-name small{margin-left:4px;color:#999;font-size:10px}
.selection-metric-row select,.selection-metric-row input{height:27px;min-width:0;border:1px solid #e0e0e0;border-radius:4px;background:#fff;padding:0 5px;color:#333;font:inherit;font-size:10px}
.selection-metric-row select{max-width:96px}
.selection-metric-row select[hidden],.selection-metric-row input[hidden]{display:none}
.selection-metric-bound{display:flex;align-items:center;gap:2px;color:#999;font-size:10px}
.selection-metric-bound input{width:68px}
.selection-metric-row>button{height:27px;border:1px solid #ddd;border-radius:4px;background:#fafafa;padding:0 7px;color:#555;font-size:10px;cursor:pointer}
.selection-metric-row>button:hover{border-color:#999;color:#111}
.selection-metric-error{color:#a22;font-size:10px;white-space:nowrap}
.selection-applied-filters{display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding-top:8px;color:#888;font-size:11px}
.selection-applied-filters button{border:1px solid #ddd;border-radius:14px;background:#f7f7f7;padding:4px 9px;color:#444;cursor:pointer}
.selection-basket-toolbar{display:flex;align-items:center;gap:8px;padding:8px 14px;border-bottom:1px solid #e7e7e7;background:#fafafa;font-size:12px;color:#555}
.selection-basket-toolbar button{border:1px solid #ccc;border-radius:4px;padding:6px 10px;background:#fff;color:#222;cursor:pointer}
.selection-basket-toolbar button[data-selection-basket-export]{border-color:#222;background:#222;color:#fff}
.selection-basket-toolbar button:disabled{opacity:.45;cursor:not-allowed}
.selection-basket-error{color:#a22}
.selection-project-results{flex:1;min-height:300px;display:grid;grid-template-columns:280px minmax(0,1fr) 220px;overflow:auto}
.selection-result-list{min-width:0;border-right:1px solid #e7e7e7;padding:12px;overflow:auto}.selection-result-list>header{display:flex;justify-content:space-between;padding:4px 2px 10px;font-size:13px}
.selection-result-card{display:flex;align-items:flex-start;gap:7px;padding:10px 4px;border-top:1px solid #eee}.selection-result-card.is-active{background:#f6f6f6}
.selection-result-card>label{display:flex;align-items:center;gap:3px;color:#888;font-size:10px;white-space:nowrap}.selection-result-card>button{min-width:0;display:flex;flex:1;flex-direction:column;gap:6px;text-align:left;border:0;background:none;color:#222;cursor:pointer}
.selection-result-card small{color:#777}.selection-result-detail{min-width:0;padding:20px;overflow:auto}.selection-result-detail h2{margin:0 0 6px;font-size:18px}
.selection-brand-panel{padding:18px 14px;border-left:1px solid #e7e7e7;color:#333;font-size:12px}.selection-brand-panel h3{margin:0;font-size:15px}.selection-brand-panel h4{margin-top:28px}.selection-empty,.selection-project-empty{padding:40px 16px;text-align:center;color:#888;font-size:13px}
.selection-new-batch{margin:4px 22px;padding:8px 12px;background:#f7f7f7;color:#555;font-size:12px}.selection-error{padding:8px;color:#a22;font-size:12px}
@media(max-width:900px){.selection-project-results{grid-template-columns:240px minmax(0,1fr)}.selection-brand-panel{display:none}.selection-project-controls{padding:12px}.selection-project-topline>label select{min-width:150px}.selection-metric-group-rows{grid-template-columns:minmax(0,1fr)}}
@media(max-width:620px){.selection-project-topline{flex-wrap:wrap}.selection-project-spacer{display:none}.selection-project-results{display:flex;flex-direction:column}.selection-result-list{max-height:42vh;border-right:0;border-bottom:1px solid #ddd}.selection-filter-rows>label{flex-wrap:wrap}.selection-metric-row{flex-wrap:wrap}.selection-metric-name{flex-basis:100%}.selection-metric-row select{max-width:110px}}
.selection-results{display:grid;grid-template-columns:260px minmax(0,1fr);
  height:calc(100dvh - var(--workspace-top));min-height:0}
.selection-results>.queue,.selection-results>.detail{min-width:0;min-height:0}
/* The view owns detail scrolling. Even 2px of nested overflow consumes the first
   wheel gesture before the browser can chain it to the expanded filter page. */
.selection-results>.detail,.selection-page .detail-scroll{overflow:visible}
@media(max-width:760px){.selection-results{display:block;height:auto}.selection-results>.queue{min-height:300px}}
