#taobaoConnectionBar{display:none}
#home > #swBrowserConnections{grid-column:1/-1;margin-bottom:4px;min-width:0}
#home > section.qianniu-dashboard[aria-label="电商 AI 客服发送器"]{background:linear-gradient(145deg,#eaf3ff 0%,#fff 70%);border-color:#bdd5fa}
#home > section.qianniu-dashboard[aria-label="千牛只读识别"]{background:linear-gradient(145deg,#f0f8f7 0%,#fff 70%);border-color:#c5e9e1}
.sw-home-connections{background:#fff;border:1px solid #dbe5f4;border-radius:18px;padding:24px;margin-bottom:24px;color:#24364d}
.sw-home-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}
.sw-home-heading h2{margin:0;font-size:24px}.sw-home-heading p{margin:6px 0 0;color:#657793;font-size:14px}
.sw-home-connections button{min-height:44px;cursor:pointer;white-space:nowrap}
.sw-home-connections button.primary{background:#2563eb;border-color:#2563eb;color:#fff}
.sw-home-connections button:focus-visible{outline:3px solid #3976df;outline-offset:3px}
.sw-home-connections .sw-check input{width:18px;height:18px;margin:0;accent-color:#2563eb}
.sw-home-connections .sw-check{display:flex;align-items:center;gap:8px;font-size:14px;color:#52647b}
.sw-chat-strip{display:flex;align-items:center;justify-content:space-between;gap:20px;border:1px solid #dbe5f4;border-left:4px solid #99a8bd;padding:14px 18px;border-radius:12px;background:#f8fbff;margin-bottom:18px}
.sw-chat-strip[data-ready=true]{border-left-color:#2caa82}.sw-chat-strip strong{font-size:16px}.sw-chat-strip p{margin:5px 0 0;color:#657793;font-size:14px}
.sw-store-card{border:1px solid #dbe5f4;border-radius:14px;overflow:hidden;margin-top:14px}
.sw-store-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;background:#f8fbff}
.sw-store-actions{display:flex;gap:10px;flex-wrap:wrap}.sw-store-channels{display:grid;grid-template-columns:1fr 1fr}
.sw-store-channel{padding:18px 20px;min-width:0}.sw-store-channel+.sw-store-channel{border-left:1px solid #e5ebf5}
.sw-channel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.sw-channel-heading h4{font-size:16px;margin:0}
.sw-connection-badge{padding:4px 9px;border-radius:7px;background:#eef2f8;color:#5b6b82;font-size:12px;white-space:nowrap}.sw-connection-badge.is-ready{background:#e9f8f1;color:#227652}
.sw-catalog-count{margin:12px 0 6px;font-weight:650}.sw-channel-detail{margin:12px 0;color:#657793;font-size:14px;line-height:1.7;overflow-wrap:anywhere}.sw-binding-note{color:#657793;line-height:1.7}
.sw-home-connections .sw-status:empty{display:none}.sw-home-connections [data-error=true]{color:#b42318}
.sw-connection-shortcut{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 18px;background:#f8fbff;border:1px solid #dbe5f4;border-radius:12px;margin-bottom:16px;font-size:14px;color:#657793}
@media(max-width:1000px){.sw-home-heading,.sw-store-head{align-items:flex-start;flex-wrap:wrap}.sw-store-channels{grid-template-columns:1fr}.sw-store-channel+.sw-store-channel{border-left:0;border-top:1px solid #e5ebf5}.sw-chat-strip{flex-wrap:wrap}.sw-home-connections{padding:18px}}

#shopChatConnect[data-connected=true]{background:#e8f8ef;border-color:#b4e7cd;color:#16774b;opacity:1;cursor:default;box-shadow:0 0 12px #26b47b20}
#shopChatConnect[data-connected=false]{background:#fff0f1;border-color:#f2bdc1;color:#b42a38}
.sw-store-actions .sw-remove-shop{color:#b42a38;background:#fff;border-color:#f0d4d7}
#home > section[aria-label="电商 AI 客服发送器"]{grid-column:1/-1}

#home > #qianniuDashboard{overflow:visible;position:relative}
#swBrowserProfiles{padding:20px 24px 16px;position:relative;z-index:5;border-bottom:1px solid #e5ecf6;background:#fff;border-radius:18px 18px 0 0}
.sw-shop-row{display:flex;align-items:center;gap:10px;min-width:0;min-height:54px}
#swBrowserProfiles .sw-shop-tab{flex:0 0 174px}
.sw-shop-row .sw-empty-shops{margin:0;color:#657793;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
#swBrowserProfiles .sw-add-shop{position:relative;flex:0 0 52px;width:52px;height:52px;min-height:44px;padding:10px;border:1px dashed #9fbdf0;border-radius:11px;background:#f0f6ff;color:#2563eb;box-shadow:none;cursor:pointer;transition:background 160ms ease,border-color 160ms ease}
.sw-add-shop svg{display:block;width:30px;height:30px;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.sw-add-plus{transform-origin:25px 25.5px;transition:transform 160ms var(--ease-out)}
.sw-add-store{transition:transform 160ms var(--ease-out)}
.sw-add-shop:active .sw-add-plus{transform:scale(.92)}
.sw-add-spinner{display:none;position:absolute;inset:15px;border:2px solid #c1d4fa;border-top-color:#2563eb;border-radius:50%;animation:swAddSpin 800ms linear infinite}
.sw-add-shop[aria-busy=true] svg{visibility:hidden}.sw-add-shop[aria-busy=true] .sw-add-spinner{display:block}
@keyframes swAddSpin{to{transform:rotate(360deg)}}
#swBrowserProfiles .sw-shop-expand{display:flex;align-items:center;justify-content:center;gap:4px;flex:0 0 64px;width:64px;min-height:44px;padding:8px 6px;border:1px solid #dce6f4;border-radius:10px;background:#f8fbff;color:#526a89;font-size:13px;box-shadow:none;cursor:pointer}
#swBrowserProfiles .sw-shop-expand[hidden]{display:none}
.sw-shop-expand svg{width:18px;height:18px;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;transition:transform 180ms var(--ease-out)}
.sw-shop-expand[aria-expanded=true] svg{transform:rotate(180deg)}
#swBrowserProfiles.is-open{border-bottom-color:transparent}
#swShopOverflow{position:fixed;inset:auto;margin:0;padding:16px 24px 20px;box-sizing:border-box;border:1px solid #dbe5f4;border-top:0;border-radius:0 0 18px 18px;background:#fff;color:#24364d;box-shadow:0 18px 28px -12px #173d8033;overflow:auto;opacity:0;transform:translateY(-8px) scaleY(.97);transform-origin:top center;transition:opacity 180ms var(--ease-out),transform 180ms var(--ease-out),display 180ms allow-discrete,overlay 180ms allow-discrete}
#swShopOverflow:popover-open{opacity:1;transform:translateY(0) scaleY(1)}
@starting-style{#swShopOverflow:popover-open{opacity:0;transform:translateY(-8px) scaleY(.97)}}
#swShopOverflow::backdrop{background:transparent}
.sw-shop-overflow-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(174px,174px));gap:14px 10px;align-items:start;padding-bottom:6px}
#swShopOverflow.is-keyboard{transition:none;transform:none}
#swBrowserProfiles .sw-add-shop:focus-visible,#swBrowserProfiles .sw-shop-expand:focus-visible{outline:3px solid #3976df;outline-offset:3px}
@media(hover:hover) and (pointer:fine){#swBrowserProfiles .sw-add-shop:hover{background:#e3edff;border-color:#2563eb}.sw-add-shop:hover .sw-add-plus{transform:rotate(90deg)}.sw-add-shop:hover .sw-add-store{transform:translateY(-1px)}#swBrowserProfiles .sw-shop-expand:hover{background:#eef4ff;color:#2563eb}}
@media(prefers-reduced-motion:reduce){.sw-add-plus,.sw-add-store,.sw-shop-expand svg{transition:none;transform:none!important}.sw-add-spinner{animation:none;border-top-color:#2563eb}#swShopOverflow{transform:none;transition:opacity 125ms ease,display 125ms allow-discrete,overlay 125ms allow-discrete}}
#swActiveShopName{font-size:16px;font-weight:500;color:#657793}
.sw-shop-tab.sw-store-card{position:relative;display:flex;align-items:center;width:174px;max-width:100%;margin:0;padding:0;background:#f8fbff;border:1px solid #dce6f4;border-radius:11px;overflow:visible;min-width:0}
.sw-shop-tab.is-selected{border-color:#86b0f8;background:#f0f6ff;box-shadow:0 0 0 2px #2563eb10}
.sw-shop-select{display:block;position:relative;flex:1;min-width:0;border:0!important;background:transparent!important;text-align:left;padding:13px 12px 17px!important;border-radius:10px;color:#24364d}
.sw-shop-name{display:block;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sw-status-rail{display:block;position:absolute;left:12px;right:12px;bottom:8px;height:2px;border-radius:999px;--signal:#26b47b;background:var(--signal)}
.sw-shop-tab[data-state=failed] .sw-status-rail{--signal:#e04c55}.sw-shop-tab[data-state=checking] .sw-status-rail{--signal:#dfa02b}
.business-actions{display:flex;flex-wrap:wrap;gap:8px;padding:0 24px 18px}.business-actions button{font-size:13px;padding:7px 12px}
.store-profit-action{margin-top:12px;padding:10px 16px;border:1px solid #b9cdf8;border-radius:10px;background:#edf4ff;color:#1d4ed8;cursor:pointer}.store-profit-action[hidden]{display:none}
.business-orders{--order-ink:#243750;--order-muted:#526580;--order-line:#e5ecf6;--order-header:#f1f5fc;--order-accent:#2358ba;padding:24px;border-top:1px solid var(--order-line);color:var(--order-ink)}
.business-orders h3{display:inline-block;margin:0 16px 12px 0}
.business-orders>p{font-size:13px;color:var(--order-muted);line-height:1.6}
.business-orders>button{margin-right:8px;min-height:44px;transition:opacity 120ms ease;touch-action:manipulation}
.business-orders>button:active:not(:disabled){opacity:.8}
.business-orders>button:focus-visible,.business-order-list:focus-visible{outline:2px solid var(--order-accent);outline-offset:3px}
.business-order-list{max-height:540px;overflow:auto;padding:2px 8px 2px 2px;overscroll-behavior:contain;container-type:inline-size}
.business-order-items{display:grid;gap:12px}
.business-order{border:1px solid var(--order-line);border-radius:10px;overflow:hidden;background:#fff;content-visibility:auto;contain-intrinsic-size:auto 158px;font-size:13px;line-height:1.5}
.business-order-header{display:flex;flex-wrap:wrap;align-items:center;gap:8px 28px;padding:10px 16px;background:var(--order-header);font-variant-numeric:tabular-nums}
.business-order-id{font-weight:600;overflow-wrap:anywhere}
.business-order-date{color:var(--order-muted)}
.business-order-body{display:grid;grid-template-columns:minmax(0,1fr) 136px 124px;align-items:stretch}
.business-order-products{min-width:0}
.business-order-product{display:grid;grid-template-columns:72px minmax(0,1fr) 84px 48px;gap:14px;align-items:center;padding:16px}
.business-order-product+.business-order-product{border-top:1px solid var(--order-line)}
.business-order-thumb{position:relative;width:72px;height:72px;overflow:hidden;border:1px solid var(--order-line);border-radius:8px;background:var(--order-header);display:grid;place-items:center}
.business-order-thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#fff}
.business-order-image-fallback{font-size:12px;color:var(--order-muted)}
.business-order-product-copy{min-width:0}
.business-order-product-title{margin:0;font-size:14px;font-weight:600;color:var(--order-accent);overflow-wrap:anywhere;line-height:1.6}
.business-order-spec{margin:5px 0 0;font-size:12px;color:var(--order-muted);overflow-wrap:anywhere;line-height:1.6}
.business-order-unit,.business-order-quantity,.business-order-status,.business-order-amount{display:flex;flex-direction:column;gap:6px;align-items:center;text-align:center;font-variant-numeric:tabular-nums}
.business-order-status,.business-order-amount{justify-content:center;padding:16px 8px;border-left:1px solid var(--order-line)}
.business-order-field-label{color:var(--order-muted);font-size:12px}
.business-order-unit strong,.business-order-quantity strong{font-weight:500}
.business-order-status strong{font-size:13px;font-weight:600}
.business-order-status[data-state=paid] strong{color:#aa430e}
.business-order-status[data-state=closed] strong{color:var(--order-muted)}
.business-order-status[data-state=complete] strong{color:#14745b}
.business-order-amount strong{font-size:16px;font-weight:650;white-space:nowrap}
.business-order-missing{margin:0;padding:26px 16px;color:var(--order-muted)}
@container(max-width:780px){.business-order-body{grid-template-columns:minmax(0,1fr) 100px 100px}.business-order-product{grid-template-columns:64px minmax(0,1fr);gap:10px;padding:12px}.business-order-thumb{width:64px;height:64px;grid-row:1 / 3}.business-order-product-copy{grid-column:2}.business-order-unit,.business-order-quantity{grid-column:2;display:inline-flex;flex-direction:row;justify-content:flex-start;gap:8px}.business-order-quantity{grid-column:2}.business-order-header{gap:4px 16px;padding:10px 12px}}
@container(max-width:460px){.business-order-body{grid-template-columns:1fr 1fr}.business-order-products{grid-column:1 / -1}.business-order-status,.business-order-amount{padding:10px;border-top:1px solid var(--order-line)}.business-order-status{border-left:0}.business-order-header{font-size:12px}}
@media(prefers-reduced-motion:reduce){.business-orders>button{transition:none}}
.sw-shop-menu{padding:0!important;width:30px;min-height:40px;border:0;background:transparent;color:#657793;margin-right:4px;font-size:20px}
.sw-shop-popover{position:fixed;inset:auto;margin:0;box-sizing:border-box;padding:8px 10px;gap:6px;align-items:center;justify-content:space-between;background:#f8fbff;color:#24364d;border:1px solid #dce6f4;border-bottom:0;border-radius:11px 11px 0 0;box-shadow:0 -10px 24px -12px #173d8026;opacity:0;transform:translateY(6px) scaleY(.97);transform-origin:bottom center;transition:opacity 160ms var(--ease-out),transform 160ms var(--ease-out),display 160ms allow-discrete,overlay 160ms allow-discrete}
.sw-shop-popover:popover-open{display:flex;opacity:1;transform:translateY(0) scaleY(1)}
@starting-style{.sw-shop-popover:popover-open{opacity:0;transform:translateY(6px) scaleY(.97)}}
.sw-shop-popover::backdrop{background:transparent}
.sw-shop-tab.is-expanded{z-index:10;border-top-color:transparent;border-radius:0 0 11px 11px}
.sw-shop-tab.is-selected .sw-shop-popover{background:#f0f6ff;border-color:#86b0f8}
.sw-shop-popover.is-below{border-top:0;border-bottom:1px solid #dce6f4;border-radius:0 0 11px 11px;transform-origin:top center}
.sw-shop-tab.is-expanded.is-below{border-top-color:#dce6f4;border-bottom-color:transparent;border-radius:11px 11px 0 0}
.sw-shop-tab.is-expanded.is-below.is-selected{border-top-color:#86b0f8}
.sw-shop-popover button{width:44px;height:44px;min-height:44px;flex:0 0 44px;padding:11px;border-radius:8px;white-space:nowrap;cursor:pointer}
.sw-shop-action svg{display:block;width:20px;height:20px;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.sw-shop-tab button:focus-visible{outline:3px solid #3976df;outline-offset:2px}
.sw-shop-tab.is-new{animation:shopSlideIn 240ms cubic-bezier(.23,1,.32,1) both}
@keyframes shopSlideIn{from{opacity:0;transform:translateX(-24px)}to{opacity:1;transform:translateX(0)}}
@media(hover:hover) and (pointer:fine){.sw-shop-select:hover{background:#eaf2ff!important}.sw-shop-tab{cursor:grab}}
@media(prefers-reduced-motion:reduce){.sw-shop-tab.is-new{animation:shopFadeIn 125ms ease-out both}.sw-shop-popover{transform:none;transition:opacity 125ms ease,display 125ms allow-discrete,overlay 125ms allow-discrete}}
@keyframes shopFadeIn{from{opacity:0}to{opacity:1}}

#swBrowserProfiles .sw-shop-select{color:#24364d!important;box-shadow:none!important}
#swBrowserProfiles .sw-shop-menu{background:transparent!important;color:#657793!important;box-shadow:none!important;border:0!important}
#swBrowserProfiles .sw-shop-popover button{background:transparent!important;color:#526a89!important;box-shadow:none!important;border:0!important}
#swBrowserProfiles .sw-shop-popover .sw-remove-shop{color:#b42a38!important}
@media(hover:hover) and (pointer:fine){#swBrowserProfiles .sw-shop-popover button:hover{background:#e3edff!important;color:#2563eb!important}#swBrowserProfiles .sw-shop-popover .sw-remove-shop:hover{background:#ffebee!important;color:#b42a38!important}}

#qianniuDashboard .store-performance-lower{border-radius:0 0 18px 18px}

/* Unified QianNiu reception: connection, reply controls and folded model settings. */
#home > .qn-reception{padding:24px 28px;background:#fff;border-color:#dbe5f4}
.qn-reception-heading h2{margin:0;color:#243750;font-size:22px;letter-spacing:-.02em}
.qn-reception-heading p{margin:8px 0 20px;color:#657793;font-size:14px;line-height:1.6}
.qn-reception-states{display:grid;grid-template-columns:1fr;gap:16px}
.qn-reception #shopChatConnection,.qn-reply-row{display:flex;align-items:center;justify-content:space-between;gap:16px;min-width:0;margin:0;padding:18px;border:1px solid #dbe5f4;border-radius:12px;background:#f8fbff}
.qn-reception #shopChatConnection{border-left:4px solid #99a8bd}
.qn-reception #shopChatConnection[data-ready=true]{border-left-color:#2caa82}
.qn-reception-states strong{font-size:16px;color:#243750}
.qn-reception-states p{margin:6px 0 0;color:#657793;font-size:14px;line-height:1.6;overflow-wrap:anywhere}
.qn-reception-states button{flex-shrink:0;min-height:44px;margin:0}
.qn-reception-note{margin:16px 0;color:#657793;font-size:13px;line-height:1.6}
#swBrowserConnections #qianniuModelSettings{border-top:1px solid #e5ebf5;margin-top:16px;padding-top:12px}
#swBrowserConnections #qianniuModelSettings summary{cursor:pointer;color:#3b506c;min-height:32px}
#swBrowserConnections #qianniuModelSettings p{color:#657793;font-size:14px;line-height:1.6}
@media(max-width:1150px){.qn-reception-states{grid-template-columns:1fr}}
@media(max-width:700px){#home > .qn-reception{padding:20px}.qn-reception #shopChatConnection,.qn-reply-row{flex-wrap:wrap}}
#home > section#qianniuReception{grid-column:1 / -1;width:auto;background:#fff;border-color:#dbe5f4}
#qianniuReception #shopChatConnect[data-connected=true]{background:#e8f8ef;border-color:#b4e7cd;color:#16774b;opacity:1;cursor:default;box-shadow:0 0 12px #26b47b20}
#qianniuReception #shopChatConnect[data-connected=false]{background:#fff0f1;border-color:#f2bdc1;color:#b42a38;box-shadow:none}
