:root{--bg:#FFFFFF;--ink:#1D1D1F;--muted:#86868B;--accent:#0071E3;--soft:#F5F5F7;--line:#E8E8ED;--secondary:#3C3C43}*{box-sizing:border-box}html{color-scheme:light;scroll-padding-top:70px}body{margin:0;background:var(--bg);color:var(--ink);font:12.5px/1.5 system-ui,-apple-system,"PingFang SC",sans-serif;-webkit-font-smoothing:antialiased}button,input,textarea,select{font:inherit}button,a{-webkit-tap-highlight-color:var(--ui-color-1)}button{cursor:pointer}button:disabled{cursor:default;opacity:.55}button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px}button,a{touch-action:manipulation}svg{width:20px;height:20px;flex-shrink:0}button{transition:opacity .15s}button:hover:not(:disabled){opacity:.85}.topbar{height:64px;max-width:760px;padding:0 24px;margin:auto;display:flex;align-items:center;justify-content:space-between;background:var(--bg)}.brand{display:flex;gap:9px;align-items:center;text-decoration:none;color:var(--ink)}.brand-mark{width:29px;height:29px;display:grid;place-items:center;background:var(--ui-color-2);color:var(--accent);border-radius:9px}.brand-mark svg{width:20px;height:20px}.top-actions{display:flex;align-items:center;gap:12px}.quiet,.icon-button{border:0;background:var(--ui-color-1);color:var(--muted)}.quiet{font-size:11px;padding:8px}.icon-button{width:34px;height:34px;display:grid;place-items:center;border-radius:999px}.icon-button svg{color:var(--ink)}#main{max-width:760px;margin:auto;padding:10px 24px calc(95px + env(safe-area-inset-bottom))}.search-panel{padding-bottom:4px}.composer{display:flex;align-items:center;gap:8px;min-height:46px;padding:5px 6px 5px 14px;border:1px solid var(--ui-color-1);border-radius:999px;background:var(--soft)}.composer:focus-within{border-color:var(--accent)}.search-symbol{color:var(--accent);display:flex}.search-symbol svg{width:17px;height:17px}textarea{min-width:0;flex:1;width:100%;resize:none;background:var(--ui-color-1);border:0;outline:0;color:var(--ink);font-size:12.5px;line-height:22px;max-height:115px;padding:5px 0}textarea::placeholder{color:var(--muted)}.send,.primary{background:var(--accent);color:var(--ui-color-3);border:0;border-radius:999px;font-weight:700}.send{height:34px;min-width:58px;padding:0 12px;font-size:12px;white-space:nowrap}.suggestions{display:flex;gap:7px;margin-top:12px;overflow-x:auto;scrollbar-width:none}.suggestions button{border:0;border-radius:999px;background:var(--soft);color:var(--secondary);font-size:11px;padding:7px 12px;white-space:nowrap}.welcome-hint{font-size:11.5px;color:var(--muted);margin:24px 0 12px}.under-composer{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:12px 0 8px;font-size:10px;color:var(--muted)}.under-composer button{border:0;background:var(--ui-color-1);color:var(--accent);padding:4px 0;font-size:10px}.notice{color:var(--muted);font-size:11px;margin-bottom:8px}.notice:empty{display:none}.conversation:empty{display:none}.turn{margin:18px 0 26px}.user{font-size:12px;color:var(--secondary);padding:9px 13px;background:var(--soft);border-radius:13px;max-width:90%;width:fit-content;margin:0 0 14px auto;overflow-wrap:anywhere;white-space:pre-wrap}.assistant{position:relative}.avatar{display:none}.answer{min-width:0}.conclusion{display:flex;align-items:center;gap:7px;border-radius:13px;background:var(--soft);padding:11px 12px;color:var(--secondary);font-size:11.5px;margin-bottom:16px}.conclusion svg{width:16px;height:16px;color:var(--accent)}.channel-result{margin:0 0 18px}.channel-title{font-size:10.5px;color:var(--muted);font-weight:500;margin:0 0 9px}.shopping-grid{display:grid;gap:12px}.product-wrap{border:1px solid var(--line);border-radius:16px;background:var(--bg);overflow:hidden}.shopping-card{display:flex;gap:12px;padding:14px;color:var(--ink);text-decoration:none;min-width:0}.shopping-card[href]:hover{background:var(--bg)}.shopping-photo{width:80px;height:80px;flex:0 0 80px;border-radius:12px;background:var(--soft);display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;overflow:hidden;color:var(--muted);gap:5px}.photo-label{font-size:9px}.shopping-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:var(--bg);padding:3px}.shopping-info{flex:1;min-width:0}.shopping-info h3{font-size:12.5px;font-weight:600;line-height:1.45;margin:0 0 5px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.shopping-meta{display:flex;gap:6px;align-items:center;min-width:0;margin:0 0 4px}.platform-tag{font-size:9.5px;line-height:17px;background:var(--soft);color:var(--secondary);border-radius:6px;padding:0 5px;white-space:nowrap}.recommendation{font-size:10.5px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.shopping-spec{font-size:10px;color:var(--muted);margin:0 0 5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.shopping-foot{display:flex;justify-content:space-between;align-items:center;gap:6px;margin-top:5px}.price-group{display:flex;align-items:baseline;gap:5px;min-width:0;flex-wrap:wrap}.shopping-price{font-size:20px;font-weight:800;color:var(--ink);letter-spacing:-.5px;line-height:1.2;overflow-wrap:anywhere}.original-price{font-size:11px;color:var(--muted)}.buy-button{font-size:11px;font-weight:700;background:var(--accent);color:var(--ui-color-3);border-radius:999px;padding:6px 12px;white-space:nowrap}.unavailable-button{font-size:10px;color:var(--muted);white-space:nowrap}.product-details{padding:0 14px 9px;margin:0;color:var(--muted);font-size:10px}.product-details summary{cursor:pointer;min-height:20px;width:fit-content}.shopping-conditions,.observation{font-size:10px;margin:5px 0;line-height:1.6;overflow-wrap:anywhere}.observation.stale{font-weight:600}.reply{font-size:12.5px;white-space:pre-wrap;overflow-wrap:anywhere}.footnote{font-size:10px;color:var(--muted);line-height:1.7;margin:7px 0;overflow-wrap:anywhere}.channel-note{margin:0 0 7px}.page-disclaimer{text-align:center;color:var(--muted);font-size:10px;margin:25px 0 0}.tabbar{position:fixed;bottom:0;left:0;right:0;display:flex;justify-content:space-around;border-top:1px solid var(--line);background:var(--bg);height:calc(66px + env(safe-area-inset-bottom));padding:8px max(12px,calc((100vw - 600px)/2)) calc(8px + env(safe-area-inset-bottom));z-index:10}.tab{background:none;border:0;flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;color:var(--muted);font-size:10.5px;position:relative;padding:0 0 7px}.tab svg{width:19px;height:19px}.tab.active{color:var(--accent);font-weight:700}.tab.active:after{content:'';position:absolute;bottom:0;width:13px;height:2.5px;border-radius:999px;background:var(--accent)}.tab:disabled{opacity:.55}.empty-state{padding:34px 12px 28px;display:flex;flex-direction:column;align-items:center;text-align:center;color:var(--muted);gap:12px}.empty-state svg{width:32px;height:32px}.empty-state p{font-size:12px;margin:0}.secondary{border:1px solid var(--line);border-radius:999px;background:var(--soft);color:var(--accent);padding:7px 13px;font-size:11px}.loading{display:grid;gap:12px}.skeleton-card{display:flex;gap:12px;border:1px solid var(--line);padding:14px;border-radius:16px}.skeleton-image{width:80px;height:80px;flex-shrink:0;border-radius:12px}.skeleton-lines{flex:1;display:grid;align-content:center;gap:10px}.skeleton-line{height:11px;border-radius:999px}.skeleton-line:nth-child(2){width:65%}.skeleton-line:nth-child(3){height:20px;width:40%}.shimmer{background:var(--soft);position:relative;overflow:hidden}.shimmer:after{content:'';position:absolute;inset:0;background:var(--ui-color-3);opacity:0;animation:shimmer 1.6s ease-in-out infinite;transform:translateX(-100%)}@keyframes shimmer{50%{opacity:.6}100%{transform:translateX(100%);opacity:0}}.demo-badge{font-size:10px;color:var(--muted);padding:7px 10px;border-radius:13px;background:var(--soft)}dialog{border:1px solid var(--line);border-radius:16px;max-width:440px;width:calc(100% - 32px);padding:24px;background:var(--bg);color:var(--ink);max-height:85dvh;overflow:auto}dialog::backdrop{background:var(--ui-color-5)}.dialog-head{display:flex;align-items:center;justify-content:space-between}h2{font-size:16px;margin:0}dialog p{font-size:12px;color:var(--muted)}dialog label{display:block;font-size:11px;margin-top:16px}dialog input:not([type=checkbox]),dialog select{width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:12px;margin-top:7px;background:var(--bg);color:var(--ink)}dialog input[type=checkbox]{accent-color:var(--accent)}dialog .small{font-size:11px;line-height:1.7}dialog details{margin-top:16px}dialog summary{font-size:12px;cursor:pointer}fieldset{border:0;padding:0;margin:0;min-width:0}.settings-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-top:16px}.primary{padding:8px 16px;font-size:11px}.platform-options{display:grid;grid-template-columns:1fr 1fr}#scraper-status{white-space:pre-line}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}@media(max-width:480px){.topbar{height:58px;padding:0 18px}#main{padding:8px 16px calc(90px + env(safe-area-inset-bottom))}.shopping-card{padding:12px;gap:10px}.product-details{padding-left:12px;padding-right:12px}.shopping-price{font-size:20px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Personal collection: customer-facing only; no technical configuration panel. */
.page-view{padding-top:12px}.view-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:7px}.view-head h1{font-size:22px;font-weight:700;letter-spacing:-.4px;margin:0}.view-count{color:var(--muted);font-size:11px}.view-description{color:var(--muted);font-size:12px;margin:0 0 16px}.saved-price-note{font-size:10px;color:var(--muted);background:var(--soft);border-radius:13px;padding:10px 12px;margin:0 0 18px}.card-tools{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;padding:0 12px 9px}.card-tools .product-details{padding:0;flex:1;min-width:0}.card-tools .product-details summary{min-height:32px;display:flex;align-items:center;gap:5px}.card-tools .product-details summary:before{content:'+';font-size:12px}.card-tools .product-details[open] summary:before{content:'−'}.favorite-button{display:flex;align-items:center;justify-content:center;gap:4px;background:var(--bg);color:var(--muted);border:1px solid var(--line);border-radius:999px;padding:5px 10px;min-height:32px;flex-shrink:0;font-size:10.5px}.favorite-button svg{height:15px;width:15px}.favorite-button.is-saved{color:var(--accent);border-color:var(--accent)}.favorite-count{font-size:9px;margin-left:3px;display:inline-block;min-width:14px}.empty-description{font-size:11px;line-height:1.7}.favorites-empty{padding-top:70px}.mine-panel{border:1px solid var(--line);border-radius:16px;padding:22px 18px;margin-top:20px}.mine-panel h2{font-size:16px;line-height:1.5}.mine-panel p{font-size:12px;color:var(--muted);margin:9px 0 22px}.mine-link{width:100%;border:0;background:var(--soft);border-radius:12px;min-height:48px;padding:10px 12px;display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--ink)}.mine-link>span:last-child{display:flex;gap:5px;align-items:center;color:var(--muted);font-size:11px}.mine-link svg{height:16px;width:16px}.local-note{font-size:11px;color:var(--muted);line-height:1.8;margin:18px 3px}.favorite-toast{position:fixed;left:50%;bottom:calc(82px + env(safe-area-inset-bottom));transform:translateX(-50%);width:max-content;max-width:calc(100% - 40px);padding:11px 16px;border:1px solid var(--line);border-radius:13px;background:var(--soft);color:var(--ink);font-size:12px;text-align:center;z-index:20}.page-view .shopping-grid{padding-bottom:20px}

