.component-directory, .part-sheet {
  --part-ink: #152536;
  --part-muted: #556577;
  --part-accent: #174fb6;
  --part-accent-deep: #123b85;
  --part-line: #dce4ec;
  --part-paper: #f4f7fa;
  --component-columns: minmax(210px, 2.55fr) minmax(65px, .7fr) minmax(68px, .7fr) minmax(78px, .75fr) minmax(210px, 1.3fr);
  color: var(--part-ink);
  padding-block: 24px clamp(52px, 6vw, 88px);
}
.parts-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 11px;
  font-size: .86rem;
  color: var(--part-muted);
}
.parts-breadcrumb a:hover, .part-maker a:hover { color: var(--part-accent); text-decoration: underline; text-underline-offset: 3px; }
.directory-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  padding-block: clamp(22px, 3vw, 42px) 23px;
  border-bottom: 1px solid var(--part-line);
}
.directory-title h1, .part-sheet-title h1 {
  margin: 0;
  font-size: clamp(1.85rem, 3.25vw, 3.1rem);
  font-weight: 680;
  letter-spacing: -.035em;
  line-height: 1.18;
  overflow-wrap: anywhere;
}
.directory-title p, .part-sheet-title p { margin-top: 9px; color: var(--part-muted); }
.directory-query { overflow-wrap: anywhere; }
.directory-query strong { margin-inline-start: .4em; color: var(--part-ink); font-weight: 650; }
.directory-quote-link, .directory-export, .directory-reset, .part-purchase-links a {
  color: var(--part-accent);
  font-weight: 650;
  font-size: .87rem;
  border: 0;
  padding: 2px 0;
  background: none;
  line-height: 1.35;
  flex: none;
}
.directory-quote-link:hover, .directory-export:hover, .directory-reset:hover, .part-purchase-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.directory-title .directory-quote-link {
  padding: 9px 13px;
  border: 1px solid var(--part-line);
  border-radius: 4px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}
