.model-pool-card{padding:12px 14px;margin-bottom:14px}
.model-pool-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px;flex-wrap:wrap}
.model-pool-head b{font-size:13px;color:var(--ink)}
.model-pool-head span{font-size:11.5px;color:var(--muted)}
.model-pool-chips{display:flex;flex-wrap:wrap;gap:6px}
.model-pool-chip{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:8px;border:1px solid #dce3ec;background:#f8fafc;font-size:11.5px;color:var(--ink)}
.model-pool-chip.is-unready{opacity:.62;border-style:dashed}
.model-pool-chip strong{font-weight:600}
.model-pool-chip small{color:#5c6978;font-size:11px}
.model-cap-pill{font-size:10px;padding:2px 6px;border-radius:999px;background:#e8effd;color:#2347b8;font-weight:500}
.model-cap-pill.generic{background:#eef1f5;color:#526071}
.model-cap-pill.warn{background:#fff1e0;color:#ad4e00}

.model-stage-group{margin-bottom:16px}
.model-stage-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin:0 0 8px}
.model-stage-head h2{font-size:14px;font-weight:650;margin:0;color:var(--ink)}
.model-stage-head span{font-size:11.5px;color:var(--muted)}

.model-node-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.model-node-card{padding:14px 16px;display:flex;flex-direction:column;gap:8px;transition:border-color .15s ease,box-shadow .15s ease}
.model-node-card.is-dirty{border-color:#93b0f5;box-shadow:0 3px 10px rgba(40,87,232,.08)}
.model-node-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.model-node-top h3{font-size:14px;font-weight:650;margin:0;color:var(--ink)}
.model-node-desc{font-size:11.5px;color:var(--muted);line-height:1.45;margin:3px 0 0}
.model-status-badge{flex-shrink:0;font-size:10.5px;font-weight:600;padding:2px 8px;border-radius:999px;white-space:nowrap}
.model-status-badge.is-user{background:#e7f6ee;color:#146c43}
.model-status-badge.is-default{background:#eaf1ff;color:#1e4ed8}
.model-status-badge.is-auto{background:#f1f4f8;color:#475569}
.model-status-badge.is-missing{background:#fef2f2;color:#b42318}

.model-node-card .field{margin:0}
.model-node-card .field label{font-size:11.5px;color:#475569;margin-bottom:4px;display:block}
.model-node-card .field select{width:100%;min-height:34px;font-size:12.5px}

.model-save-bar{position:sticky;bottom:10px;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;border-radius:10px;background:rgba(255,255,255,.96);border:1px solid #d5dfec;box-shadow:0 6px 18px rgba(17,43,69,.08);backdrop-filter:blur(6px);flex-wrap:wrap}
.model-save-hint{font-size:12px;color:#475569}
.model-save-hint.is-dirty{color:#1e4ed8;font-weight:600}
.model-save-actions{display:flex;align-items:center;gap:10px}
.model-head-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}

@media(max-width:900px){
  .model-node-grid{grid-template-columns:1fr}
}