.account-panel{display:flex;align-items:center;gap:12px;margin-top:22px}.account-avatar{width:40px;height:40px;border-radius:13px;background:var(--soft);color:var(--accent);display:grid;place-items:center;flex-shrink:0}.account-avatar svg{width:23px;height:23px}.account-info{flex:1;min-width:0}.account-info h2{font-size:13px;overflow-wrap:anywhere}.account-info p{margin:5px 0 0;font-size:10px;color:var(--muted)}.account-panel>button{flex-shrink:0;padding:7px 10px}.demo-account-note{font-size:10px;line-height:1.7;color:var(--muted);background:var(--soft);border-radius:12px;padding:10px 12px;margin:16px 0}.login-explanation{font-size:12px;line-height:1.8}.demo-login-submit{width:100%;margin-top:8px;min-height:40px}#demo-login-error:empty{display:none}

.brand-mark{background:var(--ui-color-3);color:var(--brand);border-radius:0}.brand-mark svg{width:25px;height:25px}


/* My: horizontal shortcuts, each opens its own record page. */
.mine-modules{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:22px}.mine-module{border:1px solid var(--line);border-radius:16px;background:var(--bg);min-height:115px;padding:17px 12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;color:var(--ink)}.mine-module svg{width:23px;height:23px;color:var(--accent);margin-bottom:2px}.mine-module strong{font-size:18px;font-weight:700;line-height:1.2}.mine-module>span{font-size:11px;color:var(--secondary)}.back-to-mine{display:flex;gap:3px;align-items:center;margin:0 0 18px;padding:5px 0;border:0;background:var(--ui-color-1);color:var(--accent);font-size:11px}.back-to-mine svg{width:16px;height:16px}.card-tools{align-items:center;flex-wrap:wrap;gap:6px}.card-tools .product-details{flex-basis:100%}.card-tools .product-details summary{min-height:24px}.card-tools .purchase-marker{margin-left:auto}.card-tools .favorite-button{font-size:10px;padding:5px 9px}.record-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 12px 0;color:var(--muted);font-size:9.5px}.remove-record{border:0;background:var(--ui-color-1);color:var(--muted);font-size:9.5px;padding:4px 0}.record-view .shopping-grid{padding-bottom:20px}

/* Continuous chat: top navigation, fixed bottom composer. */
:root{--composer-height:104px;--keyboard-offset:0px}.topbar{position:sticky;top:0;background:var(--ui-color-3);z-index:15;height:58px}.tabbar{position:sticky;top:58px;bottom:auto;height:43px;max-width:760px;margin:auto;padding:5px 20px 8px;border-top:0;border-bottom:1px solid var(--line);background:var(--ui-color-3);z-index:14}.tab{flex-direction:row;justify-content:center;gap:6px;padding:0 0 3px;font-size:11px}.tab.active:after{bottom:-5px}.tab svg{width:17px;height:17px}#main{padding-top:18px;padding-bottom:calc(var(--composer-height) + 30px)}.composer-dock{position:fixed;bottom:var(--keyboard-offset);left:0;right:0;background:var(--ui-color-3);padding:12px max(16px,calc((100vw - 712px)/2)) calc(10px + env(safe-area-inset-bottom));border-top:1px solid var(--line);z-index:18}.composer{width:100%;max-width:712px;margin:auto}.composer textarea{font-size:12.5px}.under-composer{max-width:712px;margin:7px auto 0;font-size:9px}.notice{max-width:712px;margin:0 auto 8px}.chat-welcome{padding:54px 0 36px;text-align:center}.welcome-logo{width:45px;height:45px;margin:0 auto 16px;color:var(--accent);display:grid;place-items:center}.welcome-logo svg{width:37px;height:37px}.chat-welcome h1{font-size:21px;font-weight:650;letter-spacing:-.4px;margin:0 0 20px}.chat-welcome .suggestions{justify-content:center}.chat-welcome .welcome-hint{font-size:11px;line-height:1.8;margin-top:20px}.turn{scroll-margin-top:117px;margin-top:0}.context-reply{font-size:12px;line-height:1.8;margin:0 0 14px;color:var(--secondary)}.conclusion{margin-top:6px}.card-tools{flex-wrap:nowrap;align-items:flex-start}.card-tools .product-details{flex-basis:auto}.card-tools .product-details summary{min-height:32px}.favorite-toast{bottom:calc(var(--composer-height) + 16px);z-index:25}.mine-module{min-height:110px}.record-view .shopping-grid{padding-bottom:20px}.page-view{padding-top:4px}.search-symbol svg{width:20px;height:20px}.conclusion svg{width:18px;height:18px}.page-disclaimer{font-size:9px;margin-top:18px}.favorite-toast{max-width:calc(100% - 40px)}@media(max-width:480px){#main{padding-top:18px;padding-bottom:calc(var(--composer-height) + 24px)}.chat-welcome{padding-top:40px}.topbar{height:58px}.tabbar{padding-left:16px;padding-right:16px}}@media(max-height:500px){.chat-welcome{padding-top:10px;padding-bottom:10px}.welcome-logo{display:none}}
/* Navigation sits above the resting composer; keyboard moves the composer only. */
:root{--navigation-top:calc(100dvh - 155px);--page-bottom-reserve:180px}.tabbar{position:fixed;top:var(--navigation-top);left:0;right:0;bottom:auto;height:45px;max-width:760px;width:100%;margin:0 auto;padding:7px 20px 8px;border-top:1px solid var(--line);border-bottom:0;z-index:16;transition:none}.tab.active:after{bottom:-4px}.composer-dock{border-top:0;transition:none}#main{padding-bottom:var(--page-bottom-reserve)}.turn{scroll-margin-top:72px}.favorite-toast{bottom:calc(var(--composer-height) + 62px)}@media(max-width:480px){#main{padding-bottom:var(--page-bottom-reserve)}}@media(pointer:coarse){#query{font-size:16px}#query::placeholder{font-size:12.5px}}
html[data-view]:not([data-view=home]) .tabbar{height:calc(45px + env(safe-area-inset-bottom));padding-bottom:calc(8px + env(safe-area-inset-bottom))}
/* Opaque joined bottom panel: content cannot peek between navigation and search. */
.bottom-panel-background{position:fixed;left:0;right:0;top:var(--navigation-top);bottom:0;background:var(--ui-color-3);pointer-events:none;z-index:15}.tabbar{background:var(--ui-color-3);border-bottom:0;box-shadow:none}.composer-dock{padding-top:0;background:var(--ui-color-3)}.tab.active:after{bottom:0}.conclusion{margin-top:7px}

.task-evidence-image{display:block;max-width:100%;max-height:75vh;object-fit:contain} dialog label{display:block;margin:12px 0} dialog input{display:block;box-sizing:border-box;width:100%;padding:10px;margin-top:6px}

/* Larger product cards: readable title, generous image, prominent price. */
.product-wrap{border:1px solid var(--ui-color-6);border-radius:20px;box-shadow:0 4px 20px var(--ui-color-7)}
.shopping-card{gap:20px;padding:22px;align-items:stretch}
.shopping-photo{width:144px;height:144px;flex:0 0 144px;border-radius:14px;background:var(--ui-color-8)}
.shopping-photo img{padding:6px}
.shopping-info{display:flex;flex-direction:column;min-height:144px}
.shopping-info h3{font-size:17px;font-weight:650;line-height:1.5;margin:0 0 10px;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
.shopping-meta{gap:8px;align-items:center;margin-bottom:6px}
.platform-tag{font-size:12px;padding:3px 8px;border-radius:6px;background:var(--ui-color-9);color:var(--ui-color-10)}
.recommendation{font-size:11px;color:var(--ui-color-11)}
.shopping-spec{font-size:12px;line-height:1.5;margin:0 0 8px;color:var(--ui-color-12)}
.shopping-spec:empty{display:none}
.shopping-foot{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;margin-top:auto;padding-top:12px}
.shopping-price{font-size:32px;font-weight:750;line-height:1.1;color:var(--ui-color-13);letter-spacing:-.8px;font-variant-numeric:tabular-nums}
.buy-button{display:inline-flex;align-items:center;justify-content:center;min-height:42px;min-width:100px;padding:10px 20px;border-radius:12px;background:var(--brand);color:var(--ui-color-4);font-size:14px;font-weight:650;white-space:nowrap}
.card-tools{padding:0 22px 14px;border-top:0}
.product-details summary{font-size:11px;color:var(--ui-color-11)}
@media(max-width:520px){
.shopping-card{gap:14px;padding:16px}
.shopping-photo{width:112px;height:112px;flex-basis:112px;border-radius:12px}
.shopping-info{min-height:132px}
.shopping-info h3{font-size:15px;line-height:1.45;margin-bottom:7px;-webkit-line-clamp:3}
.shopping-price{font-size:28px}
.shopping-foot{gap:8px;flex-wrap:wrap;padding-top:8px;align-items:center}
.buy-button{min-height:38px;min-width:84px;padding:8px 14px;font-size:13px}
.card-tools{padding:0 16px 12px}
}
@media(max-width:360px){.shopping-photo{width:88px;height:100px;flex-basis:88px}.shopping-card{gap:10px;padding:12px}.shopping-info h3{font-size:14px}.shopping-price{font-size:26px}}
.copy-link-button,.share-link-button{border:1px solid var(--ui-color-14);background:var(--ui-color-15);color:var(--brand);border-radius:10px;padding:9px 16px;font-size:13px;font-weight:600;min-height:38px;white-space:nowrap}.copy-link-button{margin-left:auto}.share-link-button{margin-left:8px}.card-tools{align-items:center;gap:8px}
#tab-favorites,#mine-purchased{display:none!important}.tabbar{grid-template-columns:repeat(2,1fr)}.mine-modules{grid-template-columns:1fr}
.unit-price{font-size:14px;color:var(--ui-color-16);font-weight:650;margin:4px 0 0;line-height:1.5}
.query-wait{padding:16px 18px;border:1px solid var(--ui-color-17);border-radius:16px;background:var(--ui-color-18);color:var(--ui-color-19);margin:8px 0 14px}.query-wait strong{display:block;font-size:15px;color:var(--brand)}.query-wait p{font-size:13px;line-height:1.7;margin:7px 0 0}

/* Compact actions and legible platform/specification on desktop and mobile. */
.shopping-card{align-items:flex-start;padding:18px 20px 10px;gap:18px}
.shopping-info{min-height:0}
.shopping-meta{flex-wrap:wrap;gap:6px 9px;margin-bottom:7px}
.platform-tag{font-size:14px;line-height:22px;padding:2px 9px;font-weight:600;color:var(--ui-color-20)}
.recommendation{font-size:12px;color:var(--ui-color-21);white-space:normal}
.shopping-spec{font-size:15px;line-height:1.55;font-weight:500;color:var(--ui-color-22);white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;margin-bottom:6px}
.shopping-foot{margin-top:8px;padding-top:0;align-items:center}
.card-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 20px 14px;flex-wrap:wrap}
.card-tools .product-details{flex:1;min-width:0;margin:0;padding:0}
.card-tools .product-details summary{font-size:12px;color:var(--ui-color-23);min-height:36px}
.card-tools:has(.product-details[open]){align-items:flex-start}
.card-actions{display:flex;align-items:center;gap:10px;margin-left:auto;flex-shrink:0}
.card-actions .buy-button,.card-actions .copy-link-button{display:inline-flex;align-items:center;justify-content:center;margin:0;min-height:42px;min-width:100px;padding:10px 16px;font-size:14px;line-height:20px;border-radius:11px;text-decoration:none}
@media(max-width:520px){
.shopping-card{padding:14px 14px 10px;gap:12px}
.shopping-info{min-height:0}
.shopping-info h3{font-size:16px;margin-bottom:7px}
.shopping-photo{width:104px;height:104px;flex-basis:104px}
.platform-tag{font-size:14px}
.shopping-spec{font-size:14px;line-height:1.6}
.unit-price{font-size:14px;overflow-wrap:anywhere}
.shopping-foot{margin-top:7px;padding-top:0}
.card-tools{padding:0 14px 12px;gap:4px 10px}
.card-actions{gap:8px}
.card-actions .buy-button,.card-actions .copy-link-button{min-height:42px;min-width:94px;padding:10px 12px}
.card-tools .product-details{flex-basis:100%;order:2}
.card-tools .product-details summary{min-height:30px}
}
@media(max-width:360px){.shopping-card{gap:10px;padding:12px 12px 8px}.shopping-photo{width:88px;height:88px;flex-basis:88px}.shopping-info h3{font-size:15px}.card-tools{padding:0 12px 10px}}

