/* Product research stays in the page flow, with bounded galleries and readable ad copy. */
.product-research{min-width:0;overflow-wrap:anywhere}
.product-research .research-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px;flex-wrap:wrap}
.product-research .research-heading h2{margin:0;font-size:18px}
.product-research .research-steps{display:flex;flex-wrap:wrap;gap:10px 22px;padding:0;margin:0 0 14px;list-style:none;counter-reset:research-step}
.product-research .research-steps li{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:12px;line-height:1.6}
.product-research .research-steps li::before{counter-increment:research-step;content:counter(research-step);display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;width:22px;height:22px;flex:none;font-size:11px}
.product-research .research-steps .current{color:#935b0c;font-weight:600}.product-research .research-steps .current::before{background:#ff9900;color:#382500;border-color:#e18d13}
.product-research .research-steps .done{color:#2e7550}.product-research .research-steps .done::before{content:'✓';background:#eaf6ee;border-color:#b4d9c5}
.product-research .research-steps .failed{color:#9d3f26}.product-research .research-steps .failed::before{content:'!';background:#fff1eb;border-color:#e4b9a9}
.product-research .research-search-scope,.product-research .research-keyword-summary,.product-research .research-search-errors{font-size:12px;line-height:1.8}
.product-research .research-search-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}.product-research .research-keyword-input{display:grid;gap:8px;font-size:12px;margin:12px 0}.product-research .research-keyword-input textarea{width:100%;min-width:0;resize:vertical}.product-research .research-search-tabs+button,.product-research .research-search-scope+button{margin-bottom:14px}
.product-research .research-status,.product-research .research-ordering,.product-research .research-keyword{font-size:12px;line-height:1.75;margin-bottom:16px}
.product-research .research-product-body{padding-top:18px;border-top:1px solid var(--line);margin-top:18px}
.product-research .research-description{white-space:pre-wrap;font-size:13px;line-height:1.8;max-height:200px;overflow:auto}
.product-research .research-facts{display:grid;grid-template-columns:minmax(70px,110px) minmax(0,1fr);gap:8px 14px;font-size:13px;line-height:1.75;margin:16px 0}
.product-research .research-facts dt{color:var(--muted)}.product-research .research-facts dd{margin:0;overflow-wrap:anywhere}
.product-research .research-keywords{grid-template-columns:minmax(140px,1fr) minmax(0,2fr)}
.product-research .research-search-progress{padding:16px;margin:16px 0 20px;border:1px solid #d8e1ec;border-radius:8px;background:#f7f9fc}
.product-research .research-search-progress .research-steps{margin:0 0 14px}.product-research .research-search-status{font-size:13px;line-height:1.75;font-weight:600;margin:0;overflow-wrap:anywhere}
.product-research .research-search-progress .research-search-scope{margin:6px 0 0}.product-research .research-search-progress .notice{margin:12px 0 0;overflow-wrap:anywhere}
.product-research .research-keyword-highlight{display:inline-block;max-width:100%;padding:4px 9px;background:#fff0cd;border:1px solid #e8b760;border-radius:5px;color:#704300;font-weight:600;line-height:1.65;overflow-wrap:anywhere}
.product-research .research-keywords dd{display:flex;flex-direction:column;align-items:flex-start;gap:5px}.product-research .research-query-status{color:#526d88;font-size:11px}.product-research .research-query-status.failed,.product-research .research-query-error{color:#9d3f26}
.product-research details>summary{cursor:pointer;line-height:1.7;color:var(--blue);font-weight:500;font-size:12px}.product-research details{margin:12px 0}
.product-research .research-variants{max-height:260px;overflow:auto;padding-left:20px;font-size:12px;line-height:1.9}.product-research .research-page-text{max-height:220px;overflow:auto;white-space:pre-wrap;font-size:12px;line-height:1.8}
.product-research h4{font-size:13px;margin:20px 0 12px}.product-research .research-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(110px,100%),1fr));gap:10px;max-height:310px;overflow:auto;padding:2px}
.product-research .research-gallery>a{display:block;height:130px;background:#f4f6f8;border:1px solid var(--line);border-radius:7px;overflow:hidden}
.product-research .research-gallery img{display:block;width:100%;height:100%;object-fit:contain}.product-research .research-image-missing{display:grid;place-items:center;height:100%;min-height:100px;font-size:12px;text-align:center;color:var(--muted);background:#f4f6f8}
.product-research .research-ad-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.product-research .research-ad{min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:8px;background:#fafbfd;padding:16px;display:flex;flex-direction:column;align-items:stretch}
.product-research .research-ad>img{display:block;width:100%;height:170px;object-fit:contain;border-radius:5px;background:#162636;margin-bottom:14px}
.product-research .research-ad h3{font-size:14px;line-height:1.7;overflow-wrap:anywhere}.product-research .research-ad-date{font-size:11px;color:var(--muted);line-height:1.7;margin-bottom:10px}
.product-research .research-ad-copy{font-size:12px;line-height:1.8;white-space:pre-wrap;max-height:230px;overflow:auto;overflow-wrap:anywhere;margin-bottom:14px}
.product-research .research-ad-links{font-size:12px;margin-top:auto}.product-research .research-ad>a{font-size:12px;line-height:1.7;margin-top:10px}
.product-research .research-video-url{overflow-wrap:anywhere;max-height:100px;overflow:auto;font-size:11px;line-height:1.8;margin:8px 0}
.product-research .research-ad-select{border-top:1px solid var(--line);padding-top:12px;margin-top:14px;font-size:12px}
.product-research .research-ad-error{font-size:12px;color:#9d3f26;line-height:1.8}.product-research .research-ad>.muted{font-size:12px}
.product-research .research-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:18px}.product-research .notice{font-size:12px;margin:14px 0}
@media(max-width:1000px){.product-research .research-ad-grid{grid-template-columns:repeat(auto-fit,minmax(min(230px,100%),1fr))}}
@media(max-width:600px){.product-research .research-ad-grid{grid-template-columns:minmax(0,1fr)}.product-research .research-ad{padding:12px}.product-research .research-ad>img{height:190px}.product-research .research-facts{grid-template-columns:70px minmax(0,1fr);gap:7px 10px}.product-research .research-steps{gap:8px 15px}.product-research .research-heading h2{font-size:16px}.product-research .research-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.product-research .research-keywords{grid-template-columns:minmax(0,1fr);gap:4px}.product-research .research-keywords dd{margin-bottom:10px}}
.product-research .research-summary-gallery{grid-template-columns:repeat(4,minmax(0,1fr));max-height:none;margin-top:18px}.product-research .research-summary-points{padding-left:20px;font-size:13px;line-height:1.8}.product-research .research-summary-gallery>a{height:130px}
@media(max-width:600px){.product-research .research-summary-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.product-research .research-summary-gallery>a{height:110px}}
/* Polling updates facts in place; status feedback keeps a stable footprint. */
.product-research .research-keyword-input textarea[readonly]{background:#f3f6fa;color:#62758b;cursor:wait}
.product-research .research-search-controls .research-input-hint{min-height:2lh;margin:10px 0 0}
.product-research .research-search-controls .research-input-error[hidden]{display:none}
.product-research .research-wait{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 14px;margin-top:12px;min-height:48px}
.product-research .research-wait[hidden]{display:grid!important;visibility:hidden}
.product-research .research-progress-bar{display:block;width:100%;height:8px;accent-color:#e58b00;overflow:hidden;border:0;border-radius:8px;background:#e6edf5}
.product-research .research-progress-bar::-webkit-progress-bar{background:#e6edf5;border-radius:8px}
.product-research .research-progress-bar:indeterminate{background:linear-gradient(90deg,#e6edf5 0%,#e6edf5 30%,#f0a52f 45%,#f0a52f 55%,#e6edf5 70%,#e6edf5 100%);background-size:220% 100%;animation:research-progress 1.6s linear infinite}
.product-research .research-progress-bar:indeterminate::-webkit-progress-bar{background:transparent}
.product-research .research-elapsed{font-size:12px;font-variant-numeric:tabular-nums;color:var(--muted);white-space:nowrap}
.product-research .research-wait-hint{grid-column:1/-1;font-size:12px;line-height:1.8;margin:0;min-height:2lh}
@keyframes research-progress{from{background-position:100% 0}to{background-position:-100% 0}}
@media(prefers-reduced-motion:reduce){.product-research .research-progress-bar:indeterminate{animation:none}}
