.model-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.model-toolbar .search-box {
  flex: 1;
  min-width: 200px;
}
.model-toolbar .filter-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.filter-tab {
  padding: 6px 14px;
  border: 1px solid #dee2e6;
  background: #fff;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}
.filter-tab:hover { background: #f1f3f5; }
.filter-tab.active {
  background: #6f42c1;
  color: #fff;
  border-color: #6f42c1;
}
.provider-section {
  border: 1px solid #e9ecef;
  border-radius: 8px;
  margin-bottom: 16px;
  overflow: hidden;
}
.provider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  font-weight: 600;
}
.provider-master-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  cursor: pointer;
  user-select: none;
}
.provider-master {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #6f42c1;
}
.provider-name {
  font-weight: 600;
}
.global-select-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: #ede7ff;
  border: 1px solid #d6c8ff;
  border-radius: 6px;
  margin-bottom: 12px;
}
.global-select-row .count-badge {
  font-size: 12px;
  color: #6f42c1;
  font-weight: 500;
}
.provider-count {
  font-size: 13px;
  font-weight: 400;
  color: #6c757d;
}
.model-row {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid #f1f3f5;
  gap: 12px;
  cursor: default;
}
.model-row:last-child { border-bottom: none; }
.model-row:hover { background: #fafbfc; }
.model-row.enabled { background: #f6f3ff; }
.model-row.enabled:hover { background: #ede7ff; }
.model-row .model-id {
  flex: 1;
  font-family: 'Menlo', 'Monaco', monospace;
  font-size: 13px;
}
.model-row.warn { background: #fff7e6; }
.model-row.warn:hover { background: #ffeecc; }
.badge-new {
  background: #10b981;
  color: #fff;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  margin-left: 8px;
}
.badge-stale {
  background: #ff9800;
  color: #fff;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  margin-left: 8px;
}
.site-count {
  font-size: 12px;
  color: #6c757d;
  min-width: 110px;
  text-align: right;
  white-space: nowrap;
}
.site-count.active { color: #6f42c1; font-weight: 600; }
.site-count.warn { color: #ff8c00; font-weight: 600; }
.site-count.zero { color: #adb5bd; }
.row-actions {
  display: flex;
  gap: 4px;
  margin-left: 8px;
}
.row-actions .btn {
  padding: 2px 10px;
  font-size: 12px;
}
.unknown-summary {
  background: #fff3cd;
  border: 1px solid #ffe58f;
  border-radius: 6px;
  padding: 12px 16px;
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
/* 모달 */
.modal-backdrop-custom {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1050;
  display: none;
  align-items: center;
  justify-content: center;
}
.modal-backdrop-custom.show { display: flex; }
.modal-dialog-custom {
  background: #fff;
  border-radius: 8px;
  width: 90%;
  max-width: 560px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal-dialog-custom .mh {
  padding: 16px 20px;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-dialog-custom .mh h5 { margin: 0; font-size: 16px; }
.modal-dialog-custom .mb {
  padding: 16px 20px;
  overflow-y: auto;
  flex: 1;
}
.modal-dialog-custom .mf {
  padding: 12px 20px;
  border-top: 1px solid #e9ecef;
  text-align: right;
}
.modal-close-btn {
  border: none;
  background: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #868e96;
}
.site-list-item {
  padding: 10px;
  border-bottom: 1px solid #f1f3f5;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-list-item:last-child { border-bottom: none; }
.site-list-item .site-info {
  flex: 1;
  min-width: 0;
}
.site-list-item .sname {
  font-weight: 500;
}
.site-list-item .stitle {
  color: #868e96;
  font-size: 12px;
  display: block;
}
.site-list-item .site-model-select {
  width: 200px;
  font-size: 12px;
  padding: 4px 6px;
  height: auto;
}
.site-list-item.removing {
  opacity: 0.3;
  transition: opacity 0.3s;
}
.unknown-model-line {
  font-family: 'Menlo', 'Monaco', monospace;
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed #f1f3f5;
  display: flex;
  justify-content: space-between;
}
.unknown-model-line:last-child { border-bottom: none; }
.empty-state {
  text-align: center;
  color: #868e96;
  padding: 40px 20px;
}
.favorite-box {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 8px;
  max-height: 320px;
  overflow-y: auto;
}
.favorite-item {
  padding: 6px 10px;
  border-radius: 4px;
  font-family: 'Menlo', 'Monaco', monospace;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.favorite-item:hover { background: #f6f3ff; }
.favorite-item .remove-fav {
  cursor: pointer;
  color: #adb5bd;
  font-size: 14px;
  padding: 0 4px;
  border: none;
  background: none;
}
.favorite-item .remove-fav:hover { color: #dc3545; }