/* Keep actions beside the price, without a separate footer row. */
.shopping-card{padding-bottom:18px}
.shopping-foot{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px 14px}
.card-actions{gap:8px;margin-left:auto}
.card-actions .buy-button,.card-actions .copy-link-button{min-width:88px;min-height:40px;padding:9px 12px;font-size:13px;line-height:20px;border-radius:10px}
.card-tools:empty{display:none}
@media(max-width:520px){
.shopping-card{display:grid;grid-template-columns:104px minmax(0,1fr);column-gap:12px;row-gap:0;padding:14px}
.shopping-info{display:contents}
.shopping-info>h3,.shopping-info>.shopping-meta,.shopping-info>.shopping-spec,.shopping-info>.unit-price,.shopping-info>.shopping-conditions{grid-column:2}
.shopping-photo{grid-column:1;grid-row:1 / span 4}
.shopping-foot{grid-column:1 / -1;margin-top:12px;gap:8px;flex-wrap:wrap}
.card-actions .buy-button,.card-actions .copy-link-button{min-width:80px;min-height:42px;padding:10px;font-size:13px}
}
@media(max-width:360px){.shopping-card{grid-template-columns:88px minmax(0,1fr);gap:0 10px;padding:12px}.shopping-photo{width:88px;height:88px;flex-basis:88px}}

.conditional-price{font-size:13px;color:var(--ui-color-24);margin:5px 0 0;line-height:1.5}

.source-tag{display:inline-flex;align-items:center;padding:2px 8px;border-radius:6px;font-size:13px;font-weight:600;line-height:22px;white-space:nowrap}.source-haina{background:var(--ui-color-25);color:var(--ui-color-26)}.source-everyinfra{background:var(--ui-color-27);color:var(--ui-color-28)}

.deal-review{font-size:13px;color:var(--ui-color-29);margin:4px 0}.deal-date{font-size:12px;color:var(--ui-color-21);margin:2px 0}

.cache-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--ui-color-21);font-size:12px;margin:4px 0 10px}.cache-bar .quiet{color:var(--brand);font-size:12px}

.source-shihuo{background:var(--ui-color-30);color:var(--ui-color-31)}
.catalog-filters{display:flex;flex-wrap:wrap;gap:12px;margin:10px 0 14px}.catalog-filters label{font-size:13px;color:var(--ui-color-32)}.catalog-filters select{font:inherit;background:var(--ui-color-33);border:1px solid var(--ui-color-34);border-radius:8px;padding:7px 10px;max-width:180px}.catalog-group{font-size:14px;font-weight:600;margin:16px 0 8px;color:var(--ui-color-35)}
.quote-time{font-size:11px;color:var(--ui-color-36);margin:3px 0}