.directory-title .directory-quote-link:hover { background: var(--part-paper); text-decoration: none; }
.directory-layout {
  display: grid;
  grid-template-columns: minmax(150px, 16%) minmax(0, 1fr);
  align-items: start;
  gap: clamp(24px, 3vw, 46px);
  padding-top: 28px;
}
.directory-categories h2 { color: var(--part-ink); font-size: .9rem; font-weight: 650; padding: 11px 12px; margin-bottom: 2px; border-bottom: 1px solid var(--part-line); }
.directory-categories a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 9px 12px;
  color: var(--part-muted);
  border-left: 2px solid transparent;
  font-size: .89rem;
}
.directory-categories a[aria-current], .directory-categories a:hover { color: var(--part-accent); background: var(--part-paper); }
.directory-categories a[aria-current] { font-weight: 650; border-left-color: var(--part-accent); }
.directory-categories small { font-size: .8rem; font-variant-numeric: tabular-nums; }
.directory-search {
  display: flex;
  align-items: stretch;
  gap: 11px;
  background: #fff;
  border: 1px solid #aebdcd;
  border-radius: 4px;
  min-height: 47px;
}
.directory-search .icon { align-self: center; margin-left: 13px; width: 19px; height: 19px; color: var(--part-muted); }
.directory-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 8px 0;
  background: transparent;
  color: var(--part-ink);
}
.directory-search:focus-within { outline: 2px solid var(--part-accent); outline-offset: 1px; }
.directory-search input:focus-visible { outline: 0; }
.directory-search button, .component-quote {
  background: var(--part-accent);
  color: #fff;
  border: 0;
  border-radius: 3px;
  padding-inline: 21px;
  font-weight: 650;
}
.directory-search button { border-radius: 0 3px 3px 0; }
.directory-search button:hover, .component-quote:hover { background: var(--part-accent-deep); }
.directory-selects { margin-top: 13px; display: flex; flex-wrap: wrap; align-items: end; gap: 12px 17px; }
.directory-selects label { display: flex; gap: 8px; align-items: center; color: var(--part-muted); font-size: .875rem; min-width: 0; }
.directory-selects select {
  width: auto;
  max-width: 18rem;
  min-height: 36px;
  border: 1px solid var(--part-line);
  border-radius: 4px;
  color: var(--part-ink);
  background-color: white;
  padding: 4px 8px;
  font-size: .875rem;
}
.directory-selects .directory-category-select { display: none; }
.directory-summary { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin: 25px 0 12px; }
.directory-summary h2, .part-purchase h2, .part-specs h2 { font-size: clamp(1.12rem, 2vw, 1.47rem); font-weight: 670; letter-spacing: -.02em; }
.directory-summary h2 span { margin-inline-start: 6px; color: var(--part-muted); font-size: .875rem; font-variant-numeric: tabular-nums; font-weight: 500; vertical-align: middle; }
.directory-summary p, .part-sample { font-size: .875rem; color: var(--part-muted); margin-top: 5px; }
.directory-list { border-top: 1px solid var(--part-line); }
.directory-columns, .component-entry {
  display: grid;
  grid-template-columns: var(--component-columns);
  align-items: center;
  gap: 13px;
  padding-inline: 14px;
  border-bottom: 1px solid var(--part-line);
}
.directory-columns { padding-block: 10px; background: var(--part-paper); font-size: .875rem; color: var(--part-muted); font-weight: 600; }
.component-entry { padding-block: 15px; }
.component-entry:hover { background: #fafbfd; }
.component-id { display: flex; align-items: center; gap: 13px; min-width: 0; }
.component-id > div { min-width: 0; }
.component-preview, .component-symbol, .component-image { display: flex; align-items: center; justify-content: center; }
.component-preview {
  flex: 0 0 56px;
  height: 56px;
  overflow: hidden;
  border: 1px solid var(--part-line);
  border-radius: 4px;
  background: var(--part-paper);
}
.component-image { height: 100%; width: 100%; min-width: 0; min-height: 0; background: #fff; }
.component-image img { display: block; height: 100%; width: 100%; min-width: 0; min-height: 0; object-fit: contain; }
.component-symbol { width: 100%; height: 100%; color: #657b93; background: #edf2f7; }
.component-symbol .icon { width: 27px; height: 27px; stroke-width: 1.2; }
.cart-illustration .component-symbol, .cart-illustration .component-image { width: 48px; max-width: 100%; height: 48px; }
.component-maker, .component-entry small { display: block; color: var(--part-muted); font-size: .83rem; font-weight: 400; overflow-wrap: anywhere; }
.component-id h3 {
  font-family: "IBM Plex Mono", Consolas, "Microsoft YaHei", monospace;
  font-size: clamp(.97rem, 1.25vw, 1.09rem);
  font-weight: 700;
  letter-spacing: -.015em;
  margin: 3px 0;
  overflow-wrap: anywhere;
}
.component-id h3 a { color: var(--part-accent); }
.component-id h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.component-id p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
  color: var(--part-muted);
  font-size: .875rem;
}
.component-package span, .component-stock span, .component-price span { display: block; font-size: .94rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.component-stock span { font-weight: 650; }
.component-order { display: flex; align-items: stretch; gap: 5px; }
.component-order .qty-step { min-height: 37px; border-radius: 4px; width: 81px; grid-template-columns: 20px minmax(0, 1fr) 20px; border-color: #b9c7d5; }
.component-order .qty-step .qty { width: 100%; min-width: 0; color: var(--part-ink); }
.component-order .qty-step button { background: var(--part-paper); }
.component-order .qty-step button:hover { background: #e5edf7; }
.component-order .component-quote { padding: 5px 10px; font-size: .875rem; white-space: nowrap; }
.component-cart {
  display: grid;
  place-items: center;
  width: 37px;
  background: #fff;
  border: 1px solid #b9c7d5;
  border-radius: 4px;
  color: var(--part-accent);
}
.component-cart:hover { background: #edf3fb; }
.component-cart .icon { width: 17px; height: 17px; }
.component-cart span { display: none; }
.directory-empty { padding: 26px 20px; border: 1px solid var(--part-line); background: var(--part-paper); border-radius: 4px; }
.directory-empty p { color: var(--part-muted); margin: 9px 0 18px; }
.component-directory .pager .active { background: var(--part-paper); border-color: #aebdcd; color: var(--part-accent); }
.part-sheet-title { padding-block: clamp(23px, 3vw, 42px) 22px; border-bottom: 1px solid var(--part-line); }
.part-maker { margin: 0 0 8px; font-size: .9rem; font-weight: 650; color: var(--part-accent); overflow-wrap: anywhere; }
.part-sheet-title h1 { font-family: "IBM Plex Mono", Consolas, monospace; }
.part-sheet-title p { font-size: 1.06rem; overflow-wrap: anywhere; }
.part-sheet-body { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, 1fr); align-items: start; gap: clamp(22px, 3vw, 42px); padding-top: 24px; }
.part-photo {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  background: #fff;
  border: 1px solid var(--part-line);
  border-radius: 6px;
  padding: clamp(16px, 2vw, 28px);
}
.part-photo a { display: block; text-align: center; color: var(--part-accent); }
.part-photo img { display: block; width: auto; height: auto; max-width: 100%; max-height: min(58vh, 26rem); margin: 0 auto; object-fit: contain; cursor: zoom-in; }
.part-photo a span { display: inline-block; margin-top: 15px; font-size: .875rem; font-weight: 600; }
.part-photo a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.part-specs { grid-column: 1; grid-row: 1; min-width: 0; }
.has-photo .part-specs { grid-column: 1 / -1; grid-row: 2; }
.part-specs dl, .part-availability { margin: 15px 0 0; }
.part-specs dl { border-top: 1px solid var(--part-line); }
.part-specs dl > div { display: grid; grid-template-columns: minmax(105px, .56fr) minmax(0, 1fr); gap: 12px; padding: 12px; border-bottom: 1px solid var(--part-line); }
.part-specs dl > div:nth-child(odd) { background: #fafbfd; }
.part-specs dt, .part-availability dt, .part-order-label { color: var(--part-muted); font-size: .875rem; overflow-wrap: anywhere; }
.part-specs dd, .part-availability dd { margin: 0; overflow-wrap: anywhere; }
.part-specs dd { max-width: 75ch; }
.part-long-copy { margin-top: 22px; line-height: 1.8; white-space: pre-line; overflow-wrap: anywhere; }
.part-specs dd a { color: var(--part-accent); text-decoration: underline; text-underline-offset: 3px; }
.part-purchase {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  padding: clamp(18px, 2.5vw, 30px);
  background: var(--part-paper);
  border: 1px solid var(--part-line);
  border-radius: 6px;
}
.part-availability { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 18px; padding: 10px 0 17px; margin-bottom: 15px; border-bottom: 1px solid var(--part-line); }
.part-availability dd { font-weight: 650; font-size: clamp(1.18rem, 2.4vw, 1.7rem); font-variant-numeric: tabular-nums; line-height: 1.2; margin-top: 5px; }
.part-availability dd small { font-size: .76rem; font-weight: 450; }
.part-order-label { display: block; margin-bottom: 7px; }
.part-purchase .component-order { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 8px; }
.part-purchase .qty-step { grid-column: 1 / -1; min-height: 43px; width: 119px; grid-template-columns: 30px minmax(0, 1fr) 30px; }
.part-purchase .component-quote { padding-inline: 7px; font-size: .875rem; min-height: 43px; white-space: normal; }
.part-purchase .component-quote:last-child { grid-column: 1 / -1; }
.part-purchase .component-cart { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: auto; background: #fff; }
.part-purchase .component-cart span { display: inline; font-weight: 650; font-size: .875rem; }
.part-purchase-links { display: flex; flex-wrap: wrap; gap: 8px 17px; margin-top: 18px; }
.part-purchase-links a { font-size: .875rem; }
.part-related { margin-top: clamp(37px, 5vw, 72px); }

@media (min-width: 1131px) {
  .component-package small, .component-stock small, .component-price small {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}
@media (max-width: 1130px) {
  .directory-columns { display: none; }
  .directory-layout { grid-template-columns: 149px minmax(0, 1fr); gap: 24px; }
  .component-entry { grid-template-columns: minmax(177px, 1.8fr) repeat(3, minmax(65px, .7fr)); gap: 9px 13px; }
  .component-entry .component-order { grid-column: 2 / -1; }
  .component-entry .component-id { grid-row: span 2; }
}
@media (max-width: 820px) {
  .directory-layout { display: block; padding-top: 20px; }
  .directory-categories { display: none; }
  .directory-selects .directory-category-select { display: flex; }
  .part-sheet-body { grid-template-columns: minmax(0, 1fr) minmax(300px, 1fr); gap: 18px; }
}
@media (max-width: 640px) {
  .component-directory, .part-sheet { padding-top: 17px; }
  .directory-title { display: block; padding-block: 25px 22px; }
  .directory-title p { font-size: .92rem; }
  .directory-title .directory-quote-link { margin-top: 13px; }
  .directory-selects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
  .directory-selects label, .directory-selects .directory-category-select { display: grid; align-content: start; gap: 3px; }
  .directory-selects select { width: 100%; min-width: 0; min-height: 36px; }
  .directory-reset { justify-self: start; }
  .directory-summary { margin-top: 23px; }
  .component-entry { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 16px 2px; }
  .component-entry .component-id, .component-entry .component-order { grid-column: 1 / -1; grid-row: auto; }
  .component-id h3 { font-size: 1.06rem; }
  .component-preview { flex-basis: 50px; height: 50px; }
  .component-order .qty-step, .component-order .component-cart { min-height: 43px; }
  .component-entry .component-order { gap: 8px; }
  .component-entry .component-cart { display: flex; align-items: center; gap: 5px; width: auto; padding-inline: 10px; }
  .component-entry .component-cart span { display: inline; font-size: .875rem; font-weight: 650; }
  .part-sheet-body { grid-template-columns: 1fr; }
  .part-sheet-title h1 { font-size: clamp(1.65rem, 6.8vw, 2.1rem); }
  .part-sheet-body > *, .has-photo .part-specs { grid-column: 1; grid-row: auto; }
  .part-photo { padding: 12px; }
  .part-photo img { max-height: min(41vh, 21rem); }
  .part-photo a span { margin-top: 10px; }
  .part-specs dl > div { padding: 10px; }
}
@media (max-width: 370px) {
  .component-entry .component-order { gap: 5px; }
  .component-entry .component-cart { padding-inline: 7px; }
  .component-entry .component-cart .icon { display: none; }
}
