:root {
  color-scheme: light;
  --ink: #303037;
  --muted: #676774;
  --accent: #6742d6;
  --accent-dark: #49309c;
  --line: #e1e1e8;
  --soft: #f6f5fa;
  --amber: #875720;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: white;
  color: var(--ink);
}
a {
  color: var(--accent);
  text-underline-offset: 3px;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
select,
input[type='checkbox'],
input[type='radio'] {
  cursor: pointer;
}
button {
  border: 0;
  background: transparent;
}
button:hover,
a:hover {
  color: var(--accent-dark);
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
button,
a,
input,
select,
[tabindex] {
  outline-offset: 3px;
}
:focus-visible {
  outline: 2px solid var(--accent);
}
[hidden] {
  display: none !important;
}
.sr-only,
.category-field legend {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: fixed;
  top: -100px;
  z-index: 10;
  background: white;
  padding: 12px;
}
.skip:focus {
  top: 8px;
}
.site-header {
  min-height: 62px;
  padding: 10px 20px;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  background: var(--accent);
  color: white;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-size: 22px;
  font-weight: 650;
  text-decoration: none;
}
.wordmark:hover {
  color: white;
}
.logo {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  background: var(--accent-dark);
  border-radius: 50%;
  font-size: 31px;
  font-weight: 400;
}
.edition {
  margin-left: 10px;
  font-size: 12px;
  font-weight: 400;
  opacity: 0.85;
}
nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
nav button,
nav a {
  padding: 9px 12px;
  border: 1px solid #ffffff55;
  border-radius: 5px;
  color: white;
  text-decoration: none;
}
nav button:hover,
nav a:hover {
  background: var(--accent-dark);
  color: white;
}
.intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}
.intro > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
h1 {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
}
.intro p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.catalog-stamp {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  white-space: nowrap;
}
#checked-date {
  color: var(--muted);
  margin-left: 8px;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.workspace {
  display: flex;
  flex-direction: column;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
#categories {
  display: flex;
  gap: 4px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.category-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 12px 11px;
  border-bottom: 3px solid transparent;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
}
.category-option input {
  position: absolute;
  opacity: 0;
}
.category-option:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: -3px;
}
.category-option:has(input:checked) {
  color: var(--accent);
  background: var(--soft);
  border-bottom-color: var(--accent);
  font-weight: 600;
}
.category-option:hover {
  background: var(--soft);
}
.family-mark {
  display: none;
}
.family-count {
  font-size: 11px;
  color: var(--muted);
  border-radius: 3px;
  background: #eceaf1;
  padding: 1px 5px;
}
#toggle-filters {
  display: none;
}
#advanced-filters {
  padding: 12px 20px 10px;
  border-bottom: 1px solid var(--line);
}
.filter-fields {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.filter-fields label {
  display: grid;
  gap: 6px;
  font-size: 12px;
}
select,
input[type='number'] {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  background: white;
  border-radius: 5px;
  padding: 9px 10px;
  font-size: 13px;
}
input:disabled {
  background: #f5f5f7;
  color: var(--muted);
}
input::placeholder {
  color: #81818c;
}
.check-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 10px;
}
.check-filters label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--muted);
}
input[type='checkbox'] {
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
  margin: 0;
  flex-shrink: 0;
}
.catalog {
  padding: 0 20px;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0 0;
}
.search {
  display: flex;
  flex: 1;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0 10px;
  background: white;
}
.search:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.search span {
  font-size: 23px;
  color: var(--muted);
}
.search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  padding: 10px 0;
  font-size: 13px;
}
.primary,
.secondary {
  border-radius: 5px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 550;
  white-space: nowrap;
}
.primary {
  color: white;
  background: var(--accent);
}
.primary:hover {
  color: white;
  background: var(--accent-dark);
}
.secondary {
  background: white;
  border: 1px solid var(--line);
}
.secondary:hover {
  background: var(--soft);
}
.text-button {
  padding: 0;
  font-size: inherit;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.results-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  font-size: 11px;
}
.results-line p {
  margin: 0;
  color: var(--muted);
}
.results-line p strong {
  color: var(--ink);
}
.results-line label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  white-space: nowrap;
}
.results-line select {
  width: auto;
  font-size: 11px;
  padding: 5px 8px;
}
.notice {
  display: flex;
  gap: 8px;
  align-items: baseline;
  border-top: 1px solid var(--line);
  padding: 9px 0;
}
.notice > span {
  color: var(--muted);
}
.notice p {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
}
.notice strong {
  font-weight: 600;
}
.notice button {
  white-space: nowrap;
  margin-left: 4px;
}
.table-wrap {
  overflow: auto;
  background: white;
  border: 1px solid var(--line);
}
.catalog > .table-wrap {
  max-height: max(350px, calc(100dvh - 410px));
}
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  text-align: left;
}
#motor-table {
  min-width: 1050px;
}
th {
  background: #f6f6f9;
  padding: 10px 12px;
  border-bottom: 2px solid var(--line);
  border-right: 1px solid var(--line);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}
