/* Measured analysis entry: five 58px category controls and a centered 50px title.
   Brand and shipping colors remain in brand-theme.css. */
@media screen {
 .commerce-surface[data-commerce-page="analyzer"] .research-view .page-head {margin:0 0 40px;text-align:center}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .page-head h1 {font-size:50px;line-height:1;letter-spacing:normal;font-weight:900}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .page-head .subtitle {display:none}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .panel.research-search {max-width:1200px;padding:20px 24px;border:1px solid #E8EAED;border-radius:20px;background:#FAFAFA;margin:0 auto 12px;box-shadow:none}
 .research-entry-controls {display:flex;justify-content:flex-start;align-items:center;min-height:48px;margin:0 0 10px;padding-left:calc(40% - 12px)}
 .research-category-mode-switch {display:flex;align-items:center;gap:6px}
 .research-category-mode-switch button {padding:4px 9px;border:0;border-radius:5px;background:transparent;color:#7B8189;font:inherit;font-size:13px;font-weight:600;cursor:pointer}
 .research-category-mode-switch button[aria-pressed="true"] {background:transparent;color:#303740}
 .research-category-mode-switch .research-category-mode-toggle {display:flex;width:46px;height:26px;min-width:46px;padding:3px;border:1px solid #D6D8DC;border-radius:16px;background:#fff;align-items:center}
 .research-category-mode-toggle > span {display:block;width:18px;height:18px;border-radius:50%;background:#D2D5D8;transition:transform .15s ease,background .15s ease}
 .research-category-mode-switch .research-category-mode-toggle[aria-checked="true"] {border-color:var(--hc-brand)}
 .research-category-mode-toggle[aria-checked="true"] > span {transform:translateX(19px);background:var(--hc-brand)}
 .research-category-mode-switch button:disabled {opacity:.5;cursor:default}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="category"] .research-query-bar {display:flex;align-items:center;gap:10px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;flex-wrap:nowrap}
 .research-view .research-category-selectors {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;flex:1;min-width:0}
 .research-view .research-category-level {display:block;min-width:0;margin:0;position:relative}
 .research-view .research-category-trigger {display:flex;justify-content:space-between;align-items:center;gap:10px;width:100%;height:58px;padding:0 18px;font-size:16px;font-weight:700;border:1px solid #E3E6EB;border-radius:8px;background:#fff;color:#737B87;text-align:left;cursor:pointer;white-space:nowrap}
 .research-view .research-category-trigger > span {overflow:hidden;text-overflow:ellipsis}
 .research-view .research-category-trigger svg {width:16px;height:16px;flex:0 0 16px;fill:none;stroke:currentColor;stroke-width:1.5;transition:transform .15s ease}
 .research-view .research-category-trigger[aria-expanded="true"] svg {transform:rotate(180deg)}
 .research-view .research-category-trigger[data-selected="true"] {color:#26313D}
 .research-view .research-category-trigger:disabled {background:#fff;color:#A8ADB5;cursor:default}
 .research-view .research-category-trigger:focus-visible,.research-category-mode-switch button:focus-visible {outline:2px solid var(--hc-brand);outline-offset:2px}
 .research-category-options,.research-category-search-options {position:absolute;top:calc(100% + 5px);left:0;right:0;max-height:324px;overflow-y:auto;overscroll-behavior:contain;background:#fff;border:1px solid #DFE3E9;border-radius:8px;box-shadow:0 5px 16px #1B253211;z-index:30;padding:0;scrollbar-width:thin}
 .research-category-options button {display:block;width:100%;min-height:46px;padding:12px 15px;border:0;border-bottom:1px solid #EDF0F3;border-radius:0;background:#fff;color:#3E4857;font:inherit;font-size:16px;font-weight:400;line-height:1.4;text-align:left;cursor:pointer}
 .research-category-options button:last-child {border-bottom:0}
 .research-category-options button[data-category-more] {color:var(--hc-brand-deep);border-top:1px solid #DFE3E9;font-size:14px}
 .research-category-options button:disabled {cursor:wait;opacity:.6}
 .research-category-options button:hover,.research-category-options button[data-active="true"],.research-category-options button[aria-selected="true"],.research-category-search-options button:hover,.research-category-search-options button[data-active="true"] {background:var(--hc-tint);color:var(--hc-brand-deep)}
 .research-category-search {position:relative;flex:1;min-width:0}
 .research-category-search input {display:block;width:100%;height:58px;border:1px solid #E3E6EB;border-radius:8px;padding:0 18px;background:#fff;color:#26313D;font:inherit;font-size:16px;font-weight:600}
 .research-category-search input::placeholder {color:#A8ADB5}
 .research-category-search input:focus {outline:2px solid var(--hc-brand);outline-offset:2px}
 .research-category-search-options {max-height:360px}
 .research-category-search-options button {display:flex;align-items:center;flex-wrap:wrap;gap:6px;width:100%;padding:13px 17px;min-height:46px;border:0;border-bottom:1px solid #EDF0F3;border-radius:0;background:#fff;color:#4E5866;font:inherit;font-size:14px;text-align:left;line-height:1.6;cursor:pointer}
 .research-category-search-options button span:last-child {font-weight:700}
 .research-category-search-options button i {font-style:normal;color:#A8ADB5}
 .research-category-no-match {margin:0;padding:16px;font-size:14px;color:#737B87;line-height:1.6}
 .research-category-search-scope {font-size:12px;color:#737B87;line-height:1.6;margin:8px 0 0}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-query-bar > .research-search-submit {width:58px;min-width:58px;height:58px;min-height:58px;padding:13px;flex:0 0 58px;border-radius:8px;border:0;background:var(--hc-brand);color:var(--hc-brand-ink);cursor:pointer;display:grid;place-items:center}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-query-bar > .research-search-submit:hover {background:#DE7B19}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-query-bar > .research-search-submit:disabled {opacity:.5;cursor:wait}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-query-bar > .research-search-submit:focus-visible {outline:2px solid var(--hc-brown);outline-offset:3px}
 .research-search-submit svg {display:block;width:29px;height:29px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
 .research-search-submit > span {position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
 .research-view [data-research-category-message] {font-size:12px;line-height:1.7;margin:0;color:var(--hc-muted)}
 .research-view [data-research-category-message] button {margin-left:8px;padding:3px 8px;background:transparent;border:1px solid var(--hc-line);border-radius:4px;color:var(--hc-brand-deep);font-size:12px}
 .research-view [data-research-status]:not([hidden]) {display:block;margin:12px 0;font-size:12px;line-height:1.7;color:var(--hc-muted)}
 .research-view [data-research-status][data-state="error"] {color:#A64022}
 .commerce-surface[data-commerce-page="analyzer"] .research-view [data-research-query-source-note] {border:0;padding:0;margin:10px 0 0;font-size:12px;line-height:1.7}
 .research-history-menu {max-width:1200px;margin:10px auto 0;position:relative;font-size:12px;color:#89909C}
 .research-history-menu > summary {width:fit-content;margin-left:auto;cursor:pointer;list-style:none;padding:4px 0}
 .research-history-menu > summary::after {content:'⌄';margin-left:6px}
 .research-history-menu[open] > summary::after {content:'⌃'}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-history {justify-content:flex-start;min-height:0;margin:8px 0 0;padding:12px;background:#F8F9FB;border-radius:8px;font-size:12px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-history .chip {border:1px solid #E3E6EB;background:#fff;border-radius:6px;padding:6px 12px;font-size:12px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .panel.empty.research-empty-intro {max-width:880px;background:#F8F9FB;border:0;border-radius:14px;padding:22px 24px;margin:24px auto 36px;line-height:1.6;color:#303943;min-height:140px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .panel.empty.research-empty-intro strong {font-size:20px;margin:0 0 20px;letter-spacing:-.6px;color:#303943}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .panel.empty.research-empty-intro p {font-size:16px;margin:1px 0;color:#303943}
 .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="keyword"] .panel.research-search {padding:0;border:0;background:transparent;border-radius:0}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-keyword-bar {display:flex;align-items:center;flex-wrap:nowrap;gap:0;padding:4px 7px 4px 24px;border:2px solid var(--hc-brand);border-radius:36px;background:#fff;min-height:66px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-keyword-bar .research-query {display:block;flex:1;min-width:0;margin:0}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-keyword-bar .research-query > span {position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
 .research-keyword-page-range {display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;order:-1;flex:0 0 86px;min-height:38px;padding:0 16px 0 0;margin-right:10px;border-right:1px solid #E3E6EB;white-space:nowrap;color:#374151;font-size:13px;line-height:1.25}
 .research-keyword-page-range small {font-size:11px;color:#8A929F}
 .research-keyword-page-range b {font-weight:600}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-keyword-bar input {border:0;background:transparent;box-shadow:none;height:52px;padding:8px 12px;text-align:center;font-size:18px;width:100%;min-width:0}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-keyword-bar input::placeholder {color:#A8ADB5}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-keyword-bar > .research-search-submit {background:transparent;border:0;color:#20242A;border-radius:50%;width:52px;min-width:52px;flex-basis:52px;height:52px;min-height:52px}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-keyword-bar > .research-search-submit:hover {background:var(--hc-tint)}
 .research-view [hidden] {display:none!important}
 .research-view:has(.research-empty-intro) .research-keyword-discovery {display:none}
 .research-view .research-category-feedback {display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:8px;font-size:12px;color:var(--hc-muted)}
 .commerce-surface[data-commerce-page="analyzer"] .research-view .research-keyword-history {display:flex;align-items:center;justify-content:center;gap:6px;max-width:1200px;margin:12px auto 26px;padding:0;background:transparent;color:#8E96A3;font-size:12px}
 .research-recent-label {margin-right:3px;font-size:12px}
 .research-recent-chip {display:flex;align-items:center;border:1px solid #E6E8EC;border-radius:5px;background:#fff;overflow:hidden}
 .research-recent-chip > button {border:0;background:transparent;padding:6px 4px 6px 9px;color:#858F9F;font-size:12px;cursor:pointer;white-space:nowrap}
 .research-recent-chip > span[data-research-recent-query] {padding:6px 4px 6px 9px;color:#858F9F;font-size:12px;white-space:nowrap;cursor:default}
 .research-recent-chip > [data-research-recent-query] small {font-size:10px;margin-left:3px;color:#9AA2AE}
 .research-recent-chip > .research-recent-dismiss {padding:5px 8px 5px 3px;font-size:16px;line-height:1;color:#A6ADB7}
 .research-recent-chip > button:hover {color:var(--hc-brand-deep);background:var(--hc-tint)}
 @media (max-width:900px) {
  .research-view .research-category-selectors {grid-template-columns:repeat(3,minmax(0,1fr))}
  .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="category"] .research-query-bar {align-items:flex-end}
  .commerce-surface[data-commerce-page="analyzer"] .research-view .page-head h1 {font-size:35px}
 }
 @media (max-width:600px) {
  .commerce-surface[data-commerce-page="analyzer"] .research-view .page-head h1 {font-size:30px;letter-spacing:-1.2px}
  .research-view .research-category-selectors {grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .commerce-surface[data-commerce-page="analyzer"] .research-view .panel.research-search {padding:14px}
  .research-entry-controls {padding-left:0;min-height:32px}
  .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="category"] .research-query-bar {display:block}
  .research-view .research-category-trigger {height:50px;font-size:13px;padding-left:12px}
  .research-view .research-category-options button {font-size:14px}
  .commerce-surface[data-commerce-page="analyzer"] .research-view[data-mode="category"] .research-search-submit {float:right;height:50px;min-height:50px;margin-top:-50px;width:calc(50% - 4px);min-width:0}
  .research-category-search input {height:50px;padding-right:58px;font-size:14px}
  .research-category-search:not([hidden]) ~ .research-search-submit {position:relative;width:50px!important}
  .research-category-search-options button {font-size:12px}
  .commerce-surface[data-commerce-page="analyzer"] .research-view .research-keyword-bar {padding-left:10px;min-height:58px}
  .commerce-surface[data-commerce-page="analyzer"] .research-view .research-keyword-bar input {font-size:15px;height:46px}
  .research-keyword-page-range {flex-basis:66px;padding-right:8px;margin-right:2px;font-size:11px}
  .research-keyword-page-range small {font-size:10px}
  .commerce-surface[data-commerce-page="analyzer"] .research-view .research-keyword-history {justify-content:flex-start;gap:5px}
  .commerce-surface[data-commerce-page="analyzer"] .research-view .panel.empty.research-empty-intro {padding:20px 15px}
  .commerce-surface[data-commerce-page="analyzer"] .research-view .panel.empty.research-empty-intro strong {font-size:17px}
  .commerce-surface[data-commerce-page="analyzer"] .research-view .panel.empty.research-empty-intro p {font-size:14px}
 }
}
