/* Compact product rows share the original funding and authenticated detail flow. */
.exchange-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.exchange-heading-actions{display:flex;gap:8px;align-items:center}.exchange-heading h1{font-size:22px}.exchange-heading .btn{flex:none}
.exchange-quota{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:16px;padding:12px 16px;background:#fff;border:1px solid var(--line);border-radius:8px}.exchange-quota-summary{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 12px;min-width:0}.exchange-quota-summary>span{font-size:13px;color:var(--muted)}.exchange-quota-summary>strong{font-size:20px;font-variant-numeric:tabular-nums;color:var(--brand);font-weight:650}.exchange-quota-summary>small{font-size:12px;color:var(--muted)}.exchange-quota-details{max-width:55%;min-width:110px;text-align:right}.exchange-quota-details summary{font-size:12px;color:var(--brand);cursor:pointer;min-height:28px;padding:3px 0}.exchange-quota-details ul{list-style:none;text-align:left;padding:8px 0 0;margin:0}.exchange-quota-details li{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:8px 0;border-top:1px solid var(--line);font-size:12px}.exchange-quota-details li>div{min-width:0}.exchange-quota-details li strong{font-size:12px;font-weight:500;overflow-wrap:anywhere}.exchange-quota-details li small{display:block;color:var(--muted);font-size:11px;margin-top:3px}.exchange-quota-details li>span{white-space:nowrap;font-variant-numeric:tabular-nums}
.exchange-stock h2{font-size:15px;margin:0}.exchange-search{display:flex;gap:8px;padding:0 16px 12px;align-items:center}.exchange-search .field{flex:1;margin:0;min-width:0}.exchange-search input{height:38px;min-width:0}.exchange-stock .panel-head{padding:14px 16px 12px}.exchange-stock .panel-head>.muted{font-size:12px}
.exchange-products{list-style:none;margin:0;padding:0 16px}.exchange-products li{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:16px;padding:14px 0;border-top:1px solid var(--line)}.exchange-product-open{display:grid;grid-template-columns:64px minmax(0,1fr) minmax(96px,auto);align-items:center;gap:14px;padding:0;border:0;background:none;text-align:left;color:inherit;min-width:0;width:100%;min-height:64px;font:inherit}.exchange-product-open:hover .exchange-product-copy>strong{color:var(--brand)}.exchange-product-thumb{position:relative;display:grid;place-items:center;width:64px;height:64px;border:1px solid var(--line);border-radius:6px;background:var(--surface-subtle);padding:3px;overflow:hidden;flex:none}.exchange-product-thumb>span{font-size:12px;color:var(--muted)}.exchange-product-thumb img{position:absolute;inset:3px;width:calc(100% - 6px);height:calc(100% - 6px);object-fit:contain;background:#fff}.exchange-product-thumb img[hidden]{display:none}.exchange-product-copy{display:block;min-width:0}.exchange-product-copy>strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:14px;font-weight:600;line-height:1.5;overflow-wrap:anywhere}.exchange-product-copy>small{display:block;color:var(--muted);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:3px}.exchange-price{font-weight:600;font-size:16px;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.exchange-price small{font-size:12px;color:var(--muted);font-weight:400}.exchange-product-choose{min-width:64px}.exchange-product-open:focus-visible{outline:2px solid var(--brand);outline-offset:3px;border-radius:4px}
.exchange-help{padding:12px 16px;border-top:1px solid var(--line);color:var(--muted);font-size:12px;line-height:1.8}.exchange-help summary{cursor:pointer}.exchange-help p{padding-top:8px}.exchange-note{font-size:12px;line-height:1.7;color:var(--muted);margin:0 0 12px}.exchange-empty{padding:20px 16px;color:var(--muted);font-size:13px}.exchange-page>.zx-inline-alert{margin-bottom:14px}
.exchange-order-list{list-style:none;margin:0;padding:0}.exchange-order-list>li{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.exchange-order-list>li>div:first-child{flex:1;min-width:0}.exchange-order-list strong{display:block;font-size:13px;overflow-wrap:anywhere}.exchange-order-list small{display:block;color:var(--muted);font-size:11px;margin-top:4px}.exchange-order-list>li>div:nth-child(2){text-align:right;white-space:nowrap}.exchange-order-list .badge{font-size:11px;margin-top:4px}
@media(max-width:800px){.exchange-heading{margin-bottom:12px}.exchange-heading .btn,.exchange-product-choose,.exchange-search .btn,.exchange-order-list .btn{min-height:44px}.exchange-quota{padding:10px 12px;margin-bottom:12px}.exchange-quota-summary{gap:3px 8px}.exchange-quota-summary>strong{font-size:19px}.exchange-quota-summary>small{font-size:11px;flex-basis:100%}.exchange-quota-details{min-width:100px;max-width:55%}.exchange-quota-details summary{min-height:44px;display:flex;align-items:center;justify-content:flex-end}.exchange-stock .panel-head{padding:12px}.exchange-search{padding:0 12px 10px}.exchange-search input{height:44px}.exchange-products{padding:0 12px}.exchange-products li{gap:10px;padding:9px 0}.exchange-product-open{grid-template-columns:56px minmax(0,1fr);grid-template-rows:auto auto;gap:4px 10px;min-height:68px}.exchange-product-thumb{width:56px;height:56px;grid-column:1;grid-row:1/3}.exchange-product-copy{grid-column:2;grid-row:1}.exchange-product-copy>strong{font-size:14px}.exchange-product-copy>small{font-size:12px}.exchange-product-category{display:none}.exchange-price{grid-column:2;grid-row:2;font-size:15px;text-align:left}.exchange-price small{display:inline;font-size:12px}.exchange-product-choose{min-width:48px;padding:6px 9px}.exchange-help{padding:10px 12px}.exchange-help summary{min-height:34px;display:flex;align-items:center}.exchange-order-list>li{gap:9px}.exchange-order-list .btn{padding-inline:10px}.exchange-order-list small{font-size:11px}}
.exchange-cart-bar{
 position:sticky;bottom:12px;z-index:5;
 display:flex;align-items:center;justify-content:space-between;gap:12px;
 margin-top:12px;padding:10px 14px;
 border:1px solid var(--line);border-radius:8px;background:#fff;
 box-shadow:0 -2px 12px #1018280a;
}
.exchange-cart-bar[hidden]{display:none}
.exchange-cart-summary{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 12px;min-width:0}
.exchange-cart-summary strong{font-size:14px}
.exchange-cart-summary span{font-size:13px;color:var(--muted);font-variant-numeric:tabular-nums}
.exchange-cart-bar>.btn{flex:none}
@media(max-width:800px){
 .exchange-cart-bar{bottom:calc(65px + env(safe-area-inset-bottom) + 6px);padding:8px 10px}
 .exchange-cart-bar>.btn{min-height:44px}
}
.exchange-stock-search{padding:14px 16px;margin-bottom:16px}
.exchange-stock-search .exchange-search{padding:0}
.exchange-stock-workspace .catalog-current-path{margin-bottom:8px}
.exchange-stock-workspace .exchange-category-option{margin-bottom:4px;overflow-wrap:anywhere}
@media(max-width:800px){
 .catalog-workspace.exchange-stock-workspace{grid-template-columns:76px minmax(0,1fr);gap:10px}
 .exchange-stock-workspace .catalog-category-panel{position:sticky;top:12px;max-height:calc(100dvh - 100px);padding:8px 4px;overflow-y:auto}
 .exchange-stock-workspace .catalog-category-heading{padding:0 3px 8px}
 .exchange-stock-workspace .exchange-category-option{width:100%;min-height:44px;padding:8px 4px;font-size:12px;line-height:1.6;white-space:normal}
 .exchange-stock-workspace .catalog-current-path{font-size:12px;line-height:1.6;margin-bottom:6px}
 .exchange-stock-workspace .exchange-stock .panel-head{padding:10px}
 .exchange-stock-workspace .exchange-stock h2{font-size:13px}
 .exchange-stock-workspace .exchange-products{padding:0 10px}
 .exchange-stock-workspace .exchange-products li{position:relative;display:block;padding:10px 0}
 .exchange-stock-workspace .exchange-product-open{grid-template-columns:40px minmax(0,1fr);grid-template-rows:auto 44px;gap:5px 7px;min-height:0}
 .exchange-stock-workspace .exchange-product-thumb{grid-column:1;grid-row:1;width:40px;height:40px}
 .exchange-stock-workspace .exchange-product-copy{grid-column:2;grid-row:1}
 .exchange-stock-workspace .exchange-product-copy>strong{font-size:13px;line-height:1.5}
 .exchange-stock-workspace .exchange-product-copy>small{font-size:11px}
 .exchange-stock-workspace .exchange-price{grid-column:1/-1;grid-row:2;display:flex;align-items:center;gap:2px;min-height:44px;padding-right:82px;font-size:14px}
 .exchange-stock-workspace .exchange-price small{font-size:11px}
 .exchange-stock-workspace .exchange-product-choose{position:absolute;right:0;bottom:10px;max-width:80px;min-width:0;min-height:44px;padding:6px 7px;font-size:12px}
 .exchange-stock-workspace .exchange-empty{padding:14px 10px}
 .exchange-search>.btn{flex-shrink:0}
}
@media(max-width:360px){
 .catalog-workspace.exchange-stock-workspace{grid-template-columns:68px minmax(0,1fr);gap:8px}
 .exchange-stock-workspace .exchange-products{padding:0 8px}
}
