.selection-page { max-width: 1540px; margin: 0 auto; }
.selection-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.selection-heading h1 { margin: 8px 0 7px; font-size: 31px; letter-spacing: -.045em; }
.selection-heading p { margin: 0; max-width: 760px; color: var(--muted); font-size: 10px; line-height: 1.7; }
.selection-heading .back-button { margin-bottom: 15px; }
.selection-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; flex-wrap: wrap; }
.exchange-pill { min-width: 174px; min-height: 47px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 10px; padding: 8px 12px; border: 1px solid #dfd5ee; border-radius: 10px; background: linear-gradient(135deg,#f9f5ff,#f5effc); }
.exchange-pill small { grid-column: 1; color: #8b799e; font-size: 7px; letter-spacing: .13em; }
.exchange-pill b { grid-column: 1; color: #54229c; font-size: 11px; }
.exchange-pill em { grid-column: 2; grid-row: 1/3; color: #b26b23; font-size: 7px; font-style: normal; }

.selection-parameters { margin-bottom: 16px; padding: 15px 17px 11px; border: 1px solid #ded6e9; border-radius: 14px; background: linear-gradient(135deg,#fff,#fbf9fe); box-shadow: 0 5px 18px rgba(52,33,78,.035); }
.selection-parameter-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 12px; }
.selection-parameter-heading div > span,.selection-parameter-heading div > b { display: block; }
.selection-parameter-heading span { color: #8e7aa4; font-size: 7px; letter-spacing: .13em; text-transform: uppercase; }
.selection-parameter-heading b { margin-top: 3px; font-size: 12px; }
.selection-parameter-heading > small { color: #8a8f99; font-size: 8px; }
.selection-parameter-fields { display: grid; grid-template-columns: repeat(5,minmax(120px,1fr)) auto; gap: 8px; align-items: end; }
.selection-parameter-fields label { min-width: 0; height: 52px; display: grid; grid-template-columns: 1fr auto; align-content: center; gap: 3px 7px; padding: 7px 9px; border: 1px solid #e3dee9; border-radius: 9px; background: #fff; }
.selection-parameter-fields label > span { color: #767c87; font-size: 8px; }
.selection-parameter-fields label > small { grid-column: 2; grid-row: 1/3; align-self: center; color: #a099aa; font-size: 7px; white-space: nowrap; }
.selection-parameter-fields input { grid-column: 1; width: 100%; min-width: 0; border: 0; outline: 0; color: #3b2354; background: transparent; font-size: 12px; font-weight: 750; }
.selection-parameter-fields input:disabled { color: #999; cursor: not-allowed; }
#selection-save-settings { height: 52px; border: 0; border-radius: 9px; padding: 0 16px; background: #4d2489; color: #fff; font-size: 9px; font-weight: 750; cursor: pointer; }
#selection-save-settings:disabled { opacity: .55; cursor: not-allowed; }
#selection-settings-message { min-height: 12px; margin: 7px 1px 0; color: #287654; font-size: 8px; }
#selection-settings-message.error { color: #b43b4e; }

.selection-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin-bottom: 14px; }
.selection-summary article { min-height: 80px; padding: 14px 16px; border: 1px solid #e7e2ed; border-radius: 12px; background: #fff; box-shadow: 0 4px 14px rgba(45,31,66,.035); }
.selection-summary span,.selection-summary b,.selection-summary small { display: block; }
.selection-summary span { color: #7f758a; font-size: 8px; }
.selection-summary b { margin-top: 5px; color: #472076; font-size: 22px; letter-spacing: -.04em; }
.selection-summary small { margin-top: 3px; color: #a19aa8; font-size: 7px; }

.selection-filters { display: grid; grid-template-columns: minmax(210px,1.8fr) repeat(5,minmax(115px,1fr)); gap: 8px; padding: 13px; border: 1px solid #e2dee7; border-radius: 13px; background: #fff; }
.selection-filters label { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.selection-filters label > span:first-child { color: #777d87; font-size: 8px; font-weight: 700; }
.selection-filters input,.selection-filters select { width: 100%; min-width: 0; height: 37px; border: 1px solid #ded9e3; border-radius: 8px; padding: 0 9px; outline: 0; background: #fcfbfd; color: #33313a; font-size: 9px; }
.selection-filters input:focus,.selection-filters select:focus { border-color: #8d56ce; box-shadow: 0 0 0 3px rgba(100,39,217,.08); }
.selection-range { display: grid !important; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 4px; }
.selection-range i { color: #a7a1ac; font-size: 8px; font-style: normal; }
.selection-filter-actions { display: flex; gap: 6px; align-items: end; }
.selection-filter-actions button { flex: 1; height: 37px; }
.selection-result-line { display: flex; justify-content: space-between; gap: 15px; padding: 11px 3px 9px; color: #777d87; font-size: 8px; }
#selection-calculation-version { color: #958b9e; }

.selection-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(300px,1fr)); gap: 12px; }
.selection-card { min-width: 0; overflow: visible; position: relative; display: flex; flex-direction: column; border: 1px solid #e3dfe7; border-radius: 15px; background: #fff; box-shadow: 0 7px 22px rgba(44,29,66,.055); transition: transform .18s,box-shadow .18s,border-color .18s; }
.selection-card:hover,.selection-card:focus-within { z-index: 20; transform: translateY(-2px); border-color: #d2c3e2; box-shadow: 0 12px 30px rgba(44,29,66,.09); }
.selection-card.is-selected { border-color: #8350bf; box-shadow: 0 0 0 2px rgba(100,39,217,.1),0 12px 30px rgba(44,29,66,.09); }
.selection-card.status-qualified { border: 2px solid #2e9f62; background: linear-gradient(180deg,#fff 0,#f3fbf6 100%); box-shadow: 0 0 0 3px rgba(35,153,91,.15),0 13px 32px rgba(28,116,70,.17); }
.selection-card.status-qualified::before,.selection-card.status-rejected::before { position: absolute; z-index: 7; top: 11px; left: 51px; padding: 6px 10px; border-radius: 99px; color: #fff; font-size: 8px; font-weight: 850; letter-spacing: .04em; box-shadow: 0 4px 12px rgba(28,40,33,.2); pointer-events: none; }
.selection-card.status-qualified::before { content: attr(data-qualified-label); display: block; max-width: 150px; overflow: hidden; background: #16834a; text-overflow: ellipsis; white-space: nowrap; }
.selection-card.status-qualified .selection-card-body { background: linear-gradient(180deg,rgba(239,250,243,.72),rgba(255,255,255,0) 38%); }
.selection-card.status-qualified .selection-card-media { box-shadow: inset 0 -4px 0 #2e9f62; }
.selection-card.status-rejected { border-color: #dfd6dd; background: linear-gradient(180deg,#fff 0,#fcfafc 100%); box-shadow: 0 7px 22px rgba(56,40,59,.07); }
.selection-card.status-rejected::before { content: "× 已淘汰"; border: 1px solid #dfd0d9; background: rgba(255,251,253,.97); color: #765469; box-shadow: 0 3px 10px rgba(73,47,64,.09); }
.selection-card.status-rejected .selection-card-media,.selection-card.status-rejected .selection-card-body { opacity: .68; filter: grayscale(.16) saturate(.66) brightness(1.06); transition: opacity .18s ease,filter .18s ease; }
.selection-card.status-rejected .selection-card-body { background: linear-gradient(180deg,rgba(252,249,251,.72),rgba(255,255,255,0) 35%); }
.selection-card.status-rejected .selection-review { margin-right: -1px; margin-bottom: -1px; margin-left: -1px; padding: 8px 1px 1px; border-radius: 0 0 13px 13px; background: rgba(255,255,255,.98); }
.selection-card.status-purchased { border-top-color: #3b85c7; }
.selection-card-media { position: relative; width: 100%; height: auto; max-height: 300px; aspect-ratio: 16/10; display: grid; place-items: center; overflow: hidden; border-radius: 14px 14px 0 0; background: linear-gradient(145deg,#f6f3f8,#fff); }
.selection-card-media img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; padding: 7px 9px; object-fit: contain; object-position: center; mix-blend-mode: normal; transition: left .22s ease,width .22s ease,opacity .2s ease,transform .2s ease; }
.selection-main-image { z-index: 0; opacity: 1; }
.selection-card:hover .selection-card-media:not(.has-1688-preview) .selection-main-image { transform: scale(1.015); }
.selection-card-media.has-1688-preview:focus-visible { outline: 3px solid rgba(100,39,217,.28); outline-offset: -3px; }
.selection-1688-hint { position: absolute; z-index: 3; right: 10px; bottom: 9px; padding: 4px 7px; border-radius: 99px; background: rgba(48,29,70,.72); color: #fff; font-size: 7px; font-weight: 700; pointer-events: none; transition: opacity .2s; }
.selection-card-media.has-1688-preview:hover .selection-1688-hint,.selection-card-media.has-1688-preview:focus .selection-1688-hint { opacity: 0; }
.selection-1688-popover { position: absolute; z-index: 30; top: 8px; left: calc(100% + 12px); width: 292px; max-width: calc(100vw - 24px); overflow: visible; opacity: 0; visibility: hidden; pointer-events: none; transform: translateX(-5px) scale(.98); transform-origin: left top; transition: opacity .16s ease,transform .16s ease,visibility 0s linear .16s; }
.selection-1688-popover.is-left { right: calc(100% + 12px); left: auto; transform: translateX(5px) scale(.98); transform-origin: right top; }
.selection-1688-popover-content { max-height: calc(100vh - 24px); overflow-x: hidden; overflow-y: auto; border: 1px solid #ddd2e8; border-radius: 13px; background: #fff; box-shadow: 0 18px 46px rgba(35,22,53,.24); scrollbar-width: thin; }
.selection-1688-popover-bridge { position: absolute; top: 0; bottom: 0; left: -12px; width: 12px; background: transparent; }
.selection-1688-popover.is-left .selection-1688-popover-bridge { right: -12px; left: auto; }
.selection-card-media.has-1688-preview:hover + .selection-1688-popover,.selection-card-media.has-1688-preview:focus + .selection-1688-popover,.selection-1688-popover:hover,.selection-1688-popover:focus-within { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(0) scale(1); transition-delay: 0s; }
.selection-1688-popover-image-box { position: relative; height: 270px; overflow: hidden; border-radius: 12px 12px 0 0; background: linear-gradient(145deg,#f7f4f9,#fff); }
.selection-1688-popover-image { display: block; width: 100%; height: 100%; padding: 7px; object-fit: contain; object-position: center; background: linear-gradient(145deg,#f7f4f9,#fff); }
.selection-1688-popover-label { position: absolute; z-index: 1; top: 9px; left: 9px; padding: 5px 8px; border-radius: 99px; background: rgba(231,104,23,.92); color: #fff; font-size: 8px; font-weight: 800; }
.selection-sales-trend { min-height: 166px; padding: 10px 11px 9px; border-top: 1px solid #ebe5f0; background: linear-gradient(180deg,#fff,#faf8fc); }
.selection-sales-trend-head { min-height: 18px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.selection-sales-trend-head b { color: #48216f; font-size: 10px; }
.selection-sales-trend-head span { color: #9a8fa4; font-size: 7px; }
.selection-sales-trend-message { min-height: 118px; margin: 0; display: grid; place-items: center; color: #9991a1; font-size: 8px; text-align: center; }
.selection-sales-trend-message.error { color: #b34a52; }
.selection-trend-snapshot { margin-top: 5px; padding: 7px; border: 1px solid #e9e3ee; border-radius: 9px; background: rgba(255,255,255,.9); }
.selection-trend-snapshot-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.selection-trend-snapshot-head b { color: #403449; font-size: 8px; }
.selection-trend-snapshot-head span { color: #a098a4; font-size: 6px; }
.selection-trend-snapshot-list { margin: 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 4px; }
.selection-trend-snapshot-item { min-width: 0; padding: 5px 4px; border-radius: 6px; background: #f6f3f9; text-align: center; }
.selection-trend-snapshot-item dt { color: #938a99; font-size: 5.5px; white-space: nowrap; }
.selection-trend-snapshot-item dd { min-width: 0; margin: 3px 0 0; overflow: hidden; color: #4b3c56; font-size: 7px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.selection-trend-snapshot-item.price { background: #fff4ec; }.selection-trend-snapshot-item.price dd { color: #c85a20; }
.selection-trend-snapshot-item.sales { background: #f2eafb; }.selection-trend-snapshot-item.sales dd { color: #6b2fb0; }
.selection-trend-snapshot-item.stock { background: #eaf7f4; }.selection-trend-snapshot-item.stock dd { color: #14816d; }
.selection-trend-snapshot-item.status { background: #edf6ed; }.selection-trend-snapshot-item.status dd { color: #277b4a; }
.selection-trend-snapshot-item.status.out { background: #fff0ef; }.selection-trend-snapshot-item.status.out dd { color: #bd3d36; }
.selection-sales-trend-legend { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px; margin-top: 6px; }
.selection-sales-trend-legend-item { min-width: 0; display: grid; grid-template-columns: auto 1fr; gap: 1px 4px; align-items: center; padding: 5px 6px; border: 1px solid #ece7f0; border-radius: 7px; background: #fff; }
.selection-sales-trend-legend-item i { grid-row: 1/3; width: 8px; height: 3px; border-radius: 99px; background: currentColor; }
.selection-sales-trend-legend-item b,.selection-sales-trend-legend-item small { min-width: 0; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.selection-sales-trend-legend-item b { font-size: 7px; }.selection-sales-trend-legend-item small { color: #918895; font-size: 5.5px; }
.selection-sales-trend-legend-item.sales { color: #6b2fb0; }.selection-sales-trend-legend-item.stock { color: #14816d; }.selection-sales-trend-legend-item.price { color: #c85a20; }
.selection-sales-trend-svg { display: block; width: 100%; height: 132px; margin-top: 4px; overflow: visible; }
.selection-sales-trend-grid { stroke: #ebe5ef; stroke-width: 1; }
.selection-sales-trend-axis { fill: #9d95a3; font-size: 7px; }
.selection-sales-trend-metric-label { font-size: 8px; font-weight: 800; }.selection-sales-trend-metric-label.sales { fill: #6b2fb0; }.selection-sales-trend-metric-label.stock { fill: #14816d; }.selection-sales-trend-metric-label.price { fill: #c85a20; }
.selection-sales-trend-metric-unit { fill: #aaa1ae; font-size: 6px; }
.selection-sales-trend-line { fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.selection-sales-trend-line.sales { stroke: #6b2fb0; }.selection-sales-trend-line.stock { stroke: #1c9a82; }.selection-sales-trend-line.price { stroke: #e27636; }
.selection-sales-trend-point { stroke-width: 1; }.selection-sales-trend-point.sales { fill: #fff; stroke: #6b2fb0; }.selection-sales-trend-point.stock { fill: #fff; stroke: #1c9a82; }.selection-sales-trend-point.price { fill: #fff; stroke: #e27636; }
.selection-trend-day-marker { opacity: 0; pointer-events: none; transition: opacity .1s ease; }.selection-trend-day-marker.is-active { opacity: 1; }
.selection-trend-day-guide { stroke: #746a7c; stroke-width: .7; stroke-dasharray: 2 2; }
.selection-trend-day-focus { fill: #fff; stroke-width: 2; }.selection-trend-day-focus.sales { stroke: #6b2fb0; }.selection-trend-day-focus.stock { stroke: #1c9a82; }.selection-trend-day-focus.price { stroke: #e27636; }
.selection-trend-day-target { fill: transparent; cursor: crosshair; outline: none; }.selection-trend-day-target:focus,.selection-trend-day-target.is-active { fill: rgba(96,54,130,.035); }
.selection-sales-trend-foot { margin: -2px 0 0; color: #706678; font-size: 7px; text-align: center; }
.selection-sales-trend-details { margin-top: 8px; padding-top: 8px; border-top: 1px solid #ece7f0; }
.selection-sales-trend-detail-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.selection-sales-trend-detail-head b { color: #4c2870; font-size: 8px; }
.selection-sales-trend-detail-head span { color: #a097a5; font-size: 6px; }
.selection-sales-trend-details-list { margin: 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; }
.selection-sales-trend-detail { min-width: 0; min-height: 42px; padding: 6px 7px; border: 1px solid #ece7f0; border-radius: 7px; background: #fff; }
.selection-sales-trend-detail.double { grid-column: span 2; }
.selection-sales-trend-detail.wide { grid-column: 1/-1; }
.selection-sales-trend-detail dt { color: #968d9c; font-size: 6px; }
.selection-sales-trend-detail dd { margin: 4px 0 0; color: #3f3248; font-size: 8px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.selection-profit-breakdown { padding: 11px; border-top: 1px solid #e6dfeb; background: linear-gradient(180deg,#fff,#faf9fb); }
.selection-sales-trend > .selection-profit-breakdown { margin: 9px -11px 0; }
.selection-profit-breakdown-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.selection-profit-breakdown-head b { color: #3d2850; font-size: 10px; }.selection-profit-breakdown-head span { color: #9b91a1; font-size: 6px; }
.selection-profit-breakdown-message { min-height: 58px; margin: 0; display: grid; place-items: center; color: #9991a1; font-size: 8px; }
.selection-profit-breakdown-summary { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px; }
.selection-profit-breakdown-summary-item { min-width: 0; padding: 7px 8px; border: 1px solid #ebe6ee; border-radius: 8px; background: #fff; }
.selection-profit-breakdown-summary-item span,.selection-profit-breakdown-summary-item b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.selection-profit-breakdown-summary-item span { color: #968d9c; font-size: 6px; }.selection-profit-breakdown-summary-item b { margin-top: 3px; color: #44374d; font-size: 10px; }
.selection-profit-breakdown-summary-item.income { background: #f5f1fa; }.selection-profit-breakdown-summary-item.income b { color: #5d2b92; }
.selection-profit-breakdown-summary-item.cost { background: #fff7ef; }.selection-profit-breakdown-summary-item.cost b { color: #a75b28; }
.selection-profit-breakdown-summary-item.profit { background: #eff9f2; }.selection-profit-breakdown-summary-item.profit b,.selection-profit-breakdown-summary-item.margin b { color: #18804b; }
.selection-profit-breakdown-summary-item.negative { background: #fff0ef; }.selection-profit-breakdown-summary-item.negative b { color: #c23e36; }
.selection-profit-breakdown-equation { margin-top: 7px; padding: 8px 9px; border-radius: 8px; background: #f7f4f9; }
.selection-profit-breakdown-equation span,.selection-profit-breakdown-equation b,.selection-profit-breakdown-equation small { display: block; }
.selection-profit-breakdown-equation span { color: #8f8497; font-size: 6px; }.selection-profit-breakdown-equation b { margin-top: 4px; color: #4c365e; font-size: 8px; line-height: 1.45; overflow-wrap: anywhere; }
.selection-profit-breakdown-equation small { margin-top: 4px; color: #817588; font-size: 6px; line-height: 1.55; }
.selection-profit-breakdown-equation.revenue { border-left: 3px solid #8050b2; }
.selection-profit-breakdown-equation.final { border: 1px solid #cfe5d7; background: #eff9f2; }.selection-profit-breakdown-equation.final b { color: #167947; font-size: 9px; }
.selection-profit-breakdown-equation.final.negative { border-color: #ebc9c6; background: #fff0ef; }.selection-profit-breakdown-equation.final.negative b { color: #bd3d36; }
.selection-profit-breakdown-equation.final.incomplete { border-color: #ead9bb; background: #fff9ef; }.selection-profit-breakdown-equation.final.incomplete b { color: #a96924; }
.selection-profit-breakdown-bases { display: grid; gap: 5px; margin-top: 7px; }
.selection-profit-breakdown-bases > div { padding: 7px 8px; border: 1px dashed #ded5e5; border-radius: 7px; background: #fcfbfd; }
.selection-profit-breakdown-bases b,.selection-profit-breakdown-bases span { display: block; }.selection-profit-breakdown-bases b { color: #594269; font-size: 7px; }.selection-profit-breakdown-bases span { margin-top: 3px; color: #8c8292; font-size: 6px; line-height: 1.5; overflow-wrap: anywhere; }
.selection-profit-breakdown-deductions { margin-top: 9px; }
.selection-profit-breakdown-subhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 5px; }
.selection-profit-breakdown-subhead b { color: #4e3b5a; font-size: 8px; }.selection-profit-breakdown-subhead span { color: #9c929f; font-size: 6px; }
.selection-profit-breakdown-row { min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 5px 9px; align-items: center; padding: 7px 4px; border-top: 1px solid #eee9f1; }
.selection-profit-breakdown-row > div { min-width: 0; }.selection-profit-breakdown-row b,.selection-profit-breakdown-row small { display: block; }
.selection-profit-breakdown-row b { color: #514657; font-size: 7px; }.selection-profit-breakdown-row small { margin-top: 3px; color: #968d9b; font-size: 6px; line-height: 1.45; overflow-wrap: anywhere; }
.selection-profit-breakdown-row > strong { max-width: 84px; color: #8f4d28; font-size: 8px; text-align: right; overflow-wrap: anywhere; }
.selection-image-fallback { color: #9b96a1; font-size: 9px; }
.selection-check { position: absolute; z-index: 2; left: 11px; top: 11px; width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid rgba(87,55,121,.22); border-radius: 50%; background: rgba(255,255,255,.94); box-shadow: 0 4px 14px rgba(33,20,49,.1); cursor: pointer; }
.selection-check input { position: absolute; opacity: 0; }
.selection-check span { color: transparent; font-size: 14px; font-weight: 900; }
.selection-check input:checked + span { color: #6427d9; }
.selection-card-badges { position: absolute; z-index: 1; right: 10px; top: 10px; display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.selection-badge { padding: 4px 7px; border-radius: 99px; background: rgba(255,255,255,.94); color: #6e5e7c; box-shadow: 0 3px 10px rgba(30,18,45,.08); font-size: 7px; font-weight: 800; }
.selection-badge.match { color: #5d279a; }.selection-badge.trend-up { color: #b45422; }
.selection-badge.missing-data { border: 1px solid rgba(190,111,30,.28); background: rgba(255,247,234,.97); color: #a35b19; }
.selection-card-body { min-width: 0; display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 11px 12px 10px; }
.selection-title { display: block; min-width: 0; margin: 0; overflow: hidden; color: #29242f; font-size: 14px; line-height: 1.32; text-overflow: ellipsis; white-space: nowrap; }
.selection-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: #8c8494; font-size: 7px; }
.selection-meta code { color: #6b557d; font-family: inherit; font-weight: 750; }
.selection-meta span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.selection-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.selection-price-box { min-width: 0; padding: 7px 9px; border-radius: 10px; background: #f7f5f9; }
.selection-price-box span,.selection-price-box b,.selection-price-box small { display: block; }
.selection-price-box span { color: #8b8491; font-size: 7px; }
.selection-price-box b { margin-top: 3px; color: #4f237d; font-size: 15px; }
.selection-price-box small { margin-top: 2px; color: #9a94a0; font-size: 7px; }
.selection-commissions { overflow: hidden; border: 1px solid #e5dcec; border-radius: 10px; background: linear-gradient(135deg,#fcfaff,#fff); }
.selection-commission-category { min-width: 0; display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 6px; align-items: center; padding: 7px 9px; border-bottom: 1px solid #ece5f1; }
.selection-commission-category span { color: #8e8397; font-size: 6px; }
.selection-commission-category b { min-width: 0; overflow: hidden; color: #51405d; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.selection-commission-category code { color: #76528f; font-family: inherit; font-size: 6px; font-weight: 750; }
.selection-commission-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.selection-commission-box { min-width: 0; padding: 8px 9px; }
.selection-commission-box + .selection-commission-box { border-left: 1px solid #ece5f1; }
.selection-commission-box-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.selection-commission-box-head span { color: #76647f; font-size: 7px; font-weight: 750; }
.selection-commission-box-head b { color: #5c2b8e; font-size: 8px; white-space: nowrap; }
.selection-commission-box-head b.defaulted { color: #a56a24; }
.selection-commission-box > strong,.selection-commission-box > small { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.selection-commission-box > strong { margin-top: 5px; color: #42354b; font-size: 10px; }
.selection-commission-box > small { margin-top: 3px; color: #9a919f; font-size: 6px; }
.selection-commission-box.premium { background: #fbfafc; }
.selection-commission-box.premium .selection-commission-box-head b { color: #7c6e86; }
.selection-1688-popover .selection-commissions { margin: 9px 10px; box-shadow: 0 4px 12px rgba(65,41,83,.045); }
.selection-overrides { display: grid; grid-template-columns: repeat(4,1fr); gap: 5px; padding: 7px; border: 1px solid #e8e4eb; border-radius: 10px; background: #fbfafc; }
.selection-overrides-note { grid-column: 1/-1; margin: 0 1px 1px; color: #756783; font-size: 6px; font-weight: 750; line-height: 1.4; text-align: left; }
.selection-overrides label { min-width: 0; color: #857d8c; font-size: 7px; text-align: center; }
.selection-overrides label.source-missing { border-radius: 6px; background: #fff7e9; color: #9a581e; font-weight: 800; }
.selection-field-missing { display: inline-block; margin-left: 3px; padding: 1px 3px; border-radius: 99px; background: #f3c989; color: #713b0b; font-size: 5px; font-style: normal; vertical-align: 1px; }
.selection-overrides label.source-missing input { border-color: #e4bd82; background: #fffdf8; }
.selection-overrides label.source-missing input::placeholder { color: #b36e2b; opacity: 1; }
.selection-overrides input { width: 100%; height: 27px; margin-top: 2px; border: 1px solid #ddd7e2; border-radius: 6px; padding: 0 4px; text-align: center; background: #fff; color: #3c3344; font-size: 8px; outline: 0; }
.selection-overrides input:focus { border-color: #9363c9; }
.selection-overrides .wide { grid-column: span 2; }
.selection-cost-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 5px; }
.selection-cost-strip > div { min-width: 0; padding: 6px; border: 1px solid #ebe7ee; border-radius: 8px; background: #faf9fb; }
.selection-cost-strip span,.selection-cost-strip b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.selection-cost-strip span { color: #918997; font-size: 6px; }.selection-cost-strip b { margin-top: 3px; color: #504458; font-size: 8px; }
.selection-profit { display: grid; grid-template-columns: minmax(0,.9fr) 27px minmax(58px,.68fr) minmax(52px,.58fr) minmax(0,1fr); gap: 6px; align-items: stretch; padding: 9px 10px; border: 1px solid #cfe5d7; border-radius: 10px; background: linear-gradient(135deg,#f5f1fa 0,#f7fbf8 48%,#eff9f2 100%); }
.selection-profit-metric { min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.selection-profit-metric span,.selection-profit-metric strong,.selection-profit-metric small { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.selection-profit-metric span { color: #75677f; font-size: 7px; font-weight: 750; }
.selection-profit-metric strong { margin-top: 3px; font-size: 17px; line-height: 1.1; letter-spacing: -.025em; }
.selection-profit-metric small { margin-top: 4px; color: #8b8291; font-size: 6px; }
.selection-profit-purchase-freight strong { color: #5c2b8e; }
.selection-profit-peer-low { padding: 0 5px; border-right: 1px solid rgba(212,198,220,.72); border-left: 1px solid rgba(212,198,220,.72); text-align: center; }
.selection-profit-peer-low strong { color: #b45422; font-size: 12px; }
.selection-profit-peer-low.missing strong { color: #aaa1ad; }
.selection-profit-final { text-align: right; }.selection-profit-final strong { color: #168249; }.selection-profit-final strong.negative { color: #c24132; }
.selection-profit-comparison { min-width: 0; align-self: center; display: grid; place-items: center; }
.selection-profit-vs { flex: 0 0 27px; width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid #dfd5e6; border-radius: 50%; background: rgba(255,255,255,.9); color: #8a7897; font-size: 6px; font-style: normal; font-weight: 800; }
.selection-profit-multiple-metric { padding: 0 5px; border-right: 1px solid rgba(212,198,220,.72); text-align: center; }
.selection-profit-multiple { min-width: 0; margin-top: 3px; color: #7b7180; font-size: 12px; font-weight: 900; line-height: 1.1; white-space: nowrap; }
.selection-profit-multiple.negative { color: #c24132; }
.selection-profit-multiple.positive { color: #168249; }
.selection-profit.negative { border-color: #ebcbc6; background: linear-gradient(135deg,#f5f1fa 0,#fff8f7 48%,#fff0ef 100%); }
.selection-profit.incomplete { border-color: #ecd9b9; background: #fff9ef; }.selection-profit.incomplete strong { color: #b06c21; font-size: 10px; }
.selection-source-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #817889; font-size: 7px; }
.selection-links { min-width: 0; display: flex; gap: 4px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.selection-links a,.selection-links button { flex: 0 0 auto; border: 1px solid #ded5e7; border-radius: 7px; padding: 5px 6px; background: #fff; color: #5f2c96; font-size: 7px; white-space: nowrap; cursor: pointer; }
.selection-links .selection-open-pair { font-weight: 850; }
.selection-review { margin-top: auto; padding-top: 8px; border-top: 1px solid #eeeaf1; }
.selection-status-buttons { display: grid; grid-template-columns: repeat(4,1fr); gap: 5px; }
.selection-status-buttons button { height: 29px; border: 1px solid #ded9e3; border-radius: 6px; background: #fff; color: #706977; font-size: 7px; cursor: pointer; transition: background .15s,border-color .15s,color .15s,box-shadow .15s,transform .15s; }
.selection-status-buttons button:disabled,.selection-note-row button:disabled { cursor: not-allowed; opacity: .5; box-shadow: none !important; transform: none !important; }
.selection-status-buttons button.active[data-status="pending"] { background: #eeedf0; color: #4d4752; }
.selection-status-buttons button.active[data-status="qualified"] { border-color: #16834a; background: #16834a; color: #fff; font-weight: 850; box-shadow: 0 4px 11px rgba(22,131,74,.3); transform: translateY(-1px); }
.selection-status-buttons button.active[data-status="rejected"] { border-color: #d7bfcd; background: #f8eef4; color: #7a4962; font-weight: 850; box-shadow: 0 3px 9px rgba(94,58,78,.1); transform: translateY(-1px); }
.selection-status-buttons button.active[data-status="purchased"] { border-color: #83afd6; background: #eaf5ff; color: #276b9e; }
.selection-note-row { display: grid; grid-template-columns: 1fr auto; gap: 6px; margin-top: 6px; }
.selection-note-row textarea { min-height: 38px; resize: vertical; border: 1px solid #ded9e3; border-radius: 7px; padding: 6px 8px; outline: 0; color: #47414b; font-size: 8px; }
.selection-note-row button { border: 0; border-radius: 7px; padding: 0 10px; background: #56308a; color: #fff; font-size: 7px; cursor: pointer; }
.selection-review-meta { min-height: 8px; margin: 4px 1px 0; color: #77717c; font-size: 6px; line-height: 1.45; }
.selection-card.status-qualified .selection-review-meta { color: #167246; font-weight: 750; }
.selection-review-meta.conflict { padding: 5px 7px; border: 1px solid #efc9bd; border-radius: 6px; background: #fff5f1; color: #ad3f2b !important; font-weight: 800; }

.selection-empty { padding: 65px 20px; border: 1px dashed #dcd5e3; border-radius: 13px; background: #fff; text-align: center; }
.selection-empty b { font-size: 14px; }.selection-empty p { margin: 7px 0 0; color: var(--muted); font-size: 9px; }
.selection-pagination { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 19px 0 4px; white-space: nowrap; }
.selection-pagination button { border: 1px solid #dcd6e1; border-radius: 8px; padding: 8px 14px; background: #fff; color: #5d5268; font-size: 8px; cursor: pointer; }
.selection-pagination button:disabled { opacity: .45; cursor: not-allowed; }
.selection-pagination span { color: #7e7685; font-size: 8px; }
.selection-page-jump { display: inline-flex; align-items: center; gap: 5px; }
.selection-page-jump select { min-width: 76px; border: 1px solid #dcd6e1; border-radius: 8px; padding: 7px 24px 7px 9px; background-color: #fff; color: #5d5268; font: inherit; font-size: 8px; cursor: pointer; outline: 0; }
.selection-page-jump select:hover { border-color: #bcaecb; }
.selection-page-jump select:focus-visible { border-color: #744aa0; box-shadow: 0 0 0 2px rgba(116,74,160,.14); }
.selection-page-jump select:disabled { opacity: .45; cursor: not-allowed; }


@media (max-width: 1180px) {
  .selection-parameter-fields { grid-template-columns: repeat(3,1fr); }
  .selection-filters { grid-template-columns: repeat(4,minmax(120px,1fr)); }
  .selection-search { grid-column: span 2; }
}

@media (max-width: 760px) {
  .selection-heading { align-items: flex-start; flex-direction: column; }
  .selection-actions { width: 100%; justify-content: flex-start; }
  .selection-summary { grid-template-columns: repeat(2,1fr); }
  .selection-parameter-fields { grid-template-columns: repeat(2,1fr); }
  .selection-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .selection-search { grid-column: 1/-1; }
  .selection-filter-actions { grid-column: 1/-1; }
  .selection-grid { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .selection-actions > button { flex: 1; }
  .exchange-pill { width: 100%; }
  .selection-parameter-heading { align-items: flex-start; flex-direction: column; }
  .selection-parameter-fields { grid-template-columns: 1fr; }
  .selection-filters { grid-template-columns: 1fr; }
  .selection-filters > * { grid-column: 1 !important; }
  .selection-overrides { grid-template-columns: repeat(2,1fr); }
  .selection-cost-strip { grid-template-columns: repeat(2,1fr); }
}
