#components-wrap {
  padding: 24px;
  max-width: 760px;
}

.topbar-home {
  text-decoration: none;
  color: var(--text);
}
.topbar-home:hover { color: var(--accent-text); }

.components-intro {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 18px;
  line-height: 1.5;
}

.components-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.components-filter {
  margin-left: auto;
  padding: 5px 10px;
  font: inherit;
  font-size: 13px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.components-filter:focus { outline: none; border-color: var(--accent); }

.assembly-admin {
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--muted);
}
.assembly-admin label { display: block; margin-bottom: 4px; }
.assembly-row { display: flex; gap: 8px; }
.assembly-row input {
  flex: 1;
  padding: 6px 10px;
  font: inherit;
  font-size: 13px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.assembly-row input:focus { outline: none; border-color: var(--accent); }

.components-status {
  font-size: 13px;
  color: var(--muted);
  min-height: 1em;
  margin-bottom: 6px;
}
.components-status.error { color: var(--danger); }

.components-meta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
}
.components-meta a { color: var(--accent-text); }

.library {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
}
.library h2 {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}
.library h2 span { color: var(--muted); font-weight: 400; }
.library table { width: 100%; border-collapse: collapse; }
.library td {
  padding: 6px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.library tr:last-child td { border-bottom: none; }
.library td.qty {
  width: 72px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.components-empty {
  color: var(--muted);
  font-size: 13px;
  padding: 24px 0;
}
