#chips, #suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
}
#chips { margin: -.25rem 0 1rem; }
.filter-chip, #suggestions a {
  border-radius: 999px;
  padding: .45rem .8rem;
  font-size: .865rem;
  line-height: 1.25;
}
.filter-chip { background: #e8efef; border: 1px solid #becbcd; color: #233740; }
#suggestions { justify-content: center; margin: 1rem auto; }
#suggestions span { width: 100%; color: var(--muted); font-size: .9rem; }
#suggestions a { background: white; border: 1px solid var(--line); }
#panel:has(.spec-table) { width: min(1050px, 96vw); }
.difference-toggle { display: inline-flex; gap: .5rem; align-items: center; min-height: 44px; margin-bottom: .5rem; }
.difference-toggle input { width: 1.1rem; height: 1.1rem; accent-color: #9f371d; }
.table-scroll { overflow-x: auto; overscroll-behavior-x: contain; }
.spec-table { border-spacing: 0; width: 100%; font-size: .91rem; }
.spec-table th, .spec-table td { min-width: 9.5rem; padding: .7rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.spec-table thead th { font-size: .96rem; background: #f3f5f4; }
.spec-table th:first-child { width: 8rem; min-width: 7rem; }
.spec-table thead img { height: 5rem; width: 6rem; object-fit: contain; display: block; margin-bottom: .5rem; }
.spec-table thead a { display: block; }
.compare-remove { padding: .4rem 0; text-decoration: underline; font-size: .8rem; color: #495963; }
.spec-table tbody .different { background: #fff3e8; }
.spec-table tbody .different th { border-left: 3px solid #c86234; }
.spec-table .missing-spec { color: #59646b; font-style: italic; }
#sticky-compare { display: none; }
@media (max-width: 780px) {
  button[data-compare], button[data-save] { min-width: 44px; min-height: 44px; }
  .card button[data-compare] { padding: .25rem .4rem; }
  #sticky-compare:not([hidden]) {
    display: block; position: fixed; bottom: max(.8rem, env(safe-area-inset-bottom)); left: 50%;
    transform: translateX(-50%); z-index: 8; width: max-content; max-width: 90vw;
    min-height: 46px; padding: .65rem 1.3rem; border: 1px solid #172027;
    border-radius: 99px; background: #172027; color: white; font-weight: 700;
    box-shadow: 0px 4px 16px #13242e3b;
  }
  body.has-compare-bar { padding-bottom: max(4.5rem, calc(3.75rem + env(safe-area-inset-bottom))); }
  .table-scroll { margin: 0 -.3rem; }
  .spec-table th, .spec-table td { min-width: 8rem; padding: .65rem .5rem; }
  .spec-table th:first-child { min-width: 6rem; max-width: 7rem; }
  .compare-remove, .filter-chip { min-height: 44px; }
}
