.lora-library { margin-top: 14px; }
.lora-library-list { display: grid; gap: 8px; margin-top: 14px; }
.lora-library-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) repeat(3, minmax(100px, auto));
  gap: 12px;
  align-items: center;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.lora-library-row.manual { opacity: .58; background: var(--field); }
.lora-library-row small, .model-config-summary { color: var(--muted); font-size: 12px; }
.lora-library-row button { justify-self: end; }
.model-config-dialog {
  width: min(900px, calc(100vw - 28px));
  max-height: 90vh;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  padding: 0;
}
.model-config-dialog::backdrop { background: #0008; }
.model-config-dialog form { padding: 18px; }
.model-config-dialog header, .model-config-dialog footer {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.model-config-dialog footer { justify-content: flex-end; margin-top: 14px; }
.dialog-model-list { display: grid; gap: 10px; max-height: 60vh; overflow: auto; }
.model-config-dialog fieldset { border: 1px solid var(--line); border-radius: 6px; }
@media(max-width: 760px) {
  .lora-library-row { grid-template-columns: 1fr; }
  .lora-library-row button { justify-self: stretch; }
}
.lora-library-filters,.lora-library-actions{display:flex;gap:8px;flex-wrap:wrap}.lora-library-filters .active{background:var(--primary);color:#fff}.lora-library-actions{justify-content:flex-end}.lora-library-row p{margin:6px 0 0;color:var(--muted);white-space:pre-wrap}.lora-library-row .lora-lineage{display:block;margin-top:4px}
