/* Compact engineering workspaces */
.tool-wrap {
  max-width: 1180px;
}
.tool-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 22px;
}
.tool-tabs a {
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
}
.tool-tabs a.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.tool-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 22px;
}
.tool-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 20px;
}
.tool-panel h2 {
  font-size: 18px;
  margin: 0 0 8px;
}
.tool-panel-head p,
.tool-panel .muted {
  font-size: 12px;
  line-height: 1.7;
}
.tool-panel-head p {
  margin: 0;
  color: var(--muted-fg);
}
.tool-filters {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
  margin: 16px 0;
}
.tool-filters label {
  flex: 1;
  min-width: 150px;
  font-size: 12px;
  color: var(--muted-fg);
}
.tool-filters .input,
.tool-contact-grid .input,
.tool-note .input {
  display: block;
  width: 100%;
  margin-top: 7px;
}
.tool-filters select {
  height: 42px;
}
.parameter-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  max-height: 220px;
  overflow: auto;
  background: #f6f9fc;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
}
.parameter-filters label {
  font-size: 11px;
  color: var(--muted-fg);
  width: 180px;
  max-width: 100%;
}
.parameter-filters select {
  width: 100%;
  display: block;
  margin-top: 6px;
  font-size: 12px;
}
.table-scroll {
  overflow: auto;
  max-width: 100%;
}
.tool-results {
  font-size: 12px;
  min-width: 700px;
}
.tool-results small,
.tool-panel td small {
  display: block;
  color: var(--muted-fg);
  margin-top: 5px;
}
.tool-row-actions {
  white-space: nowrap;
}
.tool-row-actions button {
  margin: 3px;
}
.tool-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  font-size: 12px;
}
.tool-pagination > div {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tool-empty {
  padding: 22px;
  color: var(--muted-fg);
  font-size: 13px;
}
.tool-notice {
  padding: 14px 18px;
  border: 1px solid #b6dfce;
  background: #edf8f2;
  color: #206c50;
  border-radius: 8px;
  margin-bottom: 20px;
  overflow-wrap: anywhere;
}
.tool-notice:empty {
  display: none;
}
.tool-notice.error {
  background: #fff2f0;
  color: #a33328;
  border-color: #edc5be;
}
.compare-table {
  font-size: 12px;
  min-width: 650px;
  table-layout: fixed;
}
.compare-table th {
  min-width: 140px;
}
.compare-table .different {
  background: #f0f7ff;
}
.tool-remove {
  border: 0;
  background: transparent;
  font-size: 11px;
  color: #8b5b59;
  display: block;
  padding: 8px 0;
  cursor: pointer;
}
.bom-text {
  display: block;
  width: 100%;
  font-family: ui-monospace, Consolas, monospace;
  margin-top: 10px;
  line-height: 1.8;
}
.tool-form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.tool-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.tool-contact-grid label,
.tool-note {
  font-size: 13px;
}
.tool-note {
  display: block;
  margin-top: 20px;
}
.tool-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 18px;
  font-size: 12px;
  color: var(--muted-fg);
}
.quantity-input {
  width: 110px;
}
.inquiry-receipt {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
  margin-top: 12px;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.inquiry-receipt p {
  margin: 8px 0;
}
.inquiry-receipt small {
  color: var(--muted-fg);
}
.receipt-status {
  float: right;
  background: #ecf6ff;
  color: #286499;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 11px;
}
.match-ok {
  color: #207450;
}
.match-error {
  color: #b14135;
}
.tool-form-actions button:disabled,
.tool-pagination button:disabled {
  opacity: 0.45;
  cursor: wait;
}
.compact-product .wrap {
  max-width: 1100px;
}
.compact-product .layout-side {
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 28px;
}
.compact-product .section-tight {
  padding: 28px 0;
}
.compact-product .spec {
  font-size: 13px;
  line-height: 1.6;
}
.compact-product .spec th,
.compact-product .spec td {
  padding: 9px 14px;
}
.compact-product .product-body h2 {
  font-size: 17px !important;
}
.compact-product .product-summary {
  font-size: 14px;
  line-height: 1.8 !important;
  margin-bottom: 20px !important;
}
.compact-product .product-image {
  max-width: 280px;
  margin: 0 auto 20px !important;
  padding: 12px !important;
}
.compact-product .product-image img {
  max-height: 150px !important;
  max-width: 100%;
}
.product-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.product-description {
  margin-top: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 18px;
}
.product-description summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}
.product-description .prose {
  font-size: 13px;
  margin-top: 18px;
  overflow-wrap: anywhere;
}
.product-description table {
  max-width: 100%;
  display: block;
  overflow: auto;
}
.compact-product .grid.g-2 {
  gap: 12px;
}
.compact-product .grid.g-2 img {
  max-height: 260px;
  object-fit: contain;
}
.about-contact {
  border-top: 1px solid var(--border);
  padding-top: 32px;
  margin-top: 36px;
  scroll-margin-top: 100px;
}
.about-contact .layout-side {
  grid-template-columns: 260px minmax(0, 1fr);
}
.nav > li > a {
  white-space: nowrap;
}
.nav .tools-mega {
  grid-template-columns: 1fr;
  min-width: 300px;
  width: 360px;
  max-width: 90vw;
}
.nav .tools-mega .mega-col a {
  display: block;
}
.tool-catalog-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.tool-catalog-links a {
  font-size: 13px;
}
.table-scroll .spec {
  margin-bottom: 0;
}
@media (max-width: 760px) {
  .tool-panel {
    padding: 16px;
  }
  .tool-tabs {
    gap: 6px;
  }
  .tool-tabs a {
    padding: 8px 11px;
    font-size: 12px;
  }
  .tool-filters label {
    min-width: 120px;
  }
  .tool-panel-head {
    flex-wrap: wrap;
  }
  .tool-contact-grid {
    grid-template-columns: 1fr;
  }
  .tool-pagination {
    flex-wrap: wrap;
  }
  .compact-product .layout-side,
  .about-contact .layout-side {
    grid-template-columns: minmax(0, 1fr);
  }
  .compact-product .layout-side > aside {
    order: 2;
  }
  .compact-product .spec th {
    width: 40% !important;
  }
  .tool-results {
    min-width: 620px;
  }
  .tool-wrap {
    overflow-wrap: anywhere;
  }
  .compact-product .side-nav {
    display: none;
  }
  .about-contact {
    padding-top: 24px;
  }
}

.nav > li:focus-within > .mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.legacy-media-missing {
  display: block;
  padding: 12px 16px;
  margin: 12px 0;
  background: #f7f8fa;
  border: 1px dashed #d6dee7;
  border-radius: 6px;
  color: #8793a3;
  font-size: 12px;
}
@media (min-width: 1050px) {
  .compact-product .product-parameters {
    display: block;
  }
  .compact-product .product-parameters tbody {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
  }
  .compact-product .product-parameters tr {
    display: grid;
    grid-template-columns: 44% minmax(0, 1fr);
    border-bottom: 1px solid var(--border);
  }
  .compact-product .product-parameters th {
    width: 100% !important;
    overflow-wrap: anywhere;
  }
  .compact-product .product-parameters td {
    border: 0;
    overflow-wrap: anywhere;
  }
}
