.hardware-library-link { display: inline-flex; align-items: center; padding: 9px 0; color: #087d77; font-weight: 700; }
.flow-node { cursor: pointer; font-family: inherit; scroll-margin-top: 120px; }
.flow-node:hover, .flow-node:focus-visible { outline: 2px solid #087d77; outline-offset: 3px; }
.flow-node small { display: block; margin-top: 8px; font-size: 10px; font-weight: 500; }
.hardware-module-button { display: block; width: 100%; padding: 0; border: 0; color: inherit; background: none; text-align: left; font: inherit; cursor: pointer; }
.hardware-module-button:hover strong { color: #087d77; text-decoration: underline; }
.hardware-module-button:focus-visible { outline: 2px solid #087d77; outline-offset: 3px; }
.hardware-module-button small { display: block; color: #087d77; margin-top: 8px; font-size: 10px; }
.controller-row .hardware-module-button { margin-top: 10px; color: #087d77; font-size: 12px; }
.hardware-page { padding-top: 28px; padding-bottom: 40px; }
.hardware-page h1 { font-size: 28px; margin: 8px 0 16px; }
.hardware-toolbar { display: grid; grid-template-columns: minmax(200px, 1fr) 180px 190px; gap: 12px; margin: 20px 0; }
.hardware-toolbar label { min-width: 0; font-size: 12px; font-weight: 700; }
.hardware-toolbar input, .hardware-toolbar select { display: block; width: 100%; height: 42px; margin-top: 6px; border: 1px solid #b7c6ca; border-radius: 4px; background: #fff; color: #192b31; padding: 8px 10px; font: inherit; }
.hardware-count { color: #526770; font-size: 12px; }
.hardware-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hardware-card { min-width: 0; border: 1px solid #c6d1d5; border-radius: 4px; overflow: hidden; background: #fff; }
.hardware-card-button { width: 100%; height: 100%; display: flex; flex-direction: column; padding: 0; border: 0; color: #192b31; background: none; text-align: left; font: inherit; cursor: pointer; }
.hardware-card-button:hover, .hardware-card-button:focus-visible { outline: 2px solid #087d77; outline-offset: -2px; background: #f0f8f7; }
.hardware-photo { position: relative; flex: none; display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: #fff; border-bottom: 1px solid #e3e9eb; padding: 15px; }
.hardware-photo img { position: absolute; inset: 15px; width: calc(100% - 30px); height: calc(100% - 30px); object-fit: contain; }
.hardware-photo span { display: none; color: #61737b; font-size: 12px; text-align: center; }
.hardware-photo.unavailable img { display: none; }
.hardware-photo.unavailable span { display: block; }
.hardware-photo.loading span { display: block; }
.hardware-photo.loading img { visibility: hidden; }
.hardware-card-copy { padding: 14px; }
.hardware-card-copy p { margin: 0 0 6px; color: #65777e; font-size: 11px; }
.hardware-card-copy strong { display: block; font-size: 14px; line-height: 1.4; }
.hardware-card-copy code { display: block; margin: 8px 0; color: #40565f; font-size: 11px; overflow-wrap: anywhere; }
.hardware-card-copy small { font-size: 11px; color: #087d77; }
.hardware-boundary { margin: 18px 0; padding: 12px 14px; border-left: 3px solid #ad7a18; background: #fff8e6; color: #705419; font-size: 12px; line-height: 1.6; }
.hardware-empty { padding: 24px 0; color: #65777e; }
.hardware-dialog { width: min(1100px, calc(100% - 32px)); max-height: calc(100dvh - 40px); padding: 0; border: 1px solid #b7c6ca; border-radius: 6px; background: #fff; color: #192b31; }
.hardware-dialog::backdrop { background: rgb(12 24 29 / 55%); }
.hardware-dialog-header { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 20px; border-bottom: 1px solid #c6d1d5; background: #fff; }
.hardware-dialog-header h2 { margin: 0; font-size: 18px; }
.hardware-close { flex: none; border: 1px solid #b7c6ca; border-radius: 4px; background: #fff; color: #192b31; padding: 8px 12px; cursor: pointer; font: inherit; }
.hardware-dialog-body { display: grid; grid-template-columns: 310px minmax(0, 1fr); min-height: 360px; }
.hardware-candidate-list { padding: 14px; border-right: 1px solid #c6d1d5; max-height: 65dvh; overflow-y: auto; }
.hardware-candidate-list h3 { margin: 16px 0 8px; color: #61737b; font-size: 12px; }
.hardware-candidate { display: block; width: 100%; margin: 6px 0; padding: 12px; border: 1px solid #c6d1d5; border-radius: 4px; background: #fff; color: #192b31; text-align: left; cursor: pointer; font: inherit; font-size: 12px; }
.hardware-candidate[aria-pressed="true"] { border-color: #087d77; background: #eef8f6; }
.hardware-candidate strong, .hardware-candidate code { display: block; overflow-wrap: anywhere; }
.hardware-candidate code { margin: 4px 0; font-size: 10px; color: #526770; }
.hardware-detail { min-width: 0; padding: 20px; }
.hardware-detail .hardware-photo { aspect-ratio: 16 / 7; border: 1px solid #e3e9eb; margin-bottom: 14px; }
.hardware-detail h3 { margin: 8px 0; font-size: 20px; }
.hardware-detail > p { font-size: 12px; color: #526770; }
.hardware-fields { display: grid; grid-template-columns: 100px minmax(0, 1fr); margin: 12px 0; font-size: 12px; line-height: 1.5; }
.hardware-fields dt, .hardware-fields dd { margin: 0; padding: 8px 0; border-bottom: 1px solid #e3e9eb; overflow-wrap: anywhere; }
.hardware-fields dt { color: #61737b; }
.hardware-resource-links { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0; }
.hardware-resource-links a, .hardware-resource-links button { display: inline-flex; padding: 9px 12px; border: 1px solid #b7c6ca; border-radius: 4px; color: #087d77; background: #fff; font-size: 12px; font-weight: 700; }
.inventory-table-wrap { overflow: auto; margin-top: 20px; }
.inventory-table { border-collapse: collapse; width: 100%; font-size: 13px; }
.inventory-table th, .inventory-table td { padding: 12px; border-bottom: 1px solid #c9d3d7; text-align: left; overflow-wrap: anywhere; }
.inventory-table button { padding: 0; border: 0; background: none; color: #087d77; text-align: left; font-weight: 700; }
.inventory-heading { margin-top: 32px; padding-top: 24px; border-top: 1px solid #c9d3d7; }
.inventory-inspector { padding: 20px 0; overflow-wrap: anywhere; }
.hardware-constraints { padding-left: 18px; font-size: 12px; line-height: 1.7; color: #705419; }
.hardware-coverage { border-top: 1px solid #c6d1d5; margin-top: 28px; padding-top: 16px; font-size: 12px; color: #526770; }
.hardware-coverage ul { columns: 3; padding-left: 18px; line-height: 1.8; }
body.hardware-modal-open { overflow: hidden; }
@media (max-width: 1100px) { .hardware-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .hardware-toolbar { grid-template-columns: 1fr 1fr; }
  .hardware-toolbar label:first-child { grid-column: 1 / -1; }
  .hardware-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hardware-card-copy { padding: 10px; }
  .hardware-card-copy strong { font-size: 12px; }
  .hardware-photo { padding: 10px; }
  .hardware-photo img { inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); }
  .hardware-dialog { width: calc(100% - 16px); max-height: calc(100dvh - 16px); }
  .hardware-dialog-body { grid-template-columns: minmax(0, 1fr); }
  .hardware-candidate-list { max-height: 180px; border-right: 0; border-bottom: 1px solid #c6d1d5; }
  .hardware-candidate { padding: 9px; }
  .hardware-detail { padding: 14px; }
  .hardware-detail .hardware-photo { aspect-ratio: 4 / 3; }
  .hardware-fields { grid-template-columns: 85px minmax(0, 1fr); }
  .hardware-coverage ul { columns: 1; }
}
.engineering-packet { border-top: 1px solid #bccbd0; margin-top: 20px; padding-top: 12px; }
.engineering-packet h4 { font-size: 16px; margin: 0 0 8px; }
.engineering-packet ul { list-style: none; padding: 0; }
.engineering-packet li { display: grid; gap: 6px; padding: 10px 0; border-bottom: 1px solid #dae2e5; }
.engineering-packet a, .engineering-packet code { overflow-wrap: anywhere; }
.engineering-packet small { color: #54666d; }
.case-gap-details li { overflow-wrap: anywhere; margin: 8px 0; }
.case-check-heading { margin: 32px 0; }