th:last-child {
  border-right: 0;
}
#motor-table th {
  position: sticky;
  top: 0;
  z-index: 2;
}
th > span:not(.sr-only) {
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
  margin-left: 4px;
}
td {
  padding: 6px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
tr:last-child td {
  border-bottom: 0;
}
#motor-table th:first-child,
#motor-table td:first-child {
  width: 32px;
  padding-right: 0;
}
#motor-table td:nth-child(2) {
  min-width: 235px;
  max-width: 340px;
}
#motor-table td:last-child {
  min-width: 145px;
}
tbody tr:hover td {
  background-color: #f8f6ff;
}
tbody tr.selected td {
  background-color: #f0eaff;
}
.product {
  display: flex;
  align-items: center;
}
.product-icon {
  display: none;
}
.motor-name {
  text-align: left;
  display: block;
  padding: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 550;
  line-height: 1.4;
}
.motor-name:hover {
  text-decoration: underline;
}
.sub {
  display: block;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
  margin-top: 1px;
}
.number {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.basis {
  display: inline-block;
  color: var(--muted);
  font-size: 10px;
  margin-left: 5px;
}
.basis.caution {
  color: var(--amber);
}
.tag {
  display: inline-block;
  padding: 2px 5px;
  border: 1px solid #e1d9f6;
  background: #f4f0ff;
  color: #6945b1;
  border-radius: 3px;
  font-size: 10px;
  white-space: nowrap;
}
.tag.external {
  background: #f6f6f8;
  color: var(--muted);
  border-color: var(--line);
}
.price {
  font-size: 13px;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}
.offer-link {
  display: block;
  font-size: 10px;
  text-decoration: none;
  line-height: 1.3;
  margin-top: 1px;
}
.offer-link:hover {
  text-decoration: underline;
}
.stock-note {
  color: var(--amber);
}
.table-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  color: var(--muted);
  font-size: 10px;
}
.catalog-note {
  margin: 2px 0 14px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}
