/* Measured comparison pass: retain the Horangi accent and delivery colors,
   while matching the reference workspace density and controls. */
/* The shared dialog serves unrelated source/help screens. Match the measured
   600×280 input notice only while the shared validation marker is present. */
@media screen {
 .commerce-surface[data-commerce-page="analyzer"] dialog:has([data-research-input-notice]) {width:min(600px,calc(100vw - 40px));max-height:calc(100dvh - 40px);padding:0;border:0;border-radius:12.5px;background:#fff;color:#1e2229;box-shadow:none;overflow:auto}
 .commerce-surface[data-commerce-page="analyzer"] dialog:has([data-research-input-notice])::backdrop {backdrop-filter:none}
 .commerce-surface[data-commerce-page="analyzer"] dialog:has([data-research-input-notice]) :is(#dialog-content) {display:flex;align-items:center;justify-content:center;min-height:200px;padding:30px;text-align:center}
 .commerce-surface[data-commerce-page="analyzer"] dialog:has([data-research-input-notice]) h2 {margin:0;color:#1e2229;font-size:18px;font-weight:600;line-height:28.8px;letter-spacing:normal;text-align:center}
 .commerce-surface[data-commerce-page="analyzer"] dialog:has([data-research-input-notice])>h2 {display:flex;align-items:center;justify-content:center;min-height:200px;padding:30px}
 .commerce-surface[data-commerce-page="analyzer"] dialog:has([data-research-input-notice])>:is(.actions,form[method="dialog"]) {display:flex;align-items:center;justify-content:center;min-height:80px;margin:0;padding:0 30px 30px}
 .commerce-surface[data-commerce-page="analyzer"] dialog:has([data-research-input-notice]) :is(#close-dialog,form[method="dialog"] button) {display:flex;align-items:center;justify-content:center;width:100%;height:50px;min-height:50px;padding:0;margin:0;border:0;border-radius:25px;background:var(--hc-brand,#e98925);color:#fff;font-size:18px;font-weight:700;line-height:27px;text-align:center}
 .commerce-surface[data-commerce-page="analyzer"] dialog:has([data-research-input-notice]) :is(#close-dialog,form[method="dialog"] button):focus-visible {outline:2px solid var(--hc-brand-deep,#9a4b12);outline-offset:3px}
}
/* Keep exact amounts and source explanations accessible without adding a
   permanently expanded row of controls to every collected product. */
/* Stop confirmation: the paired reference uses a 600×280 centered panel.
   Keep the safe continue action focused; only the visual order changes. */
@media screen {
 .commerce-surface[data-commerce-page="analyzer"] dialog.research-stop-confirm {box-sizing:border-box;width:min(600px,calc(100vw - 40px));max-height:calc(100dvh - 40px);padding:0;border:0;border-radius:20px;background:#fff;color:#1e2229;box-shadow:none;overflow:auto}
 .commerce-surface[data-commerce-page="analyzer"] dialog.research-stop-confirm::backdrop {backdrop-filter:none;background:#18202b80}
 .commerce-surface[data-commerce-page="analyzer"] dialog.research-stop-confirm>.research-stop-confirm-copy {box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;min-height:200px;padding:30px;text-align:center}
 .commerce-surface[data-commerce-page="analyzer"] dialog.research-stop-confirm .research-stop-confirm-copy :is(h2,p) {margin:0;color:#1e2229;font-size:18px;font-weight:600;line-height:28.8px;letter-spacing:normal;text-align:center}
 .commerce-surface[data-commerce-page="analyzer"] dialog.research-stop-confirm>.research-stop-confirm-actions {box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:10px;min-height:80px;margin:0;padding:0 30px 30px}
 .commerce-surface[data-commerce-page="analyzer"] dialog.research-stop-confirm .research-stop-confirm-actions>button {box-sizing:border-box;display:flex;flex:1 1 0;align-items:center;justify-content:center;min-width:0;height:50px;min-height:50px;padding:0;margin:0;border:1px solid #e1e4e9;border-radius:25px;background:#fff;color:#727984;font-family:inherit;font-size:18px;font-weight:400;line-height:27px;text-align:center}
 .commerce-surface[data-commerce-page="analyzer"] dialog.research-stop-confirm .research-stop-confirm-actions>[data-loading-continue] {border-color:var(--hc-brand,#e98925);background:var(--hc-brand,#e98925);color:#fff;font-weight:700}
 .commerce-surface[data-commerce-page="analyzer"] dialog.research-stop-confirm .research-stop-confirm-actions>button:focus-visible {outline:2px solid var(--hc-brand-deep,#9a4b12);outline-offset:3px}
}
@media screen {
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-product-table th[data-column="shipping"] .research-column-label {max-width:2.1em;line-height:1.2}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-product-table th[data-column="estimatedRevenue"] .research-column-label {max-width:4.7em;line-height:1.2}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-product-table .research-shipping-label::before {display:none}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-product-table[data-table-mode="basic"] .research-product-copy {position:relative;padding-right:18px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-product-table[data-table-mode="basic"] .research-product-more:not([open]) {position:absolute;right:-4px;top:-3px;margin:0}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-product-table[data-table-mode="basic"] td.research-sales {position:relative}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-product-table[data-table-mode="basic"] .research-metric-detail:not([open]) {position:absolute;right:4px;bottom:4px;margin:0}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-table-evidence {position:relative;margin:0;font-size:11px;color:#858d9b}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-table-evidence>summary {list-style:none;cursor:pointer;padding:3px 0;line-height:1.4}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-table-evidence>summary::-webkit-details-marker {display:none}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-table-evidence>summary::after {content:' ⓘ'}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-table-evidence>summary:focus-visible {outline:2px solid var(--hc-brand-deep,#9a4b12);outline-offset:3px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-table-evidence[open]>.chart-note {position:absolute;z-index:12;bottom:100%;right:0;width:360px;max-width:calc(100vw - 48px);margin:0 0 8px;padding:14px 16px;border:1px solid #e5e7eb;border-radius:6px;background:#fff;box-shadow:0 4px 16px #25334818;color:#596270;line-height:1.7;white-space:normal}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .table-footer {gap:12px;flex-wrap:wrap}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .table-footer>.research-table-evidence:last-child {margin-left:auto}
}
@media screen and (hover:hover) and (pointer:fine) {
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-product-table[data-table-mode="basic"] :is(.research-product-more,.research-metric-detail):not([open])>summary {opacity:0}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-product-table[data-table-mode="basic"] tr:is(:hover,:focus-within) :is(.research-product-more,.research-metric-detail)>summary {opacity:1}
}
@media screen {
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-result-more {margin:0}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-section-actions>.research-result-more>summary {display:flex;align-items:center;justify-content:center;height:36px;padding:0 11px;line-height:1}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-section-actions>.btn {height:36px;min-height:36px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-keyword-page-range {margin-top:0}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-saved-keyword-menu {margin-top:0}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-trend-date-range {margin-top:0}
 .commerce-surface[data-commerce-page="analyzer"] .research-view {--analysis-panel:#f8f9fb;--analysis-rule:#e8ebf0}
 .commerce-surface[data-commerce-page="analyzer"] .research-view :is(.research-detail-grid>.panel,.research-kpi-stack>.panel,.research-saturation,.research-keyword-trend,.research-count-card,.research-empty-intro,.research-saturation-grid,.research-discovery-column) {background:var(--analysis-panel);border-color:var(--analysis-rule)}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-shipping .research-shipping-track {background:#e8ecf2}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-donut:after {background:var(--analysis-panel)}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-donut[data-donut-known="true"]>span {display:none}
 .commerce-surface[data-commerce-page="analyzer"] .research-view :is(.metric-value,.metric-value strong) {font-size:23px;font-weight:650;color:#292e37;letter-spacing:-.7px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-kpi-stack .metric {min-height:98px;padding:15px 20px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .metric-foot {font-size:10px;line-height:1.5}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-saturation-grid {padding:16px 0 0;gap:24px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-saturation-grid h4 {font-size:14px;font-weight:500;margin:0 0 12px;color:#7e8590}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-saturation-grid dl {display:grid;grid-template-columns:auto auto;justify-content:center;column-gap:12px;font-size:13px;line-height:1.7}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-donut {width:150px;height:150px;margin:0 auto 10px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-shipping-row {margin:15px 0}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-shipping-includes {display:inline;font-size:10px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-review-plot {height:205px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-category-options {max-height:372px;scrollbar-color:#d8dce3 transparent}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-category-options button {min-height:46px;padding:10px 20px;font-size:16px;font-weight:500;line-height:25px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-recent-chip {border:0;border-radius:18px;background:#f4f5f8;padding:2px 8px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-recent-chip>button {background:transparent;border:0;font-size:13px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-filter-shipping-choice>span {border-radius:4px;padding:4px 10px;min-height:28px;border:1px solid #e0e4ea;background:#fff;color:#7b828d}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-filter-shipping-choice>span:before {display:none}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-filter-shipping-choice>input:checked+span {background:#5f6671;color:#fff;border-color:#5f6671}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-price-layout {grid-template-columns:minmax(300px,.4fr) minmax(0,.6fr);gap:24px;background:transparent;border:0;padding:0}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-price-summary {padding:0;border:0;gap:12px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-price-summary>.panel {background:var(--analysis-panel);border:0;border-radius:8px;padding:20px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-price-chart {background:var(--analysis-panel);border:0;border-radius:8px;padding:20px 25px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-price-summary :is(strong,[data-research-core-price] span) {font-size:22px;color:#292e37}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-price-summary .price-stats {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-price-summary .price-stats>div {display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:10px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-price-summary .price-stats strong {font-size:22px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-histogram {min-height:300px;align-items:end;gap:20px;padding-top:30px}
 .research-keyword-page-range {position:relative;flex:0 0 110px;text-align:center;align-self:stretch;display:flex;align-items:center;justify-content:center}
 .research-keyword-page-range>summary {list-style:none;cursor:pointer;padding:9px 12px;width:100%;font-size:13px;color:#9a4b12}
 .research-keyword-page-range>summary::-webkit-details-marker {display:none}
 .research-keyword-page-range>summary:after {content:'⌄';margin-left:6px}
 .research-keyword-page-range>summary small {display:block;font-size:11px;color:#858b96}
 .research-keyword-page-range>div {position:absolute;top:calc(100% + 10px);left:0;z-index:25;width:250px;padding:16px;background:#fff;border:1px solid #e5e7eb;border-radius:8px;box-shadow:0 8px 22px #25334820;text-align:left}
 .research-keyword-page-range label {display:grid;grid-template-columns:75px 1fr;align-items:center;gap:10px;font-size:13px;margin:6px 0}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-keyword-page-range select {min-height:32px;height:32px;border:1px solid #e5e7eb;border-radius:5px;padding:3px 8px;font-size:13px;width:100%}
 .research-keyword-page-range p {font-size:11px;line-height:1.6;color:#858b96;margin:10px 0 0;white-space:normal;overflow-wrap:anywhere}
 .research-trend-mode {display:flex;gap:18px;border-bottom:1px solid #e8ebf0;margin:-2px 0 14px}
 .research-trend-mode button {border:0;border-bottom:2px solid transparent;background:transparent;font-size:13px;color:#8a909c;padding:8px 0;cursor:pointer}
 .research-trend-mode button[aria-pressed=true] {border-bottom-color:var(--hc-brand,#e98925);color:#292e37;font-weight:650}
 .research-saved-keyword-menu {margin-left:auto;font-size:12px;position:relative;color:#858b96}
 .research-saved-keyword-menu>summary {list-style:none;cursor:pointer;padding:5px 8px}
 .research-saved-keyword-menu>div {position:absolute;right:0;top:100%;z-index:15;min-width:230px;padding:8px;border:1px solid #e5e7eb;background:#fff;box-shadow:0 5px 14px #0001;border-radius:6px}
 .research-saved-keyword-menu button {width:100%;padding:9px;text-align:left;background:#fff;border:0;cursor:pointer;font-size:12px}
 .research-saved-keyword-menu button:hover {background:#f8f9fb}
}
@media screen and (min-width:901px) {
 .commerce-surface[data-commerce-page="analyzer"] .main:has(.research-view) {padding-top:40px;padding-inline:0}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .page-head {margin-bottom:20px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-keyword-bar {min-height:70px}
}
/* First-entry keyword controls, measured at the same 2560px viewport.
   Keep the existing 70px bar and its real range/search actions; only the
   desktop type, icon, and history density differ from the reference. */
@media screen and (min-width:901px) {
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-keyword-bar {padding-right:26px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-keyword-bar input.research-keyword-query {font-size:20px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-keyword-page-range {flex-basis:126px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-keyword-page-range>summary {position:relative;display:grid;gap:2px;min-height:53px;padding:8px 30px 8px 8px;font-size:18px;line-height:18px;text-align:left}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-keyword-page-range>summary small {font-size:11px;line-height:14px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-keyword-page-range>summary [data-keyword-range-label] {font-size:18px;font-weight:700;line-height:18px;white-space:nowrap}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-keyword-page-range>summary:after {position:absolute;right:10px;bottom:8px;margin:0;font-size:14px;line-height:18px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-keyword-bar>.research-search-submit {padding:8px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-keyword-bar>.research-search-submit svg {width:36px;height:36px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-keyword-history {position:relative;flex-wrap:wrap;gap:8px;justify-content:center}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-recent-label {margin:0;font-size:12px;line-height:16px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-recent-chip {padding:0;border-radius:20px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-recent-chip>[data-research-recent-query] {padding:8px 0 8px 16px;font-size:12px;font-weight:500;line-height:16px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-recent-chip>[data-research-recent-query] small {margin-left:6px;font-size:12px;font-weight:500;line-height:16px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-recent-chip>.research-recent-dismiss {min-width:36px;padding:8px 12px 8px 6px;font-size:12px;line-height:16px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-saved-keyword-menu {margin-left:0}
}
@media screen and (min-width:1440px) {
 /* Reserve both sides so long history labels wrap without colliding with the
    saved-results action. It stays in normal flow on smaller screens. */
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-keyword-history {padding-inline:110px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-keyword-history>.research-saved-keyword-menu {position:absolute;right:0;top:0}
}
@media screen and (max-width:800px) {
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-price-layout {grid-template-columns:1fr}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-saturation-grid {gap:10px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-donut {width:min(130px,100%);height:auto;aspect-ratio:1}
 .research-keyword-page-range {flex-basis:86px}
 .research-keyword-page-range>div {width:220px}
}
@media screen {.commerce-surface[data-commerce-page="analyzer"] .research-view .research-product-table th{background:#f8f9fb;border-color:#e8ebf0}}

@media screen {
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-category-trigger[aria-expanded="true"] {color:var(--hc-brand-deep)}
 .research-category-bar:has(.research-category-search:not([hidden])) > .research-search-submit {display:none!important}
 .research-category-feedback:not(:has([data-research-category-message]:not([hidden]))) {display:none!important}
 .research-category-search-scope {display:none!important}
 .research-view[data-mode="category"] .research-history-menu {margin:0 auto;height:0;z-index:10}
 .research-view[data-mode="category"] .research-history-menu>summary {position:absolute;right:0;top:4px;font-size:11px}
 .research-view[data-mode="category"] .research-history-menu[open]>.research-history {position:absolute;right:0;top:28px;width:min(420px,100%);max-height:300px;overflow:auto;border:1px solid #e5e7eb;box-shadow:0 6px 18px #25334815}
 .commerce-surface[data-commerce-page="analyzer"] .research-view [data-research-table-area]>.table-scroll {max-height:none;overflow-x:auto;overflow-y:visible}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-product-table th {position:static;background:#f8f9fb}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .product a {line-height:1.1}
 .commerce-surface[data-commerce-page="analyzer"] .research-view th[data-column="name"] .research-column-label {flex:1;text-align:center}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-product-table thead th .research-sort-buttons button {min-height:12px;height:12px;width:18px;font-size:10px;line-height:12px;border-radius:3px;background:transparent}
 .research-filter-chips {display:flex;gap:8px;flex-wrap:wrap;padding:8px 0}
 .research-filter-chips:empty {display:none}
 .research-filter-chips button {padding:5px 9px;background:#f5f6f8;border:1px solid #e3e6eb;border-radius:4px;color:#596270;font-size:12px;cursor:pointer}
 .research-filter-chips button>span {padding-left:8px;color:#9aa1ad}
 .research-filter-extra>summary {font-size:0;list-style:none}
 .research-filter-extra>summary::after {content:'···';font-size:18px}
 .research-price-plot {position:relative;padding-left:42px}
 .research-price-axis {position:absolute;left:0;top:28px;bottom:49px;right:0;display:flex;flex-direction:column;justify-content:space-between;pointer-events:none}
 .research-price-axis span {display:flex;align-items:center;gap:8px;color:#929aa7;font-size:11px;text-align:right}
 .research-price-axis span b {width:34px;font-weight:400}
 .research-price-axis span::after {content:'';height:1px;flex:1;background:#e5e8ed}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-price-plot .research-histogram {position:relative;height:300px;min-height:300px;padding:28px 0 0;margin:0;gap:18px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-price-plot .research-histogram>div {height:100%;justify-content:flex-end;position:relative}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-price-plot .research-histogram i {max-width:100%;width:42px;height:var(--price-bar-height);flex:none}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-price-plot .research-histogram small {min-height:49px;padding-top:9px;font-size:11px}
 .research-price-cv-level {display:inline-block;margin-left:10px;padding:4px 7px;background:#f1e4d6;border-radius:4px;color:#91591e;font-size:12px}
}

/* Keep applied conditions with their reset/apply controls after a filtered result. */
@media screen {
 .research-filter-actions {display:flex;align-items:center;flex-wrap:wrap;gap:8px 10px}
 .research-filter-actions>.research-filter-chips {flex:1;min-width:0;gap:6px;padding:0}
 .research-filter-actions>.research-filter-chips:empty {display:none}
 .research-filter-actions>.research-filter-chips button {justify-content:flex-start;text-align:left;line-height:1.4;max-width:100%;overflow-wrap:anywhere;padding:5px 9px;border:1px solid #e3e6eb}
 .research-filter-actions>.research-filter-apply {margin-left:auto;flex-shrink:0}
 .research-filter-actions>.research-filter-extra {flex-shrink:0}
 .research-filter-actions>.research-filter-extra[open] {order:4;flex-basis:100%}
 .research-saved-keyword-menu>div {max-height:min(360px,60vh);overflow-y:auto;overscroll-behavior:contain;min-width:270px;max-width:calc(100vw - 48px)}
 .research-saved-keyword-menu button {line-height:1.45;overflow-wrap:anywhere}
 .research-saved-keyword-detail {display:block;margin-top:4px;color:#858b96;font-size:11px;line-height:1.45;font-weight:400}
 .research-saved-keyword-menu>summary:focus-visible,.research-saved-keyword-menu button:focus-visible {outline:2px solid var(--hc-brand-deep,#9a4b12);outline-offset:2px}
 .research-keyword-page-range[aria-disabled="true"]>summary {cursor:wait;opacity:.6}
 .research-keyword-range-column>button:disabled {cursor:default;opacity:.45;background:transparent}
}

/* 2026-10-18, 1440px comparison: keep collection controls in one status row,
   then align the summary cards without removing their evidence disclosures. */
@media screen {
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="category"] [data-research-results]>.research-completeness-summary:not([open]) {display:inline-block;vertical-align:middle;max-width:100%;margin:8px 12px 0 0;font-size:12px;line-height:28px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="category"] .research-completeness-summary:not([open])+.research-result-operations:not(:empty) {display:inline-flex;vertical-align:middle;align-items:center;flex-wrap:wrap;max-width:100%;gap:6px;margin:8px 0 0}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="category"] .research-result-operations>.btn {min-height:28px;padding:4px 9px;font-size:12px;line-height:18px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="category"] #research-details {margin-top:16px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-section-actions {margin-top:0}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-shipping-row>div:first-child {display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:baseline;column-gap:5px;font-size:14px;line-height:1.25;color:#596270}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-shipping-row>div:first-child>span:last-child {grid-column:3;white-space:nowrap;text-align:right}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-shipping-row b {font-size:16px;font-weight:600}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-shipping-includes {font-size:12px;line-height:1.3;justify-self:start}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-review-chart h4 {font-size:14px;line-height:1.5}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-review-plot {grid-template-columns:44px minmax(0,1fr)}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-review-axis {font-size:12px;line-height:1.2}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-review-column b {font-size:13px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-review-column small {font-size:12px;line-height:1.25}
}
@media screen and (max-width:580px) {
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-shipping-row>div:first-child {grid-template-columns:minmax(0,1fr) auto;row-gap:2px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-shipping-row>div:first-child>span:last-child {grid-column:2;grid-row:1}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-shipping-includes {grid-column:1/-1;grid-row:2}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-review-charts {grid-template-columns:1fr;gap:22px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-section-actions {margin-bottom:16px}
}

/* Four-group category overview: match the measured ~321.5px closed card
   without clipping an unknown delivery group or an opened evidence disclosure. */
@media screen {
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="category"] .research-detail-grid>:is(.research-shipping,.research-reviews) {position:relative}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="category"] .research-detail-grid>:is(.research-shipping,.research-reviews)>h3 {margin-bottom:19px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="category"] .research-detail-grid>:is(.research-shipping,.research-reviews)>h3 small {margin-right:25px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="category"] .research-shipping-row:last-of-type {margin-bottom:0}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="category"] :is(.research-shipping>.research-method-note,.research-reviews>.research-review-details):not([open]) {position:absolute;top:18px;right:18px;width:24px;height:24px;margin:0}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="category"] :is(.research-shipping>.research-method-note,.research-reviews>.research-review-details):not([open])>summary {display:flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;list-style:none;font-size:0;line-height:1;border-radius:50%}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="category"] :is(.research-shipping>.research-method-note,.research-reviews>.research-review-details):not([open])>summary::-webkit-details-marker {display:none}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="category"] :is(.research-shipping>.research-method-note,.research-reviews>.research-review-details):not([open])>summary::after {content:'ⓘ';font-size:15px;line-height:1;color:#858d9b}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="category"] :is(.research-shipping>.research-method-note,.research-reviews>.research-review-details)>summary:focus-visible {outline:2px solid var(--hc-brand-deep,#9a4b12);outline-offset:2px}

 /* The close circle is part of the existing accessible remove button. Avoid
    a nested button or a new click path so reset/apply semantics stay intact. */
 .research-filter-actions>.research-filter-chips {gap:10px 12px}
 .research-filter-actions>.research-filter-chips button {position:relative;padding:4px 10px;border-radius:4px}
 .research-filter-actions>.research-filter-chips button>span {position:absolute;top:-6px;right:-6px;display:flex;align-items:center;justify-content:center;width:16px;height:16px;padding:0;border-radius:50%;background:#596270;color:#fff;font-size:12px;line-height:1}
 .research-filter-actions>.research-filter-extra>summary {display:flex;align-items:center;justify-content:center;min-width:28px;height:33px;padding:0;line-height:1}
 .research-filter-actions>.research-filter-extra>summary::after {line-height:1}
}
@media screen and (max-width:600px) {
 .research-filter-actions>.research-filter-extra>summary {min-width:40px;height:40px}
}

/* Measured category summary: 102px PB + 107px revenue + 107px sales, with
   10px gaps. Evidence stays expandable; no fixed height clips opened details. */
@media screen {
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="category"] .research-kpi-stack>.metric {min-height:107px;padding:14px 20px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="category"] .research-kpi-stack>.metric>.metric-value {font-size:23px;line-height:30px;margin:6px 0 3px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="category"] .research-kpi-stack>.metric>.metric-foot {font-size:10px;line-height:15px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="category"] .research-kpi-stack>.research-pb-compact {position:relative;min-height:102px;padding:10px 20px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="category"] .research-pb-compact>.metric-title {padding-right:22px;line-height:18px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="category"] .research-kpi-stack>.research-pb-compact>.metric-value {font-size:23px;line-height:30px;margin:2px 0 1px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="category"] .research-pb-compact>.metric-value strong {font-size:23px;line-height:inherit}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="category"] .research-kpi-stack>.research-pb-compact>.metric-foot {display:block;font-size:10.5px;line-height:14px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="category"] .research-pb-compact [data-research-pb-name-summary] {display:block;font-size:inherit;line-height:inherit}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="category"] .research-pb-evidence[open] {margin-top:8px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="category"] .research-pb-evidence>div {display:grid;gap:5px;margin-top:8px;font-size:11px;line-height:1.6;overflow-wrap:anywhere}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="category"] .research-saturation {position:relative;min-height:336px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="category"] .research-saturation>h3 {margin-bottom:18px;padding-right:20px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="category"] .research-saturation-grid {padding:4px 0 0}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="category"] .research-saturation-grid h4 {line-height:18px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="category"] .research-saturation-grid dl {row-gap:4px;line-height:1.5}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="category"] :is(.research-pb-evidence,.research-saturation>.research-method-note):not([open]) {position:absolute;top:16px;right:16px;width:24px;height:24px;margin:0}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="category"] .research-pb-evidence:not([open]) {top:7px;right:12px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="category"] :is(.research-pb-evidence,.research-saturation>.research-method-note):not([open])>summary {display:flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;list-style:none;font-size:0;line-height:1;border-radius:50%}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="category"] :is(.research-pb-evidence,.research-saturation>.research-method-note):not([open])>summary::-webkit-details-marker {display:none}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="category"] :is(.research-pb-evidence,.research-saturation>.research-method-note):not([open])>summary::after {content:'ⓘ';font-size:15px;line-height:1;color:#858d9b}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="category"] :is(.research-pb-evidence,.research-saturation>.research-method-note)>summary:focus-visible {outline:2px solid var(--hc-brand-deep,#9a4b12);outline-offset:2px}
}

/* Keep collection definitions available without stretching the headline cards.
   Native disclosures remain operable by keyboard and on touch devices. */
@media screen {
 .commerce-surface[data-commerce-page="analyzer"] .research-kpi-stack>.metric {position:relative}
 .commerce-surface[data-commerce-page="analyzer"] .research-kpi-stack>.metric>.metric-title {padding-right:24px}
 .commerce-surface[data-commerce-page="analyzer"] .research-kpi-compact .metric-title {white-space:normal}
 .commerce-surface[data-commerce-page="analyzer"] :is(.research-kpi-evidence,.research-pb-evidence)>:not(summary) {margin-top:8px;font-size:11px;line-height:1.6;overflow-wrap:anywhere}
 .commerce-surface[data-commerce-page="analyzer"] .research-pb-evidence>div {display:grid;gap:5px}
 .commerce-surface[data-commerce-page="analyzer"] .research-pb-evidence [data-research-pb-name-summary] {font-size:11px;line-height:1.6}
 .commerce-surface[data-commerce-page="analyzer"] :is(.research-kpi-evidence,.research-pb-evidence,.research-shipping>.research-method-note,.research-reviews>.research-review-details,.research-saturation>.research-method-note):not([open]) {position:absolute;top:14px;right:14px;width:24px;height:24px;margin:0}
 .commerce-surface[data-commerce-page="analyzer"] :is(.research-kpi-evidence,.research-pb-evidence,.research-shipping>.research-method-note,.research-reviews>.research-review-details,.research-saturation>.research-method-note):not([open])>summary {display:flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;list-style:none;font-size:0;line-height:1;border-radius:50%}
 .commerce-surface[data-commerce-page="analyzer"] :is(.research-kpi-evidence,.research-pb-evidence,.research-shipping>.research-method-note,.research-reviews>.research-review-details,.research-saturation>.research-method-note):not([open])>summary::-webkit-details-marker {display:none}
 .commerce-surface[data-commerce-page="analyzer"] :is(.research-kpi-evidence,.research-pb-evidence,.research-shipping>.research-method-note,.research-reviews>.research-review-details,.research-saturation>.research-method-note):not([open])>summary::after {content:'ⓘ';font-size:15px;line-height:1;color:#858d9b}
 .commerce-surface[data-commerce-page="analyzer"] :is(.research-kpi-evidence,.research-pb-evidence,.research-shipping>.research-method-note,.research-reviews>.research-review-details,.research-saturation>.research-method-note)>summary:focus-visible {outline:2px solid var(--hc-brand-deep,#9a4b12);outline-offset:2px}
 .commerce-surface[data-commerce-page="analyzer"] :is(.research-shipping,.research-reviews,.research-saturation) {position:relative}
 .commerce-surface[data-commerce-page="analyzer"] :is(.research-shipping,.research-reviews,.research-saturation)>h3 {padding-right:26px}
 .commerce-surface[data-commerce-page="analyzer"] .research-result-management {margin:4px 0 0;font-size:12px;color:#7b8491}
 .commerce-surface[data-commerce-page="analyzer"] .research-result-management>summary {width:max-content;margin-left:auto;padding:3px 5px;cursor:pointer;list-style:none;line-height:20px}
 /* The category history summary floats at the right edge of this same row. */
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="category"] .research-result-management>summary {margin-right:96px}
 .commerce-surface[data-commerce-page="analyzer"] .research-result-management>summary::-webkit-details-marker {display:none}
 .commerce-surface[data-commerce-page="analyzer"] .research-result-management>summary::after {content:'⌄';margin-left:6px}
 .commerce-surface[data-commerce-page="analyzer"] .research-result-management[open]>summary::after {content:'⌃'}
 .commerce-surface[data-commerce-page="analyzer"] .research-result-management>summary:focus-visible {outline:2px solid var(--hc-brand-deep,#9a4b12);outline-offset:2px}
 .commerce-surface[data-commerce-page="analyzer"] .research-result-management[open] {padding:10px 14px;border:1px solid #e5e7eb;border-radius:6px;background:#fafbfc}
 .commerce-surface[data-commerce-page="analyzer"] .research-result-management .research-completeness-summary {margin:8px 0}
 .commerce-surface[data-commerce-page="analyzer"] .research-result-management .research-result-operations:not(:empty) {display:flex;margin:8px 0 0;gap:8px;flex-wrap:wrap}
 .commerce-surface[data-commerce-page="analyzer"] [data-research="xlsx"]:disabled {opacity:.45;cursor:wait}
}

/* Match the compact search-volume overview while retaining the real monthly
   unit and all source details. Details expand naturally rather than clipping. */
@media screen {
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-trend-mode {margin:0 0 6px;gap:18px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-trend-mode button {padding:4px 0;font-size:12px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view [data-monthly-count-extrema] {padding:0;margin:0 0 6px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view [data-monthly-count-extrema]>div {padding:8px 10px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view [data-monthly-count-trend]>.research-scope-controls {margin:0 0 6px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view [data-monthly-count-trend]>.research-trend-line {position:relative}
 .commerce-surface[data-commerce-page="analyzer"] .research-view [data-monthly-count-readout] {position:absolute;right:12px;bottom:27px;max-width:calc(100% - 24px);margin:0;padding:5px 8px;border:1px solid #e5e7eb;border-radius:4px;background:#fff;font-size:11px;line-height:1.4;opacity:0;pointer-events:none}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-trend-line:is(:hover,:focus-within) [data-monthly-count-readout] {opacity:1}
 .commerce-surface[data-commerce-page="analyzer"] .research-view [data-monthly-count-unit] {margin:5px 0;padding:0;border:0;font-size:10px;line-height:1.5}
 .commerce-surface[data-commerce-page="analyzer"] .research-view [data-monthly-count-extrema]>div {position:relative}
 .commerce-surface[data-commerce-page="analyzer"] .research-view [data-monthly-count-extrema]>div>small {position:absolute;top:100%;left:10px;z-index:2;padding:4px 7px;background:#fff;border:1px solid #e5e7eb;border-radius:4px;opacity:0;pointer-events:none}
 .commerce-surface[data-commerce-page="analyzer"] .research-view [data-monthly-count-extrema]>div:is(:hover,:focus-within)>small {opacity:1}
}

/* The two count tiles share equal grid rows. Their old 42px title minimum and
   stacked margins made both rows as tall as the more detailed annual tile,
   stretching the adjacent chart to 446px. Compact the intrinsic content;
   leave all cards free to grow when evidence or missing-data notes are open. */
@media screen {
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-keyword-overview>.research-search-volume.research-count-cards>.research-count-card {padding:14px 16px;gap:4px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-keyword-overview>.research-search-volume.research-count-cards>.research-count-card>span {min-height:0}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-keyword-overview>.research-search-volume.research-count-cards>.research-count-card>strong {padding-top:8px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-count-card>small {margin-top:3px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-count-card>.research-volume-details {margin-top:5px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-count-card>.source-note {margin-top:5px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-keyword-overview>.research-keyword-trend {padding:16px 22px 12px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-trend-mode {margin-bottom:4px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-trend-mode button {padding-block:2px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] [data-monthly-count-extrema] {margin-bottom:5px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] [data-monthly-count-extrema]>div {min-height:47px;padding-block:6px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] [data-monthly-count-trend]>.research-scope-controls {margin-bottom:5px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] [data-monthly-count-trend]>.research-scope-controls .chip {min-height:28px;padding:4px 10px;font-size:12px;line-height:18px}
}
@media screen and (max-width:800px) {
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-keyword-overview>.research-keyword-trend {min-height:0;padding:14px 12px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-keyword-overview>.research-search-volume.research-count-cards>.research-count-card {padding:14px 12px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] [data-monthly-count-extrema] {gap:6px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] [data-monthly-count-extrema]>div {gap:4px 6px;padding-inline:6px}
}

/* 2026-10-20 measured result layout. The reference table is 1200px wide,
   with 109px product rows and regular 14px numbers. Height remains intrinsic
   when an evidence disclosure or an inline review is expanded. */
@media screen {
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-product-table[data-table-mode="basic"] tbody>tr:not(.research-inline-review-row)>td[data-column] {height:109px;box-sizing:border-box}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-product-table :is(th,td)[data-column="rank"] {font-size:14px;font-weight:400}
 .commerce-surface[data-commerce-page="analyzer"] .research-view [data-research-table-area] td.research-sales {font-weight:400}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] :is(.research-keyword-result-title h2,.research-keyword-overview-panel>.section-head h2,.research-keyword-disclosure>summary h2,.research-section > :is(summary,:where(.research-section-header)),.table-head h2) {font-size:24px;line-height:1.4}

 /* Keep the two metric scope controls and the three trend choices on the
    heading line when there is room, and wrap naturally at smaller widths. */
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-keyword-overview-panel>.section-head {display:flex;flex-wrap:wrap;gap:6px 18px;align-items:center}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-keyword-overview-panel>.section-head>.research-scope-controls {margin:0}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-keyword-overview-panel>.section-head>.research-trend-mode {margin:0 0 0 auto;gap:16px;flex-wrap:wrap}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-keyword-overview-panel>.section-head.research-keyword-disclosure-tools {max-width:calc(100% - 190px);width:auto;margin:0;padding:0}

 /* Ten visible discovery rows use the same compact 24px rhythm as the
    comparison. Additional keywords and source evidence remain expandable. */
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-keyword-discovery {margin-bottom:20px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-keyword-discovery :is(.research-discovery-list,.weekly-ranks) {gap:4px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-keyword-discovery :is(.research-discovery-list :is(button,a),.weekly-rank) {min-height:20px;padding:0;font-size:14px;line-height:20px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-keyword-discovery .research-related-keywords {padding:0}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-keyword-discovery>.panel,
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-keyword-discovery .weekly-keywords {min-height:330px;padding:18px 20px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-keyword-discovery .section-head {margin-bottom:12px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-keyword-discovery details>summary {padding-block:5px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-keyword-discovery .weekly-source {margin:0}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-keyword-discovery .weekly-source>summary {padding:0}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-keyword-discovery .chart-note {margin:5px 0;padding:0;font-size:11px;line-height:1.5}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-keyword-discovery .weekly-import {margin-top:5px;padding-top:0}

 /* Apply the already measured category summary geometry to keyword results. */
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-detail-grid>:is(.research-shipping,.research-reviews)>h3 {margin-bottom:19px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-shipping-row:last-of-type {margin-bottom:0}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-kpi-stack>.metric {min-height:107px;padding:14px 20px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-kpi-stack>.metric>.metric-value {font-size:23px;line-height:30px;margin:6px 0 3px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-kpi-stack>.metric>.metric-foot {font-size:10px;line-height:15px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-kpi-stack>.research-pb-compact {min-height:102px;padding:10px 20px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-pb-compact>.metric-title {line-height:18px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-kpi-stack>.research-pb-compact>.metric-value {margin:2px 0 1px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-kpi-stack>.research-pb-compact>.metric-value strong {font-size:23px;line-height:inherit}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-saturation {min-height:336px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-saturation>h3 {margin-bottom:18px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-saturation-grid {padding:4px 0 0}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-saturation-grid h4 {line-height:18px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-saturation-grid dl {row-gap:4px;line-height:1.5}

 /* Three price tiles fit alongside the existing 300px histogram. Use smaller
    spacing rather than a fixed maximum height, so long values stay readable. */
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-price-summary {gap:10px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-price-summary>.panel {padding:12px 20px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-price-summary h3 {margin:0 0 6px;font-size:14px;line-height:20px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-price-summary :is(strong,[data-research-core-price] span) {line-height:30px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-price-summary :is(small,.price-stats div) {font-size:11px;line-height:16px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-price-summary .price-stats>div {gap:4px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-price-summary [data-research-price-cv] {display:inline-block;vertical-align:middle}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-price-summary>.panel>small {display:block}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-price-cv-level {padding:2px 7px;vertical-align:middle}
}
@media screen and (min-width:901px) {
 .commerce-surface[data-commerce-page="analyzer"] .main:has(.research-view) {max-width:1200px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .page-head {max-width:1200px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .page-head h1 {font-size:50px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="category"] .page-head {margin-bottom:44px}
}
@media screen and (max-width:800px) {
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] :is(.research-keyword-result-title h2,.research-keyword-overview-panel>.section-head h2,.research-keyword-disclosure>summary h2,.research-section > :is(summary,:where(.research-section-header)),.table-head h2) {font-size:20px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-keyword-overview-panel>.section-head.research-keyword-disclosure-tools {position:static;max-width:none;width:auto;margin:-4px 0 12px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-keyword-overview-panel>.section-head>.research-trend-mode {margin-left:0;width:100%;gap:12px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-keyword-discovery :is(.research-discovery-list :is(button,a),.weekly-rank) {min-height:28px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-price-summary>.panel {padding:14px 16px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-saturation {min-height:0}
}

/* Estimated counts use the same compact rhythm as the monthly overview.
   Shared chart-note rules otherwise add 27px above every readout and warning.
   Keep all notices visible and the SVG's natural ratio/interaction unchanged. */
@media screen {
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] [data-estimated-trend-host] .chart-note {margin:4px 0;padding:0;border:0;font-size:11px;line-height:1.5}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] [data-estimated-search-trend]>.research-trend-extrema {padding:0;margin:0 0 6px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] [data-estimated-search-trend]>.research-trend-extrema>div {min-height:47px;padding:6px 10px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] [data-estimated-search-trend] .research-trend-controls {margin:0 0 6px;gap:6px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] [data-estimated-search-trend] .research-trend-controls :is(select,.chip) {min-height:32px;height:32px;padding:5px 10px;font-size:12px;line-height:20px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] [data-estimated-search-trend]>.research-trend-evidence {margin-top:4px}
}

/* Compact only the closed discovery disclosures; opened source lists keep
   their full content and ordinary flow. The weekly source has its own header. */
@media screen {
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-keyword-discovery :is([data-keyword-more-words],[data-keyword-more-coupang],[data-keyword-naver-related],.research-discovery-evidence):not([open]) {margin:6px 0}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .research-keyword-discovery :is([data-keyword-more-words],[data-keyword-more-coupang],[data-keyword-naver-related],.research-discovery-evidence):not([open])>summary {padding-block:3px}
}
@media screen and (min-width:1101px) {
 /* Scope controls belong beside the heading on wide screens. Their original
    DOM order and mobile flow remain intact, including the price scope note. */
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] :is(#research-details,#research-prices) {position:relative}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] :is(#research-details,#research-prices)>:is(summary,:where(.research-section-header)) {padding-right:calc(65% + 42px)}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] :is(#research-details,#research-prices)>summary::after {position:absolute;right:0;top:6px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] :is(#research-details,#research-prices):is([open],[data-collapsible="false"])>.research-section-body>.research-scope-controls {position:absolute;top:0;right:42px;max-width:65%;min-height:34px;margin:0;justify-content:flex-end;flex-wrap:nowrap}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] :is(#research-details,#research-prices):is([open],[data-collapsible="false"])>.research-section-body>.research-scope-controls>* {white-space:nowrap}
 /* The shared dashboard export occupies the right edge of this heading. */
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] #research-details:has(>.research-section-actions)>.research-section-body>.research-scope-controls {right:144px;max-width:calc(100% - 310px)}
 /* The reference keyword table is wider than its 1200px overview. Category
    retains the previously measured 1200px table; narrow screens still scroll. */
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] #research-products {width:min(1500px,calc(100vw - var(--rail-width,64px) - 64px));max-width:none;margin-inline:calc((100% - min(1500px,calc(100vw - var(--rail-width,64px) - 64px))) / 2)}
}

/* Category results measured again at the same 2545px viewport and selection
   mode: the completed entry message added 44.4px inside the 166px input card.
   Keep that message in the existing gap, while pending/error states retain
   their normal space and every action stays available. */
@media screen and (min-width:901px) {
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="category"] .page-head {margin-bottom:40px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="category"] .panel.research-search {position:relative}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="category"] .panel.research-search:has([data-research-start]:not(:disabled))>[data-research-status][data-state="connected"]:not([hidden]) {position:absolute;top:calc(100% + 14px);left:0;max-width:calc(100% - 190px);margin:0}
}
@media screen {
 .commerce-surface[data-commerce-page="analyzer"] .research-view:is([data-mode="category"],[data-mode="keyword"]) .research-kpi-stack>.metric>.metric-title {font-size:16px;line-height:16px;font-weight:600}
 .commerce-surface[data-commerce-page="analyzer"] .research-view:is([data-mode="category"],[data-mode="keyword"]) .research-kpi-stack>.metric>.metric-value,
 .commerce-surface[data-commerce-page="analyzer"] .research-view:is([data-mode="category"],[data-mode="keyword"]) .research-kpi-stack>.metric>.metric-value strong {font-size:22px;line-height:22px;font-weight:600}
 .commerce-surface[data-commerce-page="analyzer"] .research-view:is([data-mode="category"],[data-mode="keyword"]) .research-saturation-grid :is(dt,dd) {font-size:16px;line-height:16px;font-weight:600}
}

/* Review controls measured on the same 39-review product. Keep these rules
   inside the inline panel: the product table and collection state are not
   resized or hidden. Expanded evidence and long option names remain in flow. */
@media screen {
 .commerce-surface[data-commerce-page="analyzer"] .research-view .ml-review-inline :is(.ml-review-chart-actions>button,.ml-review-period-presets>button,.ml-review-time-unit>button,.ml-review-filter-toolbar>[data-rv="reset-filters"]) {box-sizing:border-box;font-size:14px;line-height:20px;min-height:40px;height:40px;padding:0 10px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .ml-review-inline .ml-review-chart-actions {gap:3px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .ml-review-inline .ml-review-date-picker {margin:0;font-size:14px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .ml-review-inline .ml-review-date-picker>summary {box-sizing:border-box;display:flex;align-items:center;min-height:40px;height:40px;min-width:150px;padding:0 10px;font-size:14px;line-height:20px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .ml-review-inline .ml-review-filter-toolbar .ml-review-rating-filters label {box-sizing:border-box;min-height:40px;height:40px;min-width:44px;justify-content:center;padding:0 8px;font-size:14px;line-height:20px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .ml-review-inline :is(.ml-review-period-filters>span,.ml-review-filter-toolbar .ml-review-rating-filters legend) {font-size:14px;line-height:40px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .ml-review-inline .ml-review-summary-bar {gap:8px;margin:4px 0}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .ml-review-inline .ml-review-summary-bar .ml-review-summary {font-size:14px;line-height:22px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .ml-review-inline .ml-review-summary :is(span,strong,b) {font-size:14px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .ml-review-inline .ml-review-summary-bar .ml-review-xlsx {box-sizing:border-box;flex:0 0 134px;width:134px;min-height:36px;height:36px;padding:0 10px;font-size:12px;line-height:20px;white-space:nowrap}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .ml-review-inline .ml-review-collection-info>summary {padding:2px 0;line-height:18px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .ml-review-inline .ml-review-filter-toolbar {gap:12px;padding-bottom:10px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .ml-review-inline .ml-review-filter-toolbar .ml-review-period-filters {gap:6px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .ml-review-inline .ml-review-extra-filters {margin:0;padding-top:4px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .ml-review-inline .ml-review-chart-details {gap:16px;margin-top:6px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .ml-review-inline .ml-review-chart-details>details {margin:0}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .ml-review-inline .ml-review-options-caption {font-size:12px;line-height:18px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .ml-review-inline .ml-review-option-name {font-size:14px;line-height:20px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .ml-review-inline .ml-review-option-count {font-size:12px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .ml-review-inline .ml-review-option-share {height:20px;font-size:12px;line-height:18px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .ml-review-inline .ml-review-option-scope {margin:5px 0 0;line-height:1.5}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .ml-review-inline .ml-review-trend-head {gap:9px;margin-bottom:8px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .ml-review-inline .ml-review-trend-head h3 {font-size:14px;line-height:20px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .ml-review-inline .ml-review-trend-head h3>span {font-size:14px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .ml-review-inline .ml-review-raw {margin:6px 0 0;padding:4px 2px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .ml-review-inline :is(.ml-review-chart-actions>button,.ml-review-period-presets>button,.ml-review-time-unit>button):focus-visible {outline:2px solid var(--hc-brand-deep,#9a4b12);outline-offset:3px}
}
@media screen and (min-width:901px) {
 .commerce-surface[data-commerce-page="analyzer"] .research-view .ml-review-inline .ml-review-body {padding:10px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .ml-review-inline .ml-review-filters {padding:16px;margin-top:6px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .ml-review-inline .ml-review-option-filters {min-height:200px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .ml-review-inline .ml-review-trend {padding:16px 20px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .ml-review-inline .ml-review-line-chart svg {height:300px;min-height:300px;max-height:300px}
}

.commerce-surface[data-commerce-page="analyzer"] .research-view .research-product-table .research-shipping-label{font-weight:600}

/* Fixed detail headings retain the former summary geometry without a control. */
.commerce-surface[data-commerce-page="analyzer"] .research-view .research-section>.research-section-header {margin:0;cursor:default}
/* Collection management no longer reserves a row below the search form.
   Leave space for the existing completion status before the fixed heading. */
.commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="category"] .research-search:has(>[data-research-status][data-state="connected"]:not([hidden])) {margin-bottom:48px}
.commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="category"] .research-summary-loading {grid-column:1/-1;min-height:336px;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:32px 24px;background:var(--hc-soft,#f8f9fb);border:0;border-radius:8px;text-align:center;color:var(--hc-text,#5d3b26)}
.commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="category"] .research-summary-loading strong {font-size:18px;font-weight:600;line-height:1.5}
.commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="category"] .research-summary-loading p {margin:0;color:#7e8590;font-size:14px;line-height:1.7}
.commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="category"] .research-summary-spinner {width:34px;height:34px;box-sizing:border-box;border:3px solid #eadfce;border-top-color:var(--hc-brand,#e98925);border-radius:50%;animation:research-summary-spin 1s linear infinite}
@keyframes research-summary-spin {to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="category"] .research-summary-spinner{animation:none}}

/* Recent entries open their captured result directly in both analysis modes. */
@media screen {
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-recent-history {display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:8px;max-width:1200px;margin:14px auto 24px;padding:0;background:transparent}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-recent-history:empty {display:none}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-recent-history>.research-recent-label {flex:0 0 100%;margin:0 0 2px;color:#838b97;font-size:12px;line-height:1.5}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-recent-history>.research-recent-chip {display:flex;align-items:center;max-width:100%;min-width:0;padding:0;border:1px solid #e7e8eb;border-radius:8px;background:#fafafa;overflow:hidden}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-recent-history .research-recent-chip>[data-research-history-id] {display:flex;flex-wrap:wrap;align-items:baseline;gap:5px 7px;min-width:0;padding:8px 10px 8px 12px;border:0;background:transparent;text-align:left;white-space:normal;line-height:1.5;color:#343b46;cursor:pointer}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-recent-history .research-recent-chip strong {font-size:14px;font-weight:650;overflow-wrap:anywhere}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-recent-history .research-recent-chip .research-recent-date {margin:0;color:#89919c;font-size:11px;font-weight:400;white-space:nowrap}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-recent-history :is(.research-recent-scope,.research-recent-state) {color:#89919c;font-size:11px;font-weight:400;white-space:nowrap}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-recent-history .research-recent-dismiss {flex:0 0 auto;align-self:stretch;min-width:30px;padding:8px;border:0;color:#939aa5;font-size:14px;background:transparent;cursor:pointer}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-recent-history button:hover:not(:disabled) {color:var(--hc-brand-deep,#9a4b12);background:var(--hc-tint,#fff4e5)}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-recent-history button:disabled {cursor:wait;opacity:.6}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-recent-history button:focus-visible {outline:2px solid var(--hc-brand-deep,#9a4b12);outline-offset:-2px}
}