/* Variant B four-state visual system; existing keyboard dock variables remain authoritative. */
:root{--brand:#2D9CDB;--brand-light:#5FB6E6;--brand-pale:#BCE0F4;--hero-end:#F5FBFE;--price-red:#E0280F;--ink:#26292D;--muted:#6B7280;--line:#E5EAF0;--paper:#fff;--good:#0F7B3B;--good-bg:#EAF7EF;--soft:#F2F6FA;--shadow:rgba(15,40,70,.08);--primary:var(--brand)}
body{background:var(--paper);color:var(--ink);min-height:100dvh}.topbar{height:52px;position:sticky;top:0;max-width:none;background:var(--paper);border-bottom:1px solid var(--line);padding:0 28px;z-index:30;display:flex;justify-content:space-between}.brand{gap:10px;color:var(--ink)}.top-actions{display:flex;align-items:center;gap:10px}.top-actions .quiet{border-radius:999px;background:var(--soft);color:var(--brand);padding:7px 14px}.brand-savings{color:var(--brand);font-size:12px}.brand-savings small{font-size:10px;opacity:.65}#main{max-width:640px;margin:auto;padding:22px 30px 220px}.conversation{max-width:580px;margin:auto}.assistant{display:block}.assistant>.avatar{display:none}.answer{width:100%;min-width:0}.turn{margin:0 0 28px}.user{background:var(--soft);border-radius:14px 14px 4px 14px;max-width:80%;padding:10px 14px;margin:0 0 16px auto;width:fit-content}.page-disclaimer{font-size:11px;color:var(--muted);text-align:center}.search-panel{max-width:620px;left:50%;right:auto;transform:translateX(-50%);width:calc(100% - 32px);background:var(--ui-color-1)}.composer{border:1px solid var(--line);border-radius:999px!important;background:var(--paper);box-shadow:0 3px 14px var(--shadow);padding:8px 8px 8px 18px;display:flex;align-items:center}.composer textarea{font-size:16px;background:var(--ui-color-1);min-width:0;resize:none}.composer .send{border-radius:999px;background:var(--brand);padding:10px 22px;width:auto;min-width:72px;font-size:14px;color:var(--paper)}.search-symbol{display:none}.under-composer{font-size:11px}.tabbar{background:var(--paper)}.tab.active{color:var(--brand)}.tabbar svg{width:18px;height:18px}.hero-subtitle{color:var(--paper);opacity:.92;font-size:13px;margin:10px 0 20px}
body.hero-state{background:linear-gradient(175deg,var(--brand),var(--brand-light) 34%,var(--brand-pale) 68%,var(--hero-end))}body.hero-state .topbar{background:var(--ui-color-1);border:0}body.hero-state .brand{color:var(--paper)}body.hero-state .top-actions .quiet{color:var(--paper);background:var(--ui-color-40);border:1px solid var(--ui-color-37)}body.hero-state .brand-savings{display:none}body.hero-state #main{max-width:none;padding:0}body.hero-state .chat-welcome{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:calc(100dvh - 150px);padding:30px 20px 90px;position:static}body.hero-state .chat-welcome h1{font-size:28px;color:var(--paper);margin:0;text-shadow:0 2px 12px var(--shadow)}body.hero-state .welcome-hint{display:none}#hero-composer-slot{width:560px;max-width:100%}#hero-composer-slot .search-panel{position:static!important;transform:none;width:100%;max-width:none;padding:0;background:var(--ui-color-1)}#hero-composer-slot .composer{box-shadow:0 10px 30px var(--ui-color-41);padding:10px 10px 10px 20px}#hero-composer-slot .under-composer{color:var(--muted);min-height:14px}#hero-composer-slot .notice:empty{display:none}.suggestions{margin-top:12px;display:flex;gap:8px;justify-content:center;flex-wrap:wrap}.suggestions button{border-radius:999px;background:var(--ui-color-40);border:1px solid var(--ui-color-37);color:var(--paper);padding:7px 13px;font-size:12px}.welcome-logo svg{display:none}
.theater{border:1px solid var(--line);border-radius:18px;background:var(--paper);box-shadow:0 6px 24px var(--shadow);overflow:hidden}.theater .shopping-grid{display:block}.theater .product-wrap{border:0;box-shadow:none;margin:0}.theater .shopping-card{border:0;box-shadow:none;border-radius:0;display:flex;padding:16px;gap:12px}.theater .shopping-photo{width:76px;height:76px;flex:0 0 76px;border-radius:12px}.theater .shopping-info{display:block;min-width:0}.theater .shopping-info h3{font-size:15px;line-height:1.5;margin:0 0 5px}.theater .shopping-spec{font-size:12px}.theater .shopping-meta{gap:4px}.theater .shopping-meta span{font-size:10px;padding:1px 5px;line-height:18px}.theater .shopping-price{color:var(--price-red);font-size:27px}.theater .shopping-foot{margin-top:6px}.theater .unit-price{font-size:12px;color:var(--muted)}.theater .card-actions{display:none}.theater .quote-time{font-size:10px}.theater .card-tools{padding:0 16px}.theater-caption{padding:8px 16px;font-size:11px;color:var(--muted)}.evidence-strip{margin:10px 16px;padding:9px;background:var(--soft);border-radius:10px;display:flex;align-items:center;gap:10px;font-size:11px;color:var(--muted)}.evidence-thumb{width:46px;height:30px;background:var(--line);border:0;border-radius:6px;font-size:9px;color:var(--muted)}.theater-actions{display:flex;gap:8px;padding:4px 16px 16px}.theater-actions button{flex:1;padding:12px 8px;border:0;border-radius:11px;background:var(--brand);color:var(--paper);font-weight:600}.theater-actions button.secondary{background:var(--soft);color:var(--brand)}.theater-actions button:disabled{opacity:.5;cursor:not-allowed}.ai-note{padding:11px 14px;border:1px solid var(--line);border-radius:12px;background:var(--soft);font-size:12px;color:var(--muted);line-height:1.7;margin-top:11px}.catalog-filters{font-size:12px;gap:8px}.catalog-filters select{max-width:250px;width:auto}.cache-bar{font-size:11px}.page-view{padding-top:12px}.page-view .shopping-card{background:var(--paper)}
@media(min-width:1024px){.tabbar{left:auto;right:22px;top:65px;bottom:auto;transform:none;width:170px;padding:4px;border:1px solid var(--line);border-radius:14px;box-shadow:0 4px 20px var(--shadow)}.tabbar .tab{min-height:48px;font-size:11px}.search-panel{bottom:18px;top:auto!important}.bottom-panel-background{display:none}body.hero-state .tabbar{top:auto;bottom:100px;right:28px;background:var(--ui-color-39)}body.hero-state .page-disclaimer{position:absolute;bottom:86px;left:0;right:0}}
/* Step 2: independent mobile states, same DOM/form/data handlers. */
[hidden]{display:none!important}.theater-actions>div{flex:1.2}.theater-actions .copy-link-button{width:100%;height:100%;background:var(--brand);color:var(--paper);border:0;border-radius:11px;padding:12px 8px;font:inherit;font-size:12px;font-weight:600}.theater-actions .favorite-button{flex:0 0 auto;width:42px;font-size:10px;padding:4px;background:var(--soft);color:var(--brand)}.theater-actions .favorite-button svg{width:16px;height:16px}.group-picker{display:block;font-size:11px;color:var(--muted);margin-bottom:12px}.group-picker select{max-width:100%;width:100%;margin-top:6px;padding:8px;border:1px solid var(--line);border-radius:8px;font-size:12px;color:var(--ink);background:var(--paper)}.history-entry{display:block;width:100%;text-align:left;padding:12px;border:0;border-bottom:1px solid var(--line);background:var(--paper)}
@media(max-width:1023px){.topbar{height:46px;padding:0 14px;background:linear-gradient(120deg,var(--brand),var(--brand-light));color:var(--paper)}.brand{color:var(--paper)}.top-actions{gap:5px}.top-actions .quiet{padding:5px 9px;font-size:10px}.brand-savings{font-size:10px;color:var(--paper)}.brand-savings small{display:none}#advisor-mode{display:none}.topbar #new-chat{font-size:11px}.result-state #query-history{display:none}#main{max-width:620px;padding:14px 12px calc(var(--composer-height) + 85px)}.conversation{width:100%;max-width:none}.user{font-size:12px;margin-bottom:12px}.theater .shopping-card{display:flex;padding:12px;gap:10px}.theater .shopping-photo{width:54px;height:54px;flex-basis:54px}.theater .shopping-info h3{font-size:13px}.theater .shopping-price{font-size:21px}.theater .shopping-spec{font-size:11px}.theater .shopping-meta span{font-size:9px}.theater .shopping-foot{margin-top:4px}.theater .quote-time{font-size:9px}.theater-caption{padding:6px 12px;font-size:10px}.evidence-strip{margin:8px 12px;font-size:10px}.theater-actions{padding:4px 12px 12px;gap:6px}.theater-actions button,.theater-actions .copy-link-button{font-size:11px;padding:11px 6px}.ai-note{font-size:11px;padding:9px 12px}.search-panel{bottom:var(--keyboard-offset);width:calc(100% - 24px);padding:8px 0 calc(8px + env(safe-area-inset-bottom));max-width:596px}.composer textarea{font-size:16px}.composer .send{padding:9px 14px;font-size:12px;min-width:58px}.tabbar{max-width:620px;height:44px}.bottom-panel-background{background:linear-gradient(var(--ui-color-1),var(--paper) 25%)}body.hero-state .topbar #advisor-mode{display:block}body.hero-state .topbar #new-chat{display:none}body.hero-state .topbar #query-history{display:none}body.hero-state .chat-welcome{min-height:calc(100dvh - 100px);padding:25px 22px 80px;justify-content:center}body.hero-state .chat-welcome h1{font-size:21px;line-height:1.5;text-align:center;max-width:320px}body.hero-state .hero-subtitle{font-size:11px;line-height:1.7;margin:10px 0 20px;text-align:center}body.hero-state #hero-composer-slot{max-width:470px;width:100%}body.hero-state .tabbar,body.hero-state .bottom-panel-background{display:none}body.hero-state .page-disclaimer{position:fixed;bottom:18px;left:0;right:0;color:var(--muted)}body.hero-state .suggestions button{font-size:11px;padding:6px 10px}body.hero-state .under-composer{font-size:10px}.catalog-filters{flex-wrap:wrap}.catalog-filters select{max-width:160px}}
/* Step 3: JS-scoped animation; content remains visible if scripts fail. */
@media(min-width:1024px){html.js body.hero-confirm #query-form{transform:scale(.94);opacity:.65;transition:transform .16s,opacity .16s}html.js body.brand-transition:before{content:'';position:fixed;inset:0;z-index:80;pointer-events:none;background:linear-gradient(175deg,var(--brand),var(--brand-light) 34%,var(--brand-pale) 68%,var(--hero-end));animation:brand-exit .8s cubic-bezier(.5,0,.15,1) forwards}html.js body.brand-transition .topbar{animation:brand-rise .55s .1s both}html.js body.brand-transition .user{animation:brand-rise .55s .3s both}html.js body.brand-transition .theater,html.js body.brand-transition .query-wait{animation:brand-rise .6s .45s both}html.js body.brand-transition .ai-note{animation:brand-rise .55s .6s both}html.js body.brand-transition>#bottom-dock{animation:brand-rise .5s .75s both}}
@keyframes brand-exit{to{transform:translateY(-104%)}}@keyframes brand-rise{from{opacity:0;translate:0 20px}to{opacity:1;translate:0 0}}
@media(prefers-reduced-motion:reduce){html.js body.brand-transition:before{display:none}html.js body.brand-transition *{animation:none!important;transition:none!important}}
@media(min-width:1024px){.search-panel.composer-dock{padding:8px 0;width:min(620px,calc(100% - 32px));box-sizing:border-box}.search-panel .composer{width:100%;box-sizing:border-box}#query{flex:1;width:100%;min-width:0}}

#tab-favorites{display:flex!important}#mine-purchased{display:flex!important}

/* Price leads the theater header; factual SKU/observation labels remain visible. */
.theater .shopping-info{display:flex;flex-direction:column;flex:1}.theater .shopping-info h3{order:0}.theater .shopping-foot{order:1;justify-content:flex-start}.theater .shopping-meta{order:2;margin-top:5px}.theater .shopping-spec{order:3}.theater .quote-time{order:4}.theater .unit-price{order:5}.winner-tag{font-size:10px;color:var(--good);background:var(--good-bg);padding:3px 6px;border-radius:5px}.theater .original-price{font-size:11px;color:var(--muted)}

/* Round 2 · P0: contain intrinsic widths, align the dialogue, unify navigation. */
#main,.conversation,.turn,.assistant,.answer,.catalog-results,.theater,.offer-result,.shopping-grid,.product-wrap,.shopping-info,.evidence-strip,.theater-actions{min-width:0;max-width:100%}
.conversation{width:100%;margin-inline:auto}.turn{width:100%}.assistant{display:block;width:100%;margin:0;padding:0}.assistant>.avatar{display:none}.answer{width:100%;margin:0;padding:0}.user{max-width:min(85%,100%);margin-left:auto;margin-right:0;overflow-wrap:anywhere}.theater{width:100%;margin-inline:0}.shopping-info h3,.shopping-spec,.quote-time,.context-reply,.cache-bar{overflow-wrap:anywhere}
.topbar,.top-actions,.brand{min-width:0}.brand{flex-shrink:0}.top-actions{flex-wrap:nowrap}.top-actions>button,.brand-savings{white-space:nowrap}.savings-short{display:none}.session-tools{display:none}
@media(min-width:1024px){#main{width:100%;max-width:628px;padding-inline:24px;padding-bottom:calc(var(--composer-height) + 48px)}.conversation{max-width:580px}.topbar .desktop-nav{display:inline-flex}.session-tools{display:none}}
@media(max-width:1023px){.topbar{width:100%;gap:10px}.top-actions{gap:0;flex-shrink:0}.topbar .desktop-nav,.topbar #new-chat,.topbar #query-history,.savings-long{display:none!important}.savings-short{display:inline}.brand-savings{font-size:12px}.brand-savings small{display:none}.session-tools{display:flex;justify-content:flex-end;gap:12px;margin-bottom:12px}.session-tools .quiet{color:var(--brand);font-size:11px;padding:4px 0}.hero-state .session-tools,html[data-view]:not([data-view=home]) .session-tools{display:none}#main{width:100%;box-sizing:border-box}.conversation,.answer,.turn{width:100%}.theater .shopping-card{min-width:0}.theater .shopping-info{flex:1;min-width:0}.theater .shopping-photo{flex-shrink:0}.theater-actions{flex-wrap:wrap}.theater-actions>div{min-width:0}.catalog-filters label{min-width:0;max-width:100%}.catalog-filters select{max-width:100%}.cache-bar{flex-wrap:wrap}.cache-bar button{white-space:normal;max-width:100%;text-align:right}.composer{min-width:0}.composer textarea{min-width:0;flex:1;width:0}.composer .send{flex-shrink:0}}

/* Round 2 · P1 */
:root{--chip-solid:rgba(255,255,255,.92);--disabled-bg:#EDF1F4;--disabled-ink:#9CA3AF;--failure-bg:#FFF1EF;--failure-line:#F4C9C3;--failure-ink:#8C3529}
body.hero-state .suggestions button{background:var(--chip-solid);color:var(--brand);border-color:var(--chip-solid)}body.hero-state #advisor-mode{background:var(--chip-solid);color:var(--brand)}
body.hero-state #hero-composer-slot{width:100%;min-width:0}body.hero-state #hero-composer-slot .composer{display:flex;width:100%;min-width:0;gap:8px}body.hero-state #query{flex:1;min-width:0;width:0}body.hero-state .composer .send{flex:0 0 auto;white-space:nowrap}.theater-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;align-items:stretch}.theater-actions button{min-width:0;white-space:normal;overflow-wrap:anywhere}.theater-actions button>span,.theater-actions button>small{display:block}.theater-actions button>small{font-size:9px;font-weight:400;margin-top:4px;line-height:1.5}.theater-actions button:disabled{background:var(--disabled-bg);color:var(--disabled-ink);opacity:1}.theater-link{display:flex;justify-content:flex-end;padding:0 16px 12px}.theater-link button{border:0;background:none;color:var(--brand);font-size:11px}.theater-actions .favorite-button{height:auto;align-self:stretch}.failure-card{padding:18px;border:1px solid var(--failure-line);border-radius:16px;background:var(--failure-bg);color:var(--failure-ink);overflow-wrap:anywhere}.failure-card strong{font-size:15px}.failure-reason{font-size:12px;margin:9px 0 14px}.failure-retry{background:var(--brand);color:var(--paper);border:0;border-radius:8px;padding:8px 22px}.failure-card details{font-size:11px;margin-top:14px}.failure-card summary{cursor:pointer}#main{padding-bottom:max(var(--page-bottom-reserve),calc(var(--composer-height) + 48px))}
@media(max-width:1023px){body.hero-state .chat-welcome{padding-inline:22px}body.hero-state #hero-composer-slot .composer{padding:8px 8px 8px 14px}body.hero-state .composer .send{font-size:11px;padding:9px 12px;min-width:0}.theater-actions{gap:6px}.theater-actions button{padding:10px 5px;font-size:10px}.theater-actions button>small{font-size:9px}.theater-actions .favorite-button{width:30px}.failure-card{padding:14px}}

/* Round 2 · P2: evidence and language hierarchy. */
.evidence-thumb{flex:0 0 54px;width:54px;height:38px;white-space:nowrap;font-size:9px;padding:4px}.evidence-copy{min-width:0;flex:1}.evidence-copy p{margin:3px 0;overflow-wrap:anywhere}.evidence-badges{display:flex;flex-wrap:wrap;gap:5px}.evidence-badge{display:inline-block;border-radius:99px;padding:2px 7px;background:var(--paper);color:var(--muted);white-space:nowrap}.tabbar svg{width:18px;height:18px;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.tabbar .tab.active{color:var(--brand)}.cache-bar .quiet{max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.6}.topbar .quiet[aria-current=page]{color:var(--brand);box-shadow:inset 0 -2px var(--brand)}
:root{--accent:var(--brand);--primary:var(--brand)}.source-haina,.source-everyinfra,.source-shihuo{background:var(--soft);color:var(--brand)}

:root{--ui-color-1:transparent;--ui-color-2:#F2F6FA;--ui-color-3:#FFFFFF;--ui-color-4:white;--ui-color-5:rgba(0,0,0,.2);--ui-color-6:#E5EAF0;--ui-color-7:rgba(28,49,80,.045);--ui-color-8:#f7f8fa;--ui-color-9:#F2F6FA;--ui-color-10:#374151;--ui-color-11:#9CA3AF;--ui-color-12:#8A9099;--ui-color-13:#e54832;--ui-color-14:#E5EAF0;--ui-color-15:#F2F6FA;--ui-color-16:#0064b7;--ui-color-17:#F2F6FA;--ui-color-18:#FFFFFF;--ui-color-19:#374151;--ui-color-20:#374151;--ui-color-21:#6B7280;--ui-color-22:#4B5563;--ui-color-23:#6B7280;--ui-color-24:#996021;--ui-color-25:#e8f6ef;--ui-color-26:#16633d;--ui-color-27:#eef0ff;--ui-color-28:#4547a1;--ui-color-29:#946017;--ui-color-30:#fff1e7;--ui-color-31:#a14516;--ui-color-32:#6B7280;--ui-color-33:#fff;--ui-color-34:#E5EAF0;--ui-color-35:#374151;--ui-color-36:#8A9099;--ui-color-37:rgba(255,255,255,.5);--ui-color-38:rgba(10,60,100,.22);--ui-color-39:rgba(255,255,255,.85);--ui-color-40:rgba(255,255,255,.24);--ui-color-41:rgba(10,60,100,.18)}

.shopping-price{color:var(--price-red)}.theater-actions .favorite-button .favorite-label{display:none}.theater-actions .favorite-button{display:flex;justify-content:center;align-items:center}.theater-actions .favorite-button svg{width:18px;height:18px}

/* Round 3 · 1: compact headers; Hero trust content stays unchanged. */
.account-shortcuts{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0}.account-shortcuts button{color:var(--brand);background:var(--soft);border:0;border-radius:10px;padding:8px 14px}body.hero-state #main .account-shortcuts{display:none}

/* Round 3 · 2: summary is outside the one/two selected cards. */
.theater-caption{padding:6px 0 12px}.theater+.theater{margin-top:14px}

/* Round 3 · 3: primary purchase actions and a corner bookmark. */
.theater{position:relative}.theater .shopping-info h3{padding-right:28px}.theater>.favorite-button{position:absolute;top:12px;right:12px;width:28px;height:28px;padding:5px;border:1px solid var(--line);border-radius:50%;background:var(--paper);color:var(--muted);display:flex;align-items:center;justify-content:center}.theater>.favorite-button svg{width:16px;height:16px}.theater>.favorite-button .favorite-label{display:none}.theater>.favorite-button:hover,.theater>.favorite-button.is-saved{color:var(--brand)}.theater>.favorite-button.is-saved svg{fill:currentColor}
.theater-actions{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:10px;padding:14px 16px 16px;align-items:start}.theater-actions>.purchase-action,.theater-actions .secondary{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;height:44px;min-height:44px;border:0;border-radius:12px;text-decoration:none;font-size:14px;font-weight:600;line-height:1.2;padding:0 8px;white-space:nowrap}.theater-actions>.purchase-action{background:var(--brand);color:var(--paper)}.theater-actions .secondary{background:var(--soft);color:var(--brand)}.theater-actions svg{width:18px;height:18px;flex:0 0 18px}.secondary-action{min-width:0}.action-reason{display:block;text-align:center;font-size:10px;color:var(--muted);line-height:1.5;margin-top:6px}.theater-actions button:disabled{background:var(--disabled-bg);color:var(--disabled-ink)}
@media(max-width:1023px){.theater-actions{padding:12px;gap:8px}.theater-actions>.purchase-action,.theater-actions .secondary{height:42px;min-height:42px;font-size:13px;padding:0 5px;gap:5px}.theater-actions svg{width:16px;height:16px;flex-basis:16px}}
@media(max-width:340px){.theater-actions{gap:6px}.theater-actions>.purchase-action,.theater-actions .secondary{font-size:11px;gap:3px}.theater-actions svg{width:14px;height:14px;flex-basis:14px}}

/* Round 3 · 4: a neutral result canvas; gradients belong only to the Hero. */
:root{--clear:transparent;--result-bg:#FFFFFF;--result-border:#E5EAF0;--result-card-shadow:rgba(15,40,70,.08);--result-note:#EEF6FB;}
body:not(.hero-state){background:var(--result-bg)}body:not(.hero-state) .topbar{background:var(--paper);border-bottom:1px solid var(--result-border)}body:not(.hero-state) .topbar .brand{color:var(--ink)}.result-state .conversation,.result-state .assistant,.result-state .answer{background:var(--clear)}
.result-state .theater{background:var(--paper);border:1px solid var(--result-border);box-shadow:0 4px 16px var(--result-card-shadow)}.result-state .ai-note{background:var(--result-note);border-color:var(--result-border)}.result-state .evidence-strip{background:var(--result-bg)}.result-state .evidence-thumb{background:var(--result-border)}.result-state .shopping-meta span{background:var(--result-bg);color:var(--muted)}body:not(.hero-state) .top-actions .quiet{background:var(--paper);color:var(--ink)}.result-state .theater-caption{color:var(--muted)}

/* Round 3 · 5: an independent curtain reveals a steady neutral canvas. */
:root{--curtain-travel:-104%}
html.js body.hero-confirm{background:linear-gradient(175deg,var(--brand),var(--brand-light) 34%,var(--brand-pale) 68%,var(--hero-end))}html.js body.hero-confirm .search-panel{opacity:0}html.js .confirm-capsule{position:fixed;z-index:85;pointer-events:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 10px 8px 20px;border-radius:999px;background:var(--paper);color:var(--muted);box-shadow:0 10px 30px var(--shadow);animation:capsule-confirm .15s ease-out forwards}html.js .confirm-capsule span{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}html.js .confirm-capsule b{flex-shrink:0;background:var(--brand);color:var(--paper);border-radius:999px;padding:8px 16px}
html.js body.brand-transition:before{content:'';position:fixed;inset:0;z-index:80;pointer-events:none;background:linear-gradient(175deg,var(--brand),var(--brand-light) 34%,var(--brand-pale) 68%,var(--hero-end));animation:brand-exit .7s cubic-bezier(.5,0,.15,1) forwards}html.js body.brand-transition .topbar{animation:brand-rise .5s 0s both}html.js body.brand-transition .theater-caption{animation:brand-rise .5s .12s both}html.js body.brand-transition .theater,html.js body.brand-transition .query-wait{animation:brand-rise .5s .24s both}html.js body.brand-transition .ai-note{animation:brand-rise .5s .36s both}html.js body.brand-transition>#bottom-dock{animation:brand-rise .5s .48s both}html.js body.brand-transition .user{animation:brand-rise .5s .12s both}html.js body.brand-transition .topbar,html.js body.brand-transition .theater-caption,html.js body.brand-transition .theater,html.js body.brand-transition .query-wait,html.js body.brand-transition .ai-note,html.js body.brand-transition>#bottom-dock{animation-timing-function:cubic-bezier(.22,.61,.36,1)}
@keyframes brand-exit{to{transform:translateY(var(--curtain-travel))}}@keyframes capsule-confirm{to{transform:scale(.94);opacity:.65}}
@media(max-width:1023px){:root{--curtain-travel:-100%}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}html.js *,html.js *:before,html.js *:after{animation:none!important;transition:none!important}html.js .confirm-capsule,html.js body.brand-transition:before{display:none}}

.result-state{--line:var(--result-border);--shadow:var(--result-card-shadow)}

.purchase-reason{grid-column:1;grid-row:2;font-size:10px;line-height:1.5;color:var(--muted);text-align:center}@media(max-width:1023px){}

/* Round 4 · one real purchase action, no disabled feature placeholders. */
.theater-actions{display:block}.theater-actions>.purchase-action{width:100%}.failure-card strong{display:flex;align-items:center;gap:7px}.failure-card strong svg{width:17px;height:17px}

/* Round 4 · evidence exists only for real evidence/command/verified observation. */
.price-basis{font-size:11px;line-height:1.6;color:var(--muted);white-space:nowrap}.evidence-thumb{background:var(--clear)!important;flex:0 0 68px;width:68px;height:44px;border:0;padding:0;border-radius:6px;overflow:hidden}.evidence-thumb img{display:block;width:100%;height:100%;object-fit:cover}.purchase-command{overflow-wrap:anywhere}

/* Round 5 · shared information hierarchy: name/specification/price/unit/update. */
.theater .shopping-card{display:flex;padding:14px;gap:12px;align-items:flex-start}.theater .shopping-photo{width:96px;height:96px;flex:0 0 96px;border-radius:12px;overflow:hidden}.theater .shopping-photo img{width:100%;height:100%;padding:0;object-fit:cover}.theater .shopping-info{display:flex;flex-direction:column;min-width:0;min-height:0;flex:1}.theater .shopping-info>*{order:0!important}.theater .shopping-info h3{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;line-height:1.5;font-size:15px;margin:0 0 5px;padding-right:28px;max-height:3em}.theater .shopping-spec{display:flex;align-items:center;gap:6px;min-width:0;max-width:100%;width:100%;font-size:11px;line-height:1.5;color:var(--muted);margin:0 0 8px;white-space:nowrap;overflow:hidden}.spec-value{min-width:0;flex:1 1 auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.spec-platform{flex:0 0 auto}.spec-activity{flex:0 0 auto;max-width:40%;overflow:hidden;text-overflow:ellipsis}.spec-truncated:after{content:'…';flex:0 0 auto}.theater .shopping-foot{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:6px;padding:0;margin:0}.theater .price-group{display:inline-flex;align-items:baseline;gap:6px;min-width:0}.theater .shopping-price{font-size:24px;line-height:1.2;letter-spacing:-.4px;color:var(--price-red)}.theater .price-basis{font-size:10px;line-height:1.5;color:var(--muted)}.theater .unit-price{font-size:11px;line-height:1.5;color:var(--muted);margin:4px 0 0}.theater .quote-time{font-size:10px;line-height:1.5;color:var(--muted);opacity:.75;margin:8px 0 0}.theater-actions{padding-top:8px}
@media(max-width:1023px){.theater .shopping-card{padding:14px;gap:12px}.theater .shopping-photo{width:80px;height:80px;flex-basis:80px}.theater .shopping-info h3{font-size:13px}.theater .shopping-price{font-size:20px}.theater .shopping-spec{font-size:10px}.theater .unit-price{font-size:10px}.theater .quote-time{font-size:9px}}

/* Round 6: card proportions only; keep the established DOM and behavior. */
.theater .shopping-card{padding:16px;gap:14px;align-items:stretch}.theater .shopping-photo{width:128px;height:128px;flex:0 0 128px;align-self:flex-start;border-radius:12px}.theater .shopping-photo img{object-fit:cover}.theater .shopping-info{display:flex;flex-direction:column;flex:1;min-width:0;min-height:128px}.theater .shopping-info h3{font-size:16px;font-weight:600;margin-bottom:5px}.theater .shopping-spec{font-size:13px;justify-content:flex-start;margin-bottom:6px}.theater .spec-value{flex:0 1 auto}.theater .spec-platform{flex:0 0 auto}.theater .shopping-price{font-size:28px}.theater .price-basis{font-size:11px}.theater .unit-price{font-size:12.5px;margin-top:4px}.theater .quote-time{font-size:11.5px;margin-top:auto;padding-top:8px;margin-bottom:0}.theater .theater-actions{padding-inline:16px}
@media(max-width:1023px){.theater .shopping-photo{width:92px;height:92px;flex-basis:92px}.theater .shopping-info{min-height:92px}.theater .shopping-info h3{font-size:14px}.theater .shopping-spec{font-size:12px}.theater .shopping-price{font-size:22px}.theater .unit-price{font-size:11.5px}.theater .quote-time{font-size:11px}}

/* Larger, readable product information; preserve card behavior and order. */
.theater .shopping-photo{width:148px;height:148px;flex-basis:148px}.theater .shopping-info{min-height:148px}.theater .shopping-info h3{font-size:18px;line-height:1.45;max-height:2.9em}.theater .shopping-spec{font-size:14px}.theater .shopping-price{font-size:32px}.theater .price-basis{font-size:12px}.theater .unit-price{font-size:14px}.theater .quote-time{font-size:12.5px}
@media(max-width:1023px){.theater .shopping-photo{width:104px;height:104px;flex-basis:104px}.theater .shopping-info{min-height:104px}.theater .shopping-info h3{font-size:16px}.theater .shopping-spec{font-size:13px}.theater .shopping-price{font-size:25px}.theater .price-basis{font-size:11px}.theater .unit-price{font-size:12.5px}.theater .quote-time{font-size:12px}}
@media(max-width:350px){.theater .shopping-card{gap:10px;padding:14px}.theater .spec-platform{flex-shrink:1;min-width:0;overflow:hidden;text-overflow:ellipsis}.theater .shopping-foot{gap:4px}}

/* Product-specific coupon facts, never a checkout guarantee. */
.offer-coupon-note{margin:10px 14px 0;color:var(--text-muted, var(--muted));font-size:12px;line-height:1.6;overflow-wrap:anywhere;}

.offer-rank{font-size:12px;font-weight:600;color:var(--brand);margin:0;padding:12px 16px 0;line-height:20px;box-sizing:border-box;}

/* Round 7: neutral result surfaces; Hero inherits its original palette. */
body.hero-state{--muted:rgb(110,136,152);--line:rgb(207,230,245);--soft:rgb(234,244,250);--shadow:rgba(30,90,140,.10);--disabled-ink:rgb(135,149,160);--ui-color-2:rgb(234,243,255);--ui-color-6:rgb(229,233,240);--ui-color-9:rgb(241,245,251);--ui-color-10:rgb(51,65,85);--ui-color-11:rgb(139,149,165);--ui-color-12:rgb(120,131,147);--ui-color-14:rgb(216,229,246);--ui-color-15:rgb(242,247,255);--ui-color-17:rgb(222,235,251);--ui-color-18:rgb(245,249,255);--ui-color-19:rgb(52,69,99);--ui-color-20:rgb(37,59,86);--ui-color-21:rgb(101,113,132);--ui-color-22:rgb(63,76,94);--ui-color-23:rgb(89,103,121);--ui-color-32:rgb(89,101,117);--ui-color-34:rgb(220,227,234);--ui-color-35:rgb(40,54,73);--ui-color-36:rgb(137,146,159);--result-bg:rgb(246,248,250);--result-border:rgb(232,237,242);--result-card-shadow:rgba(17,24,39,.06)}
body:not(.hero-state) .shopping-spec,body:not(.hero-state) .unit-price,body:not(.hero-state) .quote-time,body:not(.hero-state) .theater-caption{color:var(--muted)}
.brand-mark{display:block;width:84px;height:28px;flex:0 0 84px;object-fit:contain;background:none;border:0;border-radius:0;filter:none;box-shadow:none}.hero-state .brand-mark{width:auto;height:24px;flex:0 0 auto}.welcome-logo{display:flex;align-items:center;justify-content:center;width:min(100%,492.8px);height:82px;margin:0 auto 20px;background:none;border:0;border-radius:0;filter:none;box-shadow:none}.welcome-logo img{display:block;width:492.8px;max-width:100%;height:auto;object-fit:contain}
@media(max-width:1023px){.brand-mark{width:72px;height:24px;flex-basis:72px}.hero-state .brand-mark{width:auto;height:24px;flex-basis:auto}.hero-state .welcome-logo{width:min(100%,308px);height:52px;margin-bottom:18px}.welcome-logo img{width:308px}}

/* Round 8: shared wordmark and desktop workspace. Mobile dock stays unchanged. */
:root{--app-font-stack:-apple-system,"PingFang SC","Segoe UI","Microsoft YaHei UI","Microsoft YaHei",sans-serif;--desktop-column:960px;--desktop-nav-height:52px;--desktop-disclaimer-height:16px;--desktop-disclaimer-gap:6px;--desktop-composer-bottom:90px;--desktop-nav-shadow:rgba(15,40,70,.06)}
.brand{align-items:center;gap:10px}
@media(min-width:1024px){
 body,body:not(.hero-state) .conversation,body:not(.hero-state) .composer,body:not(.hero-state) .page-view,body:not(.hero-state) .tabbar{font-family:var(--app-font-stack)}
 body.hero-state{font-family:system-ui,-apple-system,"PingFang SC",sans-serif}
 body:not(.hero-state) #main{width:min(var(--desktop-column),92%);max-width:var(--desktop-column);padding-inline:0;padding-bottom:calc(var(--composer-height) + var(--desktop-nav-height) + var(--desktop-disclaimer-height) + var(--desktop-disclaimer-gap) + 40px)}
 body:not(.hero-state) .conversation{width:100%;max-width:var(--desktop-column);margin-inline:auto}
 .result-state .theater{width:100%;margin-inline:0}.result-state .theater .shopping-card{padding:18px;gap:16px}.result-state .theater .shopping-photo{width:140px;height:140px;flex-basis:140px}.result-state .theater .shopping-info{min-height:140px}.result-state .theater .shopping-info h3{font-size:17px;font-weight:600}.result-state .theater .shopping-price{font-size:30px;font-variant-numeric:tabular-nums}.result-state .theater .shopping-spec,.result-state .theater .unit-price{font-size:13px}.result-state .theater .quote-time,.result-state .theater .price-basis{font-size:12px}.result-state .user{font-size:13.5px}.result-state .theater-caption{font-size:12px}.result-state .ai-note{font-size:13px}
 body:not(.hero-state) .tabbar{display:grid;position:fixed;top:auto;bottom:0;left:50%;right:auto;transform:translateX(-50%);width:min(var(--desktop-column),92%);max-width:var(--desktop-column);height:var(--desktop-nav-height);margin:0;padding:6px 20px;border:0;border-top:1px solid var(--line);border-radius:0;background:var(--paper);box-shadow:0 -4px 16px var(--desktop-nav-shadow);grid-template-columns:repeat(3,minmax(0,1fr));z-index:35}
 body:not(.hero-state) .tabbar .tab{display:flex;min-height:0;flex-direction:row;gap:7px;padding:0;font-size:12px}body:not(.hero-state) .tabbar .tab.active{color:var(--brand)}body:not(.hero-state) .tabbar .tab.active:after{bottom:0}
 body:not(.hero-state) .page-disclaimer{display:block;position:fixed;bottom:calc(var(--desktop-nav-height) + var(--desktop-disclaimer-gap));left:50%;right:auto;transform:translateX(-50%);width:min(var(--desktop-column),92%);height:var(--desktop-disclaimer-height);line-height:var(--desktop-disclaimer-height);margin:0;text-align:center;background:var(--paper);z-index:34}
 body:not(.hero-state) .search-panel{bottom:var(--desktop-composer-bottom);top:auto!important;width:min(var(--desktop-column),92%);max-width:var(--desktop-column);padding:0;background:var(--clear)}body:not(.hero-state) .composer{max-width:none;width:100%}body:not(.hero-state) .bottom-panel-background{display:none}
 body.hero-state .tabbar{display:none}
}

@media(min-width:1024px){html[data-view] body:not(.hero-state) .tabbar{height:var(--desktop-nav-height);padding:6px 20px}}

@media(min-width:1024px){body.result-state .bottom-panel-background{display:block;position:fixed;top:auto;bottom:0;left:50%;right:auto;transform:translateX(-50%);width:min(var(--desktop-column),92%);height:calc(var(--composer-height) + var(--desktop-composer-bottom) + 12px);background:var(--paper);z-index:15}}

/* Rounds 9–10: one edge-to-edge dock; product badge, unchanged data handlers. */
:root{--bottom-dock-height:136px;--dock-fade-height:32px;--dock-tab-height:46px;--dock-input-height:64px;--dock-disclaimer-height:26px;--hero-disclaimer-ink:rgba(255,255,255,.88)}
.brand{gap:8px;align-items:center}
body:not(.hero-state) #bottom-dock{display:block;position:fixed;bottom:var(--keyboard-offset);left:0;right:0;width:100%;max-width:none;padding:0 0 env(safe-area-inset-bottom);margin:0;background:var(--paper);border:0;border-radius:0;box-shadow:none;z-index:35;transform:none}
#bottom-dock:before{content:'';position:absolute;left:0;right:0;bottom:100%;height:var(--dock-fade-height);background:linear-gradient(to top,var(--paper),var(--clear));pointer-events:none}
body:not(.hero-state) #bottom-dock .page-disclaimer{position:static;display:block;width:100%;height:var(--dock-disclaimer-height);margin:0;padding:5px 12px;line-height:16px;text-align:center;transform:none;color:var(--muted);font-size:11px;background:var(--paper)}
html[data-view] body:not(.hero-state) #bottom-dock .tabbar,body:not(.hero-state) #bottom-dock .tabbar{display:block;position:static;top:auto;bottom:auto;left:auto;right:auto;transform:none;width:100%;max-width:none;height:var(--dock-tab-height);padding:0;margin:0;border:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);border-radius:0;box-shadow:none;background:var(--paper)}
.dock-tabs-inner{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:min(960px,92%);height:100%;margin:0 auto}
body:not(.hero-state) #bottom-dock .tabbar .tab{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:7px;min-height:0;height:100%;padding:0;font-size:12px}#bottom-dock .tab.active:after{bottom:0}
.dock-input-row{display:flex;align-items:center;justify-content:center;min-height:var(--dock-input-height);padding:6px 0;background:var(--paper)}
body:not(.hero-state) #bottom-dock .search-panel{position:static!important;inset:auto;transform:none!important;width:min(960px,92%);max-width:none;padding:0;margin:0;background:var(--paper);border:0;box-shadow:none}
#bottom-dock .composer{max-width:none;width:100%;box-shadow:none}body:not(.hero-state) #main{padding-bottom:calc(var(--bottom-dock-height) + 24px)}
html[data-view]:not([data-view=home]) #dock-input-row{display:none}
html.js body.hero-state #bottom-dock{display:none}
body.hero-state #hero-composer-slot{width:min(560px,92vw);max-width:none}body.hero-state #hero-composer-slot .page-disclaimer{display:none}
body.hero-state .chat-welcome{padding-bottom:85px;display:flex;flex-direction:column;justify-content:center;min-height:calc(100dvh - 52px);box-sizing:border-box}
body:not(.hero-state) .composer:focus-within,body.hero-state .composer:focus-within{outline:2.5px solid rgba(45,156,219,.5);outline-offset:2px}
@media(max-width:1023px){.dock-tabs-inner{width:calc(100% - 24px)}body:not(.hero-state) #bottom-dock .search-panel{width:calc(100% - 24px)}body.hero-state .chat-welcome{padding-bottom:75px}}

#bottom-dock .under-composer,body.hero-state #hero-composer-slot .under-composer{display:none}

/* Round 11: company chip before query; image product wordmarks after query. */
body .topbar .brand-mark{height:28px;width:auto;flex:0 0 auto;object-fit:contain}body.hero-state .topbar .brand-mark{height:36px;width:auto}
body.hero-state .welcome-logo{align-items:flex-end;height:auto}body.hero-state .welcome-logo img{height:132px;width:auto;max-width:100%;object-fit:contain;flex:0 0 auto}
body.hero-state #welcome h1{font-size:26px;height:48px;line-height:48px}
body.hero-state .hero-subtitle{font-size:14px;line-height:1.7;margin:12px 0 26px;text-align:center;opacity:1}
body.hero-state .hero-subtitle .ch{display:inline-block;margin:0 5px;padding:5px 16px;border:1px solid rgba(255,255,255,.35);border-radius:999px;background:rgba(255,255,255,.1);font-size:13.5px;color:#fff}
body.hero-state .try-hint{margin:16px 0 0;text-align:center;font-size:14px;font-weight:500;color:rgba(255,255,255,.95)}
body.hero-state .suggestions{margin-top:10px}
body.hero-state .suggestions button{font-size:13px;padding:8px 16px}
body.hero-state .welcome-hint{font-size:13px}
body.hero-state #hero-composer-slot{width:min(640px,92vw);max-width:none}
@media(min-width:1600px){body.hero-state .welcome-logo img{height:156px}body.hero-state #welcome h1{font-size:30px;height:54px;line-height:54px}body.hero-state .hero-subtitle{font-size:16px;margin:14px 0 30px}body.hero-state #hero-composer-slot{width:min(700px,92vw)}body.hero-state .suggestions button{font-size:14px;padding:9px 18px}body.hero-state .welcome-hint{font-size:14px}}
@media(max-width:1023px){body.hero-state .welcome-logo img{height:min(68px,calc((100vw - 44px)*0.2659679));width:auto;max-width:none}body.hero-state #welcome h1{font-size:17px;height:31.5px;line-height:31.5px}}

/* Product links can be sent to a phone independently of opening the marketplace. */
.theater-actions.has-copy-link{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch}
.theater-actions .copy-product-link{border:1px solid var(--line);cursor:pointer}
.theater-actions .copy-product-link:focus-visible{outline:2px solid var(--brand);outline-offset:2px}

/* Desktop responsive override layer — keep all accepted mobile rules untouched. */
@media (min-width:1024px){
 :root{--desktop-column:1120px;--desktop-content-width:min(1120px,94vw)}
 body{font-size:15px}
 body:not(.hero-state) #main{width:var(--desktop-content-width);max-width:1120px;margin-inline:auto;padding-inline:0}
 body:not(.hero-state) .conversation{width:var(--desktop-content-width);max-width:100%;margin-inline:auto}
 body:not(.hero-state) .search-panel,body:not(.hero-state) #bottom-dock .search-panel{width:var(--desktop-content-width);max-width:1120px}
 body:not(.hero-state) .tabbar{width:var(--desktop-content-width);max-width:1120px}
 /* Keep the accepted edge-to-edge Dock; align its inner navigation with the content. */
 html[data-view] body:not(.hero-state) #bottom-dock .tabbar,body:not(.hero-state) #bottom-dock .tabbar{width:100%;max-width:none}
 body:not(.hero-state) #bottom-dock .dock-tabs-inner{width:var(--desktop-content-width);max-width:1120px}
 body:not(.hero-state) .shopping-info h3,body:not(.hero-state) .theater .shopping-info h3{font-size:clamp(18px,1.4vw,22px);font-weight:600;line-height:1.5;display:block;-webkit-line-clamp:unset;max-height:none;overflow:visible;overflow-wrap:anywhere}
 body:not(.hero-state) .shopping-spec,body:not(.hero-state) .theater .shopping-spec{font-size:clamp(15px,1.1vw,17px);line-height:1.6;white-space:normal;overflow:visible;flex-wrap:wrap}
 body:not(.hero-state) .theater .spec-value,body:not(.hero-state) .theater .spec-platform{min-width:0;max-width:100%;white-space:normal;overflow:visible;overflow-wrap:anywhere;flex-shrink:1}
 body:not(.hero-state) .theater .spec-truncated:after{display:none}
 body:not(.hero-state) .shopping-price,body:not(.hero-state) .theater .shopping-price{font-size:clamp(32px,2.6vw,40px);font-variant-numeric:tabular-nums}
 body:not(.hero-state) .unit-price,body:not(.hero-state) .theater .unit-price{font-size:clamp(15px,1.1vw,17px);color:var(--price-red);font-weight:700;line-height:1.5}
 body:not(.hero-state) .quote-time,body:not(.hero-state) .theater .quote-time,body:not(.hero-state) .theater .price-basis,body:not(.hero-state) .offer-rank{font-size:clamp(12px,.9vw,14px)}
 body #query,body .composer textarea{font-size:clamp(16px,1.2vw,18px)}
 body .top-actions .quiet,body #new-chat{font-size:clamp(13px,1vw,15px)}
 body:not(.hero-state) #bottom-dock .tabbar .tab,body:not(.hero-state) .tabbar .tab,body:not(.hero-state) .theater-actions button,body:not(.hero-state) .theater-actions .purchase-action{font-size:clamp(13px,1vw,15px)}
 body:not(.hero-state) .theater .shopping-card{padding:clamp(18px,1.4vw,24px);gap:clamp(16px,1.25vw,22px)}
 body:not(.hero-state) .theater .shopping-photo{width:clamp(140px,11vw,176px);height:clamp(140px,11vw,176px);flex-basis:clamp(140px,11vw,176px)}
 body:not(.hero-state) .theater .shopping-info{min-height:clamp(140px,11vw,176px)}
 body:not(.hero-state) .user,body:not(.hero-state) .theater-caption,body:not(.hero-state) .ai-note{font-size:clamp(15px,1.1vw,17px)}
}

/* Desktop refinement: legible filters, quote metadata and centered submit label. */
@media (min-width:1024px){
 body:not(.hero-state) .catalog-filters label,body:not(.hero-state) .catalog-results .group-picker{font-size:clamp(16px,1.2vw,18px);line-height:1.6}
 body:not(.hero-state) .catalog-filters select,body:not(.hero-state) .catalog-results .group-picker select{font-size:clamp(16px,1.2vw,18px);line-height:1.5;min-height:42px;padding:7px 12px}
 body:not(.hero-state) .shopping-spec,body:not(.hero-state) .theater .shopping-spec{font-size:clamp(17px,1.25vw,19px)}
 body:not(.hero-state) .quote-time,body:not(.hero-state) .theater .quote-time{font-size:clamp(14px,1vw,16px);line-height:1.6;opacity:1}
 body:not(.hero-state) .theater .offer-coupon-note{font-size:clamp(15px,1.1vw,17px);line-height:1.8;margin:12px 18px 0}
 body:not(.hero-state) .cache-bar .quiet{font-size:clamp(14px,1vw,16px);line-height:1.5;padding:8px 0}
 body:not(.hero-state) #bottom-dock .composer #send{display:inline-flex;align-items:center;justify-content:center;align-self:center;height:40px;min-width:72px;padding:0 18px;line-height:1;font-size:clamp(15px,1.1vw,17px);text-align:center}
}

/* Desktop account pages use the same readable scale as the results page. */
@media (min-width:1024px){
 body:not(.hero-state) .page-view .view-head h1{font-size:clamp(24px,1.8vw,28px);line-height:1.4}
 body:not(.hero-state) .page-view .view-description,body:not(.hero-state) .page-view .account-info p{font-size:clamp(16px,1.15vw,18px);line-height:1.7}
 body:not(.hero-state) .page-view .view-count,body:not(.hero-state) .page-view .saved-price-note,body:not(.hero-state) .page-view .demo-account-note,body:not(.hero-state) .page-view .local-note{font-size:clamp(14px,1.05vw,16px);line-height:1.7}
 body:not(.hero-state) .page-view .account-info h2{font-size:clamp(19px,1.4vw,22px);line-height:1.5}
 body:not(.hero-state) .page-view .account-shortcuts .quiet,body:not(.hero-state) .page-view .account-panel>button,body:not(.hero-state) .page-view .empty-state button,body:not(.hero-state) .page-view .back-to-mine{font-size:clamp(15px,1.1vw,17px);min-height:42px;padding:9px 16px;line-height:1.5}
 body:not(.hero-state) .page-view .empty-state p{font-size:clamp(18px,1.3vw,20px);line-height:1.6}
 body:not(.hero-state) .page-view .empty-description{font-size:clamp(15px,1.1vw,17px);line-height:1.7}
 body:not(.hero-state) .page-view .mine-module{min-height:150px;padding:22px 18px;gap:8px}
 body:not(.hero-state) .page-view .mine-module strong{font-size:clamp(28px,2.2vw,34px);font-variant-numeric:tabular-nums}
 body:not(.hero-state) .page-view .mine-module>span{font-size:clamp(17px,1.25vw,19px)}
 body:not(.hero-state) .page-view .mine-module svg{width:30px;height:30px}
 body:not(.hero-state) .page-view .account-avatar{width:48px;height:48px}
 body:not(.hero-state) .page-view .record-meta,body:not(.hero-state) .page-view .remove-record,body:not(.hero-state) .page-view .shopping-conditions,body:not(.hero-state) .page-view .card-tools button,body:not(.hero-state) .page-view .card-tools summary{font-size:clamp(14px,1.05vw,16px);line-height:1.7}
}

/* Account/mobile readability and clearer shared Dock labels. */
@media (max-width:1023px){
 body:not(.hero-state) .page-view .view-description,body:not(.hero-state) .page-view .account-info p{font-size:14px;line-height:1.7}
 body:not(.hero-state) .page-view .view-count,body:not(.hero-state) .page-view .saved-price-note,body:not(.hero-state) .page-view .demo-account-note,body:not(.hero-state) .page-view .local-note{font-size:13px;line-height:1.7}
 body:not(.hero-state) .page-view .account-info h2{font-size:16px;line-height:1.5}
 body:not(.hero-state) .page-view .account-shortcuts .quiet,body:not(.hero-state) .page-view .account-panel>button,body:not(.hero-state) .page-view .empty-state button,body:not(.hero-state) .page-view .back-to-mine{font-size:14px;min-height:38px;padding:8px 12px;line-height:1.5}
 body:not(.hero-state) .page-view .empty-state p{font-size:16px;line-height:1.6}
 body:not(.hero-state) .page-view .empty-description{font-size:14px;line-height:1.7}
 body:not(.hero-state) .page-view .mine-module strong{font-size:26px}
 body:not(.hero-state) .page-view .mine-module>span{font-size:15px}
 body:not(.hero-state) .page-view .record-meta,body:not(.hero-state) .page-view .remove-record,body:not(.hero-state) .page-view .shopping-conditions,body:not(.hero-state) .page-view .card-tools button,body:not(.hero-state) .page-view .card-tools summary{font-size:13px;line-height:1.7}
 body:not(.hero-state) #bottom-dock .tabbar .tab{font-size:14px}
 body:not(.hero-state) #bottom-dock .page-disclaimer{font-size:12px;line-height:20px;padding-block:3px}
}
@media (min-width:1024px){
 body:not(.hero-state) #bottom-dock .tabbar .tab{font-size:clamp(15px,1.1vw,17px)}
 body:not(.hero-state) #bottom-dock .page-disclaimer{font-size:clamp(13px,.95vw,15px);line-height:20px;padding-block:3px}
}
@media (max-width:1023px){body:not(.hero-state) #mine-view .account-shortcuts #advisor-mode{display:inline-flex;align-items:center;justify-content:center}}

/* Readable history dialog; its entries only navigate to previous queries. */
dialog.history-dialog{width:min(560px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:80dvh;overflow:auto;padding:24px;border-radius:18px}
dialog.history-dialog h2{font-size:22px;line-height:1.5;margin:0 0 14px}
dialog.history-dialog p{font-size:16px;line-height:1.7}
dialog.history-dialog .history-entry{display:block;width:100%;min-height:48px;padding:12px 8px;text-align:left;font-size:16px;line-height:1.6;white-space:normal;overflow-wrap:anywhere}
dialog.history-dialog>.quiet{font-size:15px;min-height:40px;padding:8px 12px;margin-top:10px}
@media(min-width:1024px){
 body.hero-state #welcome h1{font-size:clamp(30px,2.3vw,38px);height:auto;line-height:1.5}
 body.hero-state .hero-subtitle .ch{font-size:clamp(15px,1.1vw,17px)}
 body.hero-state #hero-composer-slot #query{font-size:clamp(18px,1.3vw,20px)}
 body.hero-state #hero-composer-slot .composer .send{display:inline-flex;align-items:center;justify-content:center;font-size:clamp(16px,1.15vw,18px);height:40px;line-height:1;padding:0 20px;min-width:100px}
 body.hero-state .try-hint{font-size:clamp(16px,1.15vw,18px)}
 body.hero-state .suggestions button{font-size:clamp(15px,1.1vw,17px);padding:10px 18px}
 body.hero-state .welcome-hint{font-size:clamp(15px,1.1vw,17px)}
}
@media(max-width:1023px){
 body.hero-state #welcome h1{font-size:22px;height:auto;line-height:1.5}
 body.hero-state .hero-subtitle .ch{font-size:13px;padding:5px 10px;margin-inline:3px}
 body.hero-state .try-hint{font-size:14px;line-height:1.7}
 body.hero-state .suggestions button{font-size:14px;padding:9px 12px}
 body.hero-state .welcome-hint{font-size:13.5px;line-height:1.7}
}
@media(max-width:1023px){body.hero-state .suggestions{flex-wrap:wrap;overflow:visible}}

/* History dismissal: top-right icon and native dialog backdrop. */
dialog.history-dialog{position:fixed;padding-top:24px}
dialog.history-dialog h2{padding-right:40px}
dialog.history-dialog>.history-close{position:absolute;top:14px;right:14px;display:flex;align-items:center;justify-content:center;width:40px;height:40px;padding:0;border:0;border-radius:50%;background:var(--soft);color:var(--muted);cursor:pointer}
dialog.history-dialog>.history-close svg{width:18px;height:18px;pointer-events:none}

/* History entries: stable geometry with clear pointer/keyboard feedback. */
dialog.history-dialog .history-entry{border:1px solid var(--line);border-radius:8px;margin:6px 0;background:var(--paper);transition:border-color .15s,background-color .15s;cursor:pointer}
@media(hover:hover){dialog.history-dialog .history-entry:hover{border-color:var(--brand);background:var(--result-note);opacity:1}}
dialog.history-dialog .history-entry:focus-visible{border-color:var(--brand);background:var(--result-note);outline:2px solid var(--brand);outline-offset:2px}
@media(prefers-reduced-motion:reduce){dialog.history-dialog .history-entry{transition:none}}

/* Desktop product cards: larger details and taller actions, unchanged horizontal allocation. */
@media(min-width:1024px){
 body:not(.hero-state) .theater .shopping-info h3{font-size:clamp(22px,1.65vw,26px);line-height:1.5}
 body:not(.hero-state) .theater .shopping-spec{font-size:clamp(19px,1.4vw,22px)}
 body:not(.hero-state) .theater .shopping-price{font-size:clamp(38px,3vw,46px)}
 body:not(.hero-state) .theater .unit-price{font-size:clamp(18px,1.35vw,21px)}
 body:not(.hero-state) .theater .quote-time{font-size:clamp(16px,1.15vw,18px)}
 body:not(.hero-state) .theater .price-basis,body:not(.hero-state) .theater .original-price{font-size:clamp(15px,1.1vw,17px);line-height:1.5}
 body:not(.hero-state) .theater .offer-rank{font-size:clamp(14px,1.05vw,16px)}
 body:not(.hero-state) .theater .offer-coupon-note{font-size:clamp(17px,1.25vw,19px);line-height:1.8}
 body:not(.hero-state) .theater-actions>.purchase-action,body:not(.hero-state) .theater-actions>.copy-product-link{height:54px;min-height:54px;font-size:clamp(16px,1.2vw,18px);line-height:1.4}
}
/* 查询中的状态提示：双端提高可读性 */
.query-wait strong{font-size:18px;line-height:1.5}
.query-wait p{font-size:16px;line-height:1.7}
@media(min-width:1024px){body:not(.hero-state) .query-wait strong{font-size:clamp(20px,1.5vw,24px)}body:not(.hero-state) .query-wait p{font-size:clamp(17px,1.2vw,19px)}}
/* 空结果及查询结束提示 */
.context-reply{font-size:16px;line-height:1.7}
@media(min-width:1024px){body:not(.hero-state) .context-reply{font-size:clamp(18px,1.3vw,21px)}}
/* Query controls and record navigation only; offer cards and responsive layout stay intact. */
#send svg{width:24px;height:24px;display:block;margin:auto;pointer-events:none}

.dock-tabs-inner{grid-template-columns:repeat(2,minmax(0,1fr))}
.collection-tabs{display:flex;gap:8px;margin:12px 0 18px;flex-wrap:wrap}
.collection-tabs button{padding:9px 18px;border:1px solid var(--line);border-radius:999px;background:var(--paper);color:var(--muted);font:inherit;cursor:pointer}
.collection-tabs button[aria-selected="true"]{background:var(--brand);color:var(--paper);border-color:var(--brand)}
.collection-tabs button:focus-visible{outline:2px solid var(--brand);outline-offset:3px}

.history-search{box-sizing:border-box;width:100%;min-width:0;padding:10px 12px;border:1px solid var(--line);border-radius:10px;font:inherit;font-size:16px;color:var(--ink);background:var(--paper)}
dialog.history-dialog .history-note{font-size:13px;color:var(--muted)}
.history-day{font-size:14px;color:var(--muted);margin:18px 0 8px}
.history-title{display:block;overflow-wrap:anywhere}
.history-meta{display:block;font-size:13px;color:var(--muted);margin-top:4px}
.history-current{display:inline-block;font-size:12px;color:var(--brand);margin-top:4px}
dialog.history-dialog .history-entry[aria-current="true"]{border-color:var(--brand);background:var(--result-note)}
@media(min-width:1024px){#send svg{width:26px;height:26px}}
.confirm-capsule>svg{width:24px;height:24px;flex:none}
.history-trigger-icon{display:none}
@media(max-width:1023px){body.hero-state .topbar #query-history{display:inline-flex!important;align-items:center;justify-content:center;width:36px;height:36px;padding:6px;font-size:0;color:var(--paper)}body.hero-state .topbar #query-history .history-trigger-icon{display:block;width:24px;height:24px}body.hero-state .topbar .brand{max-width:calc(100% - 46px);min-width:0}body.hero-state .topbar .brand-mark{max-width:100%;object-fit:contain}}
/* Readability and navigation refinements; existing product cards stay unchanged. */
.dock-tabs-inner{grid-template-columns:repeat(3,minmax(0,1fr))}
dialog.history-dialog{width:min(780px,calc(100vw - 32px));max-height:84dvh;padding:28px}
dialog.history-dialog h2{font-size:28px;margin-bottom:20px}
dialog.history-dialog .history-search{font-size:18px;min-height:50px;padding:12px 14px}
dialog.history-dialog .history-entry{padding:16px;min-height:92px;font-size:19px;line-height:1.6}
dialog.history-dialog .history-title{font-size:19px;font-weight:600}
dialog.history-dialog .history-meta{font-size:16px;margin-top:7px}
dialog.history-dialog .history-note,dialog.history-dialog .history-day{font-size:16px}
dialog.history-dialog .history-current{font-size:15px}
dialog.history-dialog .history-search:focus{outline:2px solid var(--brand);outline-offset:2px}
body .composer #send{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle}
body .composer #send svg{width:26px;height:26px;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;flex:none;margin:0;filter:drop-shadow(0 1px 1px var(--shadow))}
body .composer #send[data-mode="stop"] svg{width:28px;height:28px}
body .composer #send[data-mode="stopping"] svg{animation:query-stop-spin 1.2s linear infinite}
body .composer #send:focus-visible{outline:2px solid var(--brand);outline-offset:3px}
.query-action-status{position:fixed;top:76px;left:50%;transform:translateX(-50%);z-index:120;display:flex;align-items:center;gap:14px;width:max-content;max-width:calc(100vw - 32px);padding:14px 18px;border:1px solid var(--line);border-left:4px solid var(--brand);border-radius:12px;background:var(--paper);color:var(--ink);box-shadow:0 6px 24px var(--shadow);font-size:18px;line-height:1.6}
.query-action-status>span{min-width:0;overflow-wrap:anywhere}.action-notice-close{display:flex;align-items:center;justify-content:center;flex:none;width:30px;height:30px;border:0;border-radius:50%;background:var(--soft);color:var(--muted);padding:5px}.action-notice-close svg{width:18px;height:18px}
@keyframes query-stop-spin{to{transform:rotate(360deg)}}
@media(max-width:1023px){dialog.history-dialog{padding:22px 18px;width:calc(100vw - 24px);max-width:calc(100vw - 24px)}dialog.history-dialog h2{font-size:24px}dialog.history-dialog .history-search{font-size:16px;min-height:48px}dialog.history-dialog .history-title,dialog.history-dialog .history-entry{font-size:17px}dialog.history-dialog .history-meta,dialog.history-dialog .history-note,dialog.history-dialog .history-day{font-size:15px}dialog.history-dialog .history-current{font-size:14px}body .composer #send svg{width:24px;height:24px}.query-action-status{top:58px;font-size:16px;padding:12px 14px;gap:10px}}
@media(prefers-reduced-motion:reduce){body .composer #send[data-mode="stopping"] svg{animation:none}}
/* Shared, prominent query operation feedback. */
:root{--action-notice-bg:#E6F4FF;--action-notice-border:#79BFEA;--action-notice-ink:#164C70;--action-notice-shadow:rgba(31,105,152,.22);--action-notice-close:rgba(255,255,255,.8)}
.query-action-status{width:min(660px,calc(100vw - 32px));min-height:82px;padding:18px 20px;gap:16px;border:1px solid var(--action-notice-border);border-left:5px solid var(--brand);border-radius:16px;background:var(--action-notice-bg);color:var(--action-notice-ink);box-shadow:0 10px 32px var(--action-notice-shadow);font-size:20px;font-weight:500;line-height:1.65}
.query-action-status>span{flex:1}.query-action-status>.action-notice-icon{width:28px;height:28px;flex:none;color:var(--brand);stroke-width:2}
.query-action-status .action-notice-close{width:40px;height:40px;background:var(--action-notice-close);color:var(--action-notice-ink)}
.query-action-status .action-notice-close svg{width:21px;height:21px}
@media(max-width:1023px){.query-action-status{width:calc(100vw - 24px);max-width:calc(100vw - 24px);min-height:78px;padding:16px 14px;gap:10px;font-size:18px;border-radius:14px}.query-action-status>.action-notice-icon{width:24px;height:24px}.query-action-status .action-notice-close{width:36px;height:36px}}
/* History and new-conversation buttons: quiet at rest, clear on interaction. */
body .topbar :is(#query-history,#new-chat),body .session-tools :is(#session-history,#session-new){border:1px solid transparent;border-radius:9px;transition:background-color .15s,border-color .15s,color .15s;}
@media(min-width:1024px){body .topbar :is(#query-history,#new-chat){font-size:clamp(16px,1.1vw,18px);line-height:1.5;padding:8px 12px;}}
@media(max-width:1023px){body .session-tools :is(#session-history,#session-new){font-size:14px;line-height:1.5;padding:6px 10px;}}
@media(hover:hover){body .topbar :is(#query-history,#new-chat):hover,body .session-tools :is(#session-history,#session-new):hover{background:var(--result-note);border-color:var(--brand);color:var(--brand);opacity:1;}}
body .topbar :is(#query-history,#new-chat):focus-visible,body .session-tools :is(#session-history,#session-new):focus-visible{background:var(--result-note);border-color:var(--brand);color:var(--brand);outline:2px solid var(--brand);outline-offset:2px;}
@media(prefers-reduced-motion:reduce){body .topbar :is(#query-history,#new-chat),body .session-tools :is(#session-history,#session-new){transition:none;}}
/* Feedback access stays separate from product cards and opens a contextual form. */
.trial-feedback-launcher{position:fixed;right:18px;bottom:calc(var(--bottom-dock-height,140px) + 12px);z-index:45;display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:10px 14px;border:1px solid var(--brand);border-radius:999px;background:var(--brand);color:var(--paper);font-size:14px;font-weight:600;text-decoration:none;box-shadow:0 4px 16px var(--result-card-shadow)}
.trial-feedback-launcher svg{width:18px;height:18px}
body.hero-state .trial-feedback-launcher{bottom:18px}
@media(max-width:1023px){.trial-feedback-launcher{right:12px;font-size:13px;padding:9px 12px}body:not(.hero-state) #main{padding-bottom:calc(var(--bottom-dock-height,140px) + 76px)}}
/* Decode both brand assets once; state changes never reuse a white image on white. */
.brand-images{display:inline-grid;align-items:center;max-width:100%}
.brand-images .brand-mark{grid-area:1/1}
body .topbar .brand-images .brand-hero{display:none!important}
body .topbar .brand-images .brand-result{display:block!important}
body.hero-state .topbar .brand-images .brand-hero{display:block!important}
body.hero-state .topbar .brand-images .brand-result{display:none!important}

/* Keep unit quotes consistent across card variants and viewport sizes. */
body:not(.hero-state) .unit-price,body:not(.hero-state) .theater .unit-price{color:var(--price-red)!important;font-weight:700}

