.hit-hero { padding-block: clamp(1.65rem, 5vw, 3.25rem); }
.hit-hero h1 { font-size: clamp(2.45rem, 6vw, 4.75rem); }
.hit-hero p { margin-top: .6rem; max-width: 37rem; color: #d3dfef; font-size: clamp(1rem, 2vw, 1.16rem); }
.hit-workspace { display: grid; grid-template-columns: minmax(17rem, 23rem) minmax(0, 1fr); gap: clamp(1rem, 3vw, 2.25rem); align-items: start; padding-block: clamp(1.25rem, 3vw, 2.25rem); }
.hit-setup, .hit-results, #product-results { display: grid; gap: .9rem; min-width: 0; }
.hit-panel { border: 1px solid var(--stroke); border-radius: 12px; padding: clamp(.85rem, 2vw, 1.3rem); background: var(--white); }
.hit-panel h2 { margin-bottom: .8rem; font-size: 1.25rem; }
.hit-spots-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: .36rem; }
.hit-spots-head h2 { margin: 0; }
.hit-panel fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.hit-panel label, .hit-panel legend, .hit-filters label { font-size: .85rem; font-weight: 700; }
.hit-panel input[type="checkbox"] { width: 1rem; height: 1rem; margin: .125rem 0 0; accent-color: var(--accent); flex: none; }
.hit-panel input:not([type="checkbox"]), .hit-panel textarea, .hit-panel button, .hit-panel select, .hit-filters select { border: 1px solid #a8bbd2; border-radius: 7px; background: var(--white); min-height: 2.75rem; }
.hit-panel button { padding: .45rem .65rem; font-weight: 650; font-size: .85rem; }
.hit-panel button:disabled { cursor: default; color: var(--muted); opacity: .7; }
.hit-panel textarea, .hit-panel input:not([type="checkbox"]) { box-sizing: border-box; min-width: 0; padding: .45rem .55rem; color: var(--ink); font: inherit; }
.hit-panel textarea { width: 100%; resize: vertical; }
.hit-panel input[type="file"] { max-width: 100%; padding: .4rem; font-size: .78rem; }
.hit-panel input[type="search"] { width: 100%; }
.hit-panel button:not(:disabled):hover { background: #edf3fa; }
.hit-hint { font-size: .82rem; color: var(--muted); overflow-wrap: anywhere; }
.hit-hint:empty { display: none; }
.hit-product-filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: .45rem; }
.hit-product-filters > div { display: grid; gap: .2rem; min-width: 0; }
.hit-product-filters input, .hit-product-filters select { width: 100%; padding-inline: .5rem; }
#product-search-status, #catalog-status { margin-top: .45rem; }
#selected-products:empty, #other-products:empty { display: none; }
.hit-product-option { display: flex; align-items: flex-start; gap: .6rem; border: 1px solid var(--stroke); border-radius: 8px; margin-top: .45rem; padding: .6rem .65rem; cursor: pointer; }
.hit-product-option:has(input:checked) { border-color: #83a6cc; background: #f0f6fd; }
.hit-product-name { display: grid; gap: .12rem; line-height: 1.35; }
.hit-product-name small { color: var(--muted); font-weight: 550; }
.hit-input-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .45rem; margin: .35rem 0; }
.hit-spot-options, .hit-roster, .hit-review, .hit-cards, .hit-coverage ul { padding: 0; margin: 0; list-style: none; }
.hit-spot-options { margin-top: .35rem; }
.hit-spot-options li + li { margin-top: .2rem; }
.hit-spot-options button { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .15rem .55rem; text-align: left; width: 100%; border-color: var(--stroke); }
.hit-spot-options span { color: var(--muted); font-size: .75rem; }
.hit-panel .hit-link-button { background: transparent; border-color: transparent; color: var(--accent); padding-inline: 0; text-decoration: underline; text-underline-offset: .2em; }
.hit-roster { display: flex; flex-wrap: wrap; gap: .35rem; margin-block: .6rem; }
.hit-roster li { display: flex; align-items: center; min-width: 0; background: #edf4fc; border: 1px solid #ccdcee; border-radius: 8px; padding-left: .6rem; font-size: .84rem; font-weight: 700; gap: .2rem; }
.hit-roster li > span { overflow-wrap: anywhere; }
.hit-panel .hit-find-sets { white-space: nowrap; border: 0; background: transparent; color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }
.hit-save { margin-top: .6rem; padding: .35rem .65rem .5rem; border: 1px solid var(--stroke); border-radius: 8px; background: #f6f9fd; }
.hit-save label { display: flex; align-items: center; gap: .5rem; min-height: 2.75rem; }
.hit-save input { flex: none; margin: 0; accent-color: var(--accent); }
.hit-sharing { margin-top: .65rem; }
.hit-sharing .hit-hint { margin-top: .25rem; }
#shared-list-banner { margin-bottom: .45rem; }
#share-link-fallback input { width: 100%; }
.hit-panel .hit-remove { border: 0; min-width: 2.65rem; background: transparent; font-size: 1.15rem; line-height: 1; }
.hit-spot-sets { margin-block: .65rem; padding: .65rem; border: 1px solid #ccdcee; border-radius: 8px; background: #f6f9fd; }
.hit-spot-sets h3 { font-size: 1rem; overflow-wrap: anywhere; }
.hit-spot-sets p { margin-top: .25rem; }
.hit-spot-sets ul { margin: .4rem 0 0; padding: 0; list-style: none; }
.hit-spot-sets ul:empty { display: none; }
.hit-spot-sets li { display: flex; align-items: center; justify-content: space-between; gap: .5rem; border-top: 1px solid var(--stroke); padding-block: .35rem; font-size: .84rem; }
.hit-spot-sets li button[aria-pressed="true"] { background: #e8f0fa; color: #234a75; }
.hit-jump { display: inline-flex; align-items: center; gap: .3rem; min-height: 2.75rem; font-weight: 700; font-size: .86rem; }
.hit-import { margin-top: .65rem; border-top: 1px solid var(--stroke); padding-top: .6rem; }
.hit-import summary, .hit-coverage summary, .hit-pulled summary { font-size: .87rem; font-weight: 750; padding: .25rem 0; }
.hit-import label, .hit-import input[type="file"], .hit-import textarea { display: block; }
.hit-import > label { margin: .6rem 0 .25rem; }
.hit-import > .hit-hint { margin-top: .28rem; }
.hit-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
#review-names { margin-top: .35rem; }
.hit-review { margin-bottom: .45rem; }
.hit-review label { display: flex; align-items: center; gap: .55rem; min-height: 2.75rem; }
.hit-review small { color: var(--muted); padding-left: .4rem; font-weight: 500; }
.hit-panel .hit-primary { background: #153e69; border-color: #153e69; color: var(--white); }
.hit-panel .hit-primary:not(:disabled):hover { background: #102d4d; }
.hit-results-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: .7rem 1rem; }
.hit-results-head h2 { font-size: clamp(1.55rem, 4vw, 2rem); scroll-margin-top: 1rem; }
.hit-results-head p { margin-top: .25rem; }
.hit-filters { display: flex; flex-wrap: wrap; gap: .4rem .65rem; max-width: 100%; }
.hit-filters label { display: grid; gap: .2rem; max-width: 100%; }
.hit-filters select { padding: .3rem .6rem; max-width: 13rem; }
.hit-summary { border: 1px solid #ccdbe9; background: #e8f0fa; border-radius: 8px; color: #1e4266; font-weight: 700; padding: .65rem .85rem; font-size: .86rem; }
.hit-summary:empty { display: none; }
.hit-product-jumps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 5.7rem), 1fr)); gap: .4rem; }
.hit-product-jumps a { display: grid; align-content: center; min-height: 2.75rem; border: 1px solid var(--stroke); border-radius: 7px; background: var(--white); padding: .38rem .5rem; font-weight: 700; font-size: .81rem; line-height: 1.3; }
.hit-product-jumps small { color: var(--muted); margin-top: .12rem; font-weight: 600; font-size: .76rem; }
.hit-product-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; align-items: baseline; }
.hit-product-head h3 { font-size: 1.18rem; letter-spacing: -.025em; scroll-margin-top: 1rem; }
.hit-product-head a, .hit-rank-link { font-size: .81rem; font-weight: 690; }
.hit-product-sources { display: flex; flex-wrap: wrap; gap: .35rem .9rem; }
.hit-product-sources a { display: inline-flex; align-items: center; min-height: 2rem; }
.hit-coverage { margin: .7rem 0; background: #f3f7fc; padding: .2rem .65rem; border-radius: 7px; }
.hit-coverage li { display: flex; flex-wrap: wrap; gap: .12rem .65rem; justify-content: space-between; border-top: 1px solid #dbe5f0; font-size: .83rem; padding: .35rem 0; }
.hit-has-match { color: #155841; font-weight: 750; }
.hit-no-match { color: #546278; font-weight: 650; }
.hit-product-state { margin-top: .5rem; font-size: .89rem; color: var(--muted); }
.hit-rank-link { margin-bottom: .55rem; }
.hit-pull-note { margin-bottom: .4rem; }
.hit-pulled { margin-bottom: .65rem; background: #faf2e8; border-radius: 7px; padding: .12rem .65rem; }
.hit-card { display: flex; align-items: baseline; justify-content: space-between; gap: .3rem 1.15rem; border-top: 1px solid #dbe5f0; padding: .55rem 0; overflow-wrap: anywhere; }
.hit-card-identity { display: grid; gap: .05rem; }
.hit-card-identity span, .hit-card-identity small { color: var(--muted); font-size: .8rem; }
.hit-card-identity span:empty { display: none; }
.hit-parallels { margin-top: .15rem; color: var(--muted); font-size: .8rem; }
.hit-parallels summary { color: var(--accent); font-weight: 700; }
.hit-parallels p { margin-top: .2rem; }
.hit-card-meta { display: flex; align-items: center; gap: .3rem .45rem; flex-wrap: wrap; justify-content: end; max-width: 56%; font-size: .8rem; color: #334c67; }
.hit-card-code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .78rem; }
.hit-tag { border-radius: 5px; background: #e7eff9; color: #234a75; font-size: .73rem; font-weight: 750; padding: .05rem .35rem; white-space: nowrap; }
.hit-tag--pulled { background: #f7ead9; color: #633b11; }
.hit-source-notes { font-size: .88rem; padding-block: .9rem 1.5rem; }
.hit-source-notes h2 { font-size: 1.17rem; margin-bottom: .3rem; }
.hit-source-notes ul { padding-left: 1.25rem; margin-bottom: 0; }
.hit-source-notes li + li { margin-top: .3rem; }
@media (max-width: 810px) {
  .hit-workspace { grid-template-columns: minmax(0, 1fr); }
  .hit-panel input[type="search"], .hit-panel textarea, .hit-panel select { font-size: 1rem; }
}
@media (max-width: 500px) {
  .hit-card { display: grid; }
  .hit-card-meta { justify-content: start; max-width: 100%; }
  .hit-filters select { max-width: min(10rem, 100%); }
  .top nav { gap: .65rem; }
}
.hit-box-format { display: flex; flex-wrap: wrap; align-items: end; gap: .4rem .85rem; margin-top: .7rem; }
.hit-box-format-control { display: grid; gap: .2rem; max-width: 100%; min-width: 0; }
.hit-box-format select { padding: .3rem .6rem; max-width: 100%; color: var(--ink); }
.hit-box-format > p { flex: 1 1 15rem; padding-bottom: .2rem; }
.hit-format-unavailable { margin-top: .45rem; }
.hit-format-summary { margin-block: .6rem; font-weight: 700; }
.hit-format-tag { padding: .05rem .35rem; border-radius: 5px; background: #e5f2ea; color: #22563d; font-size: .73rem; font-weight: 700; }
.hit-format-tag--unknown, .hit-format-tag--excluded { background: #eef1f6; color: #45536a; }
.hit-format-exclusions { margin-top: .65rem; padding: .12rem .65rem; border-radius: 7px; background: #f3f7fc; }
