/* 零件庫 */
.cat-layout { display: grid; grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); gap: var(--space-6); margin-top: var(--space-8); align-items: start; }
@media (max-width: 820px) { .cat-layout { grid-template-columns: minmax(0, 1fr); } }

.cat-list input { width: 100%; min-height: 44px; padding: 0 12px; background: var(--bg); color: var(--fg); border: var(--stroke-hair) solid var(--line); border-radius: var(--radius-sm); font: 500 15px/1 var(--font-head); }
.cat-groups h2 { margin: 16px 0 6px; font: 700 13px/1.2 var(--font-head); color: var(--muted); }
.cat-groups ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.cat-groups a { display: flex; justify-content: space-between; gap: 6px; padding: 8px 10px; color: var(--fg); text-decoration: none; font: 600 15px/1.3 var(--font-head); border-left: 3px solid transparent; }
.cat-groups a:hover { background: var(--bg); }
.cat-groups a[aria-current="page"] { background: var(--bg); border-left-color: var(--accent); }
.cat-groups small { color: var(--st-warn); font-size: 12px; white-space: nowrap; }
@media (min-width: 821px) { .cat-list { position: sticky; top: 16px; max-height: calc(100dvh - 32px); overflow-y: auto; } }

.cat-detail h2 { margin: 4px 0 6px; font: 900 clamp(24px, 3vw, 32px)/1.2 var(--font-head); }
.cat-detail h3 { margin: 22px 0 10px; font: 800 17px/1.2 var(--font-head); }
.cat-detail .row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.cat-detail .row button, .cat-detail .row a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; background: var(--bg); color: var(--fg); border: var(--stroke-hair) solid var(--line); border-radius: var(--radius-sm); font: 600 15px/1 var(--font-head); text-decoration: none; cursor: pointer; }
.cat-detail .row button.primary { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.cat-detail .row a:hover, .cat-detail .row button:hover { border-color: var(--accent); }

.notes { margin-top: 18px; padding: 12px 16px; background: var(--bg); border-left: 4px solid var(--st-warn); }
.notes h3 { margin-top: 0; }
.notes ul { margin: 0; padding-left: 20px; font: 500 15px/1.6 var(--font-head); }

.specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; margin: 0; }
.specs div { padding: 8px 10px; background: var(--bg); border: var(--stroke-hair) solid var(--line); }
.specs dt { font: 600 13px/1.3 var(--font-head); color: var(--muted); }
.specs dd { margin: 4px 0 0; font: 600 15px/1.4 var(--font-head); }
.specs .missing dd { color: var(--st-unknown); font-weight: 500; }
.specs dd.see { color: var(--accent-text); font-weight: 500; }

.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font: 500 14px/1.45 var(--font-head); }
.tbl th, .tbl td { padding: 7px 8px; border-bottom: var(--stroke-hair) solid var(--line); text-align: left; vertical-align: top; }
.tbl th { font-weight: 700; color: var(--muted); white-space: nowrap; }
.tbl small { display: block; color: var(--muted); font-size: 12px; }

.mount-svg { max-width: 560px; background: #fff; border: var(--stroke-hair) solid var(--line); }
.mount-svg svg { display: block; width: 100%; height: auto; }