.empty {
  text-align: center;
  padding: 55px 20px;
  border: 1px solid var(--line);
}
.empty > span {
  color: var(--muted);
  font-size: 35px;
}
h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}
.empty h2 {
  font-size: 18px;
  margin-top: 10px;
}
.empty p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 20px;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px 85px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
}
footer strong {
  color: var(--ink);
}
footer a {
  margin-left: 12px;
}
.compare-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  padding: 12px 16px;
  background: white;
  border: 1px solid #cfc0f4;
  box-shadow: 0 4px 24px #35215f26;
  border-radius: 7px;
  z-index: 4;
}
.compare-bar > div {
  display: flex;
  align-items: center;
  gap: 12px;
}
.compare-bar > div:first-child {
  display: grid;
  gap: 3px;
}
.compare-bar strong {
  font-size: 12px;
  white-space: nowrap;
}
.compare-bar span {
  font-size: 10px;
  color: var(--muted);
}
.compare-bar button:not(.primary) {
  font-size: 12px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  color: var(--ink);
  max-height: 90dvh;
  width: min(660px, calc(100% - 32px));
  box-shadow: 0 15px 80px #251b4933;
}
dialog::backdrop {
  background: #29243e70;
}
.dialog-header {
  position: sticky;
  top: -24px;
  z-index: 3;
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  margin: -12px 0 16px;
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1px;
}
.dialog-header .eyebrow {
  margin-bottom: 0;
}
.dialog-header h2 {
  margin-top: 6px;
}
.close {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  font-size: 25px;
  color: var(--muted);
}
.close:hover {
  background: var(--soft);
}
#detail {
  margin-right: 20px;
  width: min(580px, calc(100% - 32px));
}
#detail-title {
  font-size: 24px;
  line-height: 1.3;
  margin-top: 8px;
}
.detail-description {
  color: var(--muted);
  line-height: 1.6;
  font-size: 13px;
}
.detail-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
  margin: 20px 0;
}
.detail-specs > div {
  border-top: 1px solid var(--line);
  padding: 10px 0;
}
.detail-specs dt {
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 5px;
}
.detail-specs dd {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.detail-section {
  margin-top: 20px;
}
.detail-section h3 {
  font-size: 13px;
  margin-bottom: 8px;
}
.detail-section p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}
.offer-card {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 14px;
  margin-top: 10px;
}
.offer-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}
.offer-card .meta {
  font-size: 11px;
  line-height: 1.7;
  margin-top: 8px;
}
.offer-card p {
  font-size: 11px;
}
.sources {
  padding-left: 17px;
  font-size: 12px;
  line-height: 1.8;
}
.sources li {
  margin-bottom: 6px;
}
.guide-list dt {
  font-weight: 600;
  font-size: 13px;
  margin-top: 20px;
}
.guide-list dd {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}
#comparison {
  width: min(1150px, calc(100% - 32px));
}
.compare-warning {
  background: var(--soft);
  padding: 10px;
  font-size: 12px;
  line-height: 1.6;
}
.comparison-table {
  table-layout: fixed;
  min-width: 600px;
}
.comparison-table th {
  width: 210px;
  vertical-align: top;
  font-size: 12px;
  white-space: normal;
  line-height: 1.5;
}
.comparison-table th:first-child {
  width: 140px;
}
.comparison-table th > span {
  display: block;
  margin-left: 0;
}
.comparison-table td {
  vertical-align: top;
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.comparison-table td:first-child {
  color: var(--muted);
  font-size: 11px;
}
.comparison-table .notes-cell {
  font-size: 11px;
}
.comparison-table .remove {
  display: block;
  color: var(--accent);
  font-size: 10px;
  padding: 0;
  margin-top: 6px;
  text-decoration: underline;
}
.noscript {
  margin: 20px;
  padding: 20px;
  background: #fff5db;
}
@media (max-width: 1150px) {
  .edition,
  .intro p {
    display: none;
  }
  #categories {
    padding: 0 8px;
  }
  .category-option {
    padding-left: 10px;
    padding-right: 10px;
    font-size: 12px;
  }
  .filter-fields {
    gap: 8px;
  }
  .filter-fields label {
    font-size: 11px;
  }
  .filter-fields select,
  .filter-fields input {
    padding: 8px 5px;
    font-size: 12px;
  }
}
@media (max-width: 760px) {
  .site-header {
    min-height: 58px;
    padding: 10px 12px;
    gap: 10px;
  }
  .wordmark {
    font-size: 19px;
    gap: 7px;
  }
  .logo {
    width: 30px;
    height: 30px;
    font-size: 27px;
  }
  nav a {
    display: none;
  }
  nav button {
    font-size: 11px;
    padding: 8px;
  }
  .intro {
    padding: 10px 12px;
    display: block;
  }
  h1 {
    font-size: 13px;
  }
  .catalog-stamp {
    margin-top: 5px;
    font-size: 10px;
  }
  #checked-date {
    margin-left: auto;
  }
  #categories {
    flex-wrap: wrap;
    gap: 0;
    padding: 4px 6px 0;
  }
  .category-option {
    padding: 8px 7px 6px;
    gap: 4px;
    font-size: 11px;
  }
  .family-count {
    font-size: 9px;
    padding: 1px 3px;
  }
  #toggle-filters {
    display: block;
    margin: 10px 12px;
    font-size: 12px;
  }
  #toggle-filters[aria-expanded='false'] + #advanced-filters {
    display: none;
  }
  #advanced-filters {
    padding: 0 12px 12px;
  }
  .filter-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .filter-fields input,
  .filter-fields select {
    padding: 9px 7px;
  }
  .check-filters {
    gap: 12px;
  }
  .catalog {
    padding: 0 12px;
  }
  .toolbar {
    flex-wrap: wrap;
    padding-top: 0;
  }
  .search {
    flex-basis: 100%;
  }
  .toolbar .secondary {
    font-size: 11px;
    padding: 8px 10px;
  }
  .results-line {
    gap: 6px;
    font-size: 10px;
  }
  .results-line select {
    max-width: 130px;
    font-size: 10px;
  }
  .notice p {
    font-size: 10px;
  }
  .catalog > .table-wrap {
    max-height: 65dvh;
  }
  #motor-table th:nth-child(2),
  #motor-table td:nth-child(2) {
    position: sticky;
    left: 0;
    background: white;
    z-index: 1;
    min-width: 165px;
    max-width: 165px;
    border-right: 1px solid var(--line);
  }
  #motor-table th:nth-child(2) {
    z-index: 3;
    background: #f6f6f9;
  }
  #motor-table tr.selected td:nth-child(2) {
    background: #f0eaff;
  }
  .motor-name {
    font-size: 12px;
  }
  td {
    padding: 9px 10px;
  }
  .table-footer {
    flex-direction: column;
    gap: 5px;
  }
  footer {
    display: block;
    padding: 12px 12px 90px;
    font-size: 10px;
  }
  footer > span {
    display: block;
    margin-bottom: 6px;
  }
  footer a {
    margin-left: 8px;
  }
  .compare-bar {
    width: calc(100% - 24px);
    gap: 8px;
    padding: 10px;
    bottom: 12px;
  }
  .compare-bar > div {
    gap: 8px;
  }
  .compare-bar span {
    display: none;
  }
  .compare-bar .primary {
    font-size: 11px;
    padding: 10px;
  }
  dialog {
    padding: 16px;
  }
  .dialog-header {
    top: -16px;
  }
  #detail {
    margin: auto;
  }
  .detail-specs {
    gap: 0 14px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button,
  a {
    transition:
      background-color 0.12s,
      color 0.12s;
  }
}
